mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Some FIXMEs for later, and a little constness.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27215 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
28fe97b553
commit
ce379265a6
@ -95,9 +95,6 @@ public:
|
||||
/// write out the parameters to a stream
|
||||
void write(std::ostream & os) const;
|
||||
|
||||
//friend bool operator==(ParameterStruct const & ps1,
|
||||
//ParameterStruct const & ps2);
|
||||
|
||||
private:
|
||||
///
|
||||
Spacing spacing_;
|
||||
|
@ -109,6 +109,8 @@ TeXEnvironment(Buffer const & buf,
|
||||
|
||||
BufferParams const & bparams = buf.params();
|
||||
|
||||
// FIXME This test should not be necessary.
|
||||
// We should perhaps issue an error if it is.
|
||||
Layout const & style = pit->forcePlainLayout() ?
|
||||
bparams.documentClass().plainLayout() : pit->layout();
|
||||
|
||||
@ -312,6 +314,8 @@ TeXOnePar(Buffer const & buf,
|
||||
return nextpit;
|
||||
}
|
||||
|
||||
// FIXME This check should not really be needed.
|
||||
// Perhaps we should issue an error if it is.
|
||||
Layout const style = pit->forcePlainLayout() ?
|
||||
bparams.documentClass().plainLayout() : pit->layout();
|
||||
|
||||
@ -553,7 +557,7 @@ TeXOnePar(Buffer const & buf,
|
||||
? pit->getLayoutFont(bparams, outerfont)
|
||||
: pit->getFont(bparams, pit->size() - 1, outerfont);
|
||||
|
||||
bool is_command = style.isCommand();
|
||||
bool const is_command = style.isCommand();
|
||||
|
||||
if (style.resfont.size() != font.fontInfo().size()
|
||||
&& nextpit != paragraphs.end()
|
||||
@ -792,6 +796,8 @@ void latexParagraphs(Buffer const & buf,
|
||||
// if only_body
|
||||
while (par != endpar) {
|
||||
lastpar = par;
|
||||
// FIXME This check should not be needed. We should
|
||||
// perhaps issue an error if it is.
|
||||
Layout const & layout = par->forcePlainLayout() ?
|
||||
tclass.plainLayout() :
|
||||
par->layout();
|
||||
|
Loading…
Reference in New Issue
Block a user