]> git.lyx.org Git - features.git/commitdiff
Commit the new parameter ForceLtR before Abdel moves things around again :-)
authorMartin Vermeer <martin.vermeer@hut.fi>
Mon, 29 Oct 2007 14:39:29 +0000 (14:39 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Mon, 29 Oct 2007 14:39:29 +0000 (14:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21261 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextClass.cpp
src/TextClass.h

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;
index 7f55cf5fcbeffbcfe6e2eda25093fa53977fbe14..a6b0bbb13d786fa7f1b7b9f0aef1a2c4db2dace2 100644 (file)
@@ -52,6 +52,7 @@ public:
        bool needprotect;
        bool freespacing;
        bool keepempty;
+       bool forceltr;
 };