]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetLayout.cpp
Introduce new tag ParbreakIsNewline in Layout and InsetLayout (not yet used)
[features.git] / src / insets / InsetLayout.cpp
index 0a02c739c4053c0888b0eb0a98f65aa4d2124f9b..5433db83d99fee108b021fd343a13a121cc7805d 100644 (file)
@@ -36,8 +36,9 @@ InsetLayout::InsetLayout() :
        labelfont_(sane_font), bgcolor_(Color_error), 
        htmlforcecss_ (false), htmlisblock_(true),
        multipar_(true), custompars_(true), forceplain_(false), 
-       passthru_(false), needprotect_(false), freespacing_(false), 
-       keepempty_(false), forceltr_(false), intoc_(false), spellcheck_(true)
+       passthru_(false), parbreakisnewline_(false), freespacing_(false), 
+       keepempty_(false), forceltr_(false), 
+       needprotect_(false), intoc_(false), spellcheck_(true)
 { 
        labelfont_.setColor(Color_error);
 }
@@ -103,6 +104,7 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                IL_MULTIPAR,
                IL_NEEDPROTECT,
                IL_PASSTHRU,
+               IL_PARBREAKISNEWLINE,
                IL_PREAMBLE,
                IL_REQUIRES,
                IL_SPELLCHECK,
@@ -142,6 +144,7 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                { "lyxtype", IL_LYXTYPE },
                { "multipar", IL_MULTIPAR },
                { "needprotect", IL_NEEDPROTECT },
+               { "parbreakisnewline", IL_PARBREAKISNEWLINE },
                { "passthru", IL_PASSTHRU },
                { "preamble", IL_PREAMBLE },
                { "refprefix", IL_REFPREFIX },
@@ -239,6 +242,9 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                case IL_PASSTHRU:
                        lex >> passthru_;
                        break;
+               case IL_PARBREAKISNEWLINE:
+                       lex >> parbreakisnewline_;
+                       break;
                case IL_KEEPEMPTY:
                        lex >> keepempty_;
                        break;