From 50e5d510383904f937e0527fe2d5d9895da6e2c9 Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Mon, 29 Oct 2007 14:39:29 +0000 Subject: [PATCH] Commit the new parameter ForceLtR before Abdel moves things around again :-) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21261 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TextClass.cpp | 8 ++++++++ src/TextClass.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/TextClass.cpp b/src/TextClass.cpp index 8fb11fe2ac..89e4b294d6 100644 --- a/src/TextClass.cpp +++ b/src/TextClass.cpp @@ -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; diff --git a/src/TextClass.h b/src/TextClass.h index 7f55cf5fcb..a6b0bbb13d 100644 --- a/src/TextClass.h +++ b/src/TextClass.h @@ -52,6 +52,7 @@ public: bool needprotect; bool freespacing; bool keepempty; + bool forceltr; }; -- 2.39.5