X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLayout.cpp;h=7801e8fcb27f96c4f4b0dba7799e55c171290650;hb=4300feb8595c8542050adedf664cd4bfda7ede12;hp=005acb22581fddc7a122312216e812cfdc023c23;hpb=8a703573ea9718a06c94522e40671d46f0b83522;p=lyx.git diff --git a/src/Layout.cpp b/src/Layout.cpp index 005acb2258..7801e8fcb2 100644 --- a/src/Layout.cpp +++ b/src/Layout.cpp @@ -74,6 +74,7 @@ enum LayoutTags { LT_LATEXTYPE, LT_LEFTDELIM, LT_LEFTMARGIN, + LT_NEED_CPROTECT, LT_NEED_PROTECT, LT_NEWLINE, LT_NEXTNOINDENT, @@ -130,6 +131,7 @@ Layout::Layout() intitle = false; inpreamble = false; needprotect = false; + needcprotect = false; keepempty = false; font = inherit_font; labelfont = inherit_font; @@ -242,6 +244,7 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass) { "leftdelim", LT_LEFTDELIM }, { "leftmargin", LT_LEFTMARGIN }, { "margin", LT_MARGIN }, + { "needcprotect", LT_NEED_CPROTECT }, { "needprotect", LT_NEED_PROTECT }, { "newline", LT_NEWLINE }, { "nextnoindent", LT_NEXTNOINDENT }, @@ -393,6 +396,10 @@ bool Layout::readIgnoreForcelocal(Lexer & lex, TextClass const & tclass) lex >> needprotect; break; + case LT_NEED_CPROTECT: + lex >> needcprotect; + break; + case LT_KEEPEMPTY: lex >> keepempty; break; @@ -1212,6 +1219,7 @@ void Layout::write(ostream & os) const it != postcommandargs_.end(); ++it) writeArgument(os, it->first, it->second); os << "\tNeedProtect " << needprotect << "\n" + "\tNeedCProtect " << needcprotect << "\n" "\tKeepEmpty " << keepempty << '\n'; if (labelfont == font) lyxWrite(os, font, "Font", 1);