]> git.lyx.org Git - lyx.git/commitdiff
Forgot this
authorMartin Vermeer <martin.vermeer@hut.fi>
Sat, 20 Oct 2007 17:07:08 +0000 (17:07 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Sat, 20 Oct 2007 17:07:08 +0000 (17:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21084 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextClass.cpp
src/TextClass.h

index 87a4f817139b37324733c8f709bf9c7bdec6630b..5397227b08652f5b19c5d61428801656c92c38a8 100644 (file)
@@ -618,6 +618,7 @@ enum InsetLayoutTags {
        IL_LYXTYPE,
        IL_MULTIPAR,
        IL_PREAMBLE,
+       IL_VERBATIM,
        IL_END
 };
 
@@ -636,7 +637,8 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
                { "latextype", IL_LATEXTYPE },
                { "lyxtype", IL_LYXTYPE },
                { "multipar", IL_MULTIPAR },
-               { "preamble", IL_PREAMBLE }
+               { "preamble", IL_PREAMBLE },
+               { "verbatim", IL_VERBATIM }
        };
 
        lexrc.pushTable(elementTags, IL_END);
@@ -652,6 +654,7 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
        Color::color bgcolor(Color::background);
        string preamble;
        bool multipar(false);
+       bool verbatim(false);
 
        bool getout = false;
        while (!getout && lexrc.isOK()) {
@@ -695,6 +698,10 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
                        lexrc.next();
                        multipar = lexrc.getBool();
                        break;
+               case IL_VERBATIM:
+                       lexrc.next();
+                       verbatim = lexrc.getBool();
+                       break;
                case IL_FONT:
                        font.lyxRead(lexrc);
                        font.realize(defaultfont());
@@ -728,6 +735,7 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
                il.latexname = latexname;
                il.latexparam = latexparam;
                il.multipar = multipar;
+               il.verbatim = verbatim;
                il.font = font;
                il.labelfont = labelfont;
                il.bgcolor = bgcolor;           
index 4f50311df3caa7791d2a8dc5712eb0e916191fca..c55c1822ddc3aade563a499dc3e9ff58e478981d 100644 (file)
@@ -46,6 +46,7 @@ public:
        Color::color bgcolor;
        std::string preamble;
        bool multipar;
+       bool verbatim;
 };