]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
* gcc does not like missing characters in keywords
[lyx.git] / src / TextClass.cpp
index 8fb11fe2ac8bcb1e3e25f8632e2142be5b946abe..89e4b294d688ebf9cd37bff03ae82e6438f6c418 100644 (file)
@@ -614,6 +614,7 @@ enum InsetLayoutTags {
        IL_BGCOLOR,
        IL_DECORATION,
        IL_FREESPACING,
+       IL_FORCELTR,
        IL_LABELFONT,
        IL_LABELSTRING,
        IL_LATEXNAME,
@@ -636,6 +637,7 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
                { "decoration", IL_DECORATION },
                { "end", IL_END },
                { "font", IL_FONT },
+               { "forceltr", IL_FORCELTR },
                { "freespacing", IL_FREESPACING },
                { "keepempty", IL_KEEPEMPTY },
                { "labelfont", IL_LABELFONT },
@@ -667,6 +669,7 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
        bool needprotect(false);
        bool keepempty(false);
        bool freespacing(false);
+       bool forceltr(false);
 
        bool getout = false;
        while (!getout && lexrc.isOK()) {
@@ -706,6 +709,10 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
                        labelfont = lyxRead(lexrc);
                        labelfont.realize(defaultfont());
                        break;
+               case IL_FORCELTR:
+                       lexrc.next();
+                       forceltr = lexrc.getBool();
+                       break;
                case IL_MULTIPAR:
                        lexrc.next();
                        multipar = lexrc.getBool();
@@ -762,6 +769,7 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
                il.passthru = passthru;
                il.needprotect = needprotect;
                il.freespacing = freespacing;
+               il.forceltr = forceltr;
                il.keepempty = keepempty;
                il.font = font;
                il.labelfont = labelfont;