mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21084 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ccacb487f2
commit
25c75f0e37
@ -618,6 +618,7 @@ enum InsetLayoutTags {
|
|||||||
IL_LYXTYPE,
|
IL_LYXTYPE,
|
||||||
IL_MULTIPAR,
|
IL_MULTIPAR,
|
||||||
IL_PREAMBLE,
|
IL_PREAMBLE,
|
||||||
|
IL_VERBATIM,
|
||||||
IL_END
|
IL_END
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -636,7 +637,8 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
|
|||||||
{ "latextype", IL_LATEXTYPE },
|
{ "latextype", IL_LATEXTYPE },
|
||||||
{ "lyxtype", IL_LYXTYPE },
|
{ "lyxtype", IL_LYXTYPE },
|
||||||
{ "multipar", IL_MULTIPAR },
|
{ "multipar", IL_MULTIPAR },
|
||||||
{ "preamble", IL_PREAMBLE }
|
{ "preamble", IL_PREAMBLE },
|
||||||
|
{ "verbatim", IL_VERBATIM }
|
||||||
};
|
};
|
||||||
|
|
||||||
lexrc.pushTable(elementTags, IL_END);
|
lexrc.pushTable(elementTags, IL_END);
|
||||||
@ -652,6 +654,7 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
|
|||||||
Color::color bgcolor(Color::background);
|
Color::color bgcolor(Color::background);
|
||||||
string preamble;
|
string preamble;
|
||||||
bool multipar(false);
|
bool multipar(false);
|
||||||
|
bool verbatim(false);
|
||||||
|
|
||||||
bool getout = false;
|
bool getout = false;
|
||||||
while (!getout && lexrc.isOK()) {
|
while (!getout && lexrc.isOK()) {
|
||||||
@ -695,6 +698,10 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
|
|||||||
lexrc.next();
|
lexrc.next();
|
||||||
multipar = lexrc.getBool();
|
multipar = lexrc.getBool();
|
||||||
break;
|
break;
|
||||||
|
case IL_VERBATIM:
|
||||||
|
lexrc.next();
|
||||||
|
verbatim = lexrc.getBool();
|
||||||
|
break;
|
||||||
case IL_FONT:
|
case IL_FONT:
|
||||||
font.lyxRead(lexrc);
|
font.lyxRead(lexrc);
|
||||||
font.realize(defaultfont());
|
font.realize(defaultfont());
|
||||||
@ -728,6 +735,7 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
|
|||||||
il.latexname = latexname;
|
il.latexname = latexname;
|
||||||
il.latexparam = latexparam;
|
il.latexparam = latexparam;
|
||||||
il.multipar = multipar;
|
il.multipar = multipar;
|
||||||
|
il.verbatim = verbatim;
|
||||||
il.font = font;
|
il.font = font;
|
||||||
il.labelfont = labelfont;
|
il.labelfont = labelfont;
|
||||||
il.bgcolor = bgcolor;
|
il.bgcolor = bgcolor;
|
||||||
|
@ -46,6 +46,7 @@ public:
|
|||||||
Color::color bgcolor;
|
Color::color bgcolor;
|
||||||
std::string preamble;
|
std::string preamble;
|
||||||
bool multipar;
|
bool multipar;
|
||||||
|
bool verbatim;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user