]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlayout.C
rename Inset to InsetOld
[lyx.git] / src / lyxlayout.C
index 9aa7684798a7771fe60cec8aed48654290b3c293..fc691697f7c0abb7a19f9e020024aa32fa337f53 100644 (file)
@@ -18,6 +18,8 @@
 
 #include "support/lstrings.h"
 
+using namespace lyx::support;
+
 using std::endl;
 
 //  The order of the LayoutTags enum is no more important. [asierra300396]
@@ -59,6 +61,7 @@ enum LayoutTags {
        LT_LATEXTYPE,
        LT_LATEXHEADER,
        LT_LATEXFOOTER,
+       LT_LATEXPARAGRAPH,
        LT_LEFTMARGIN,
        LT_NEED_PROTECT,
        LT_NEWLINE,
@@ -107,6 +110,7 @@ LyXLayout::LyXLayout ()
        newline_allowed = true;
        free_spacing = false;
        pass_thru = false;
+       is_environment = false;
 }
 
 
@@ -140,6 +144,7 @@ bool LyXLayout::Read (LyXLex & lexrc, LyXTextClass const & tclass)
                { "latexfooter",                LT_LATEXFOOTER },
                { "latexheader",                LT_LATEXHEADER },
                { "latexname",          LT_LATEXNAME },
+               { "latexparagraph",             LT_LATEXPARAGRAPH },
                { "latexparam",         LT_LATEXPARAM },
                { "latextype",          LT_LATEXTYPE },
                { "leftmargin",         LT_LEFTMARGIN },
@@ -236,24 +241,29 @@ bool LyXLayout::Read (LyXLex & lexrc, LyXTextClass const & tclass)
                        }
                        break;
 
-               case LT_MARGIN:         // Margin style definition.
+               case LT_MARGIN:         // margin style definition.
                        readMargin(lexrc);
                        break;
 
-               case LT_LATEXTYPE:      // Latex style definition.
+               case LT_LATEXTYPE:      // LaTeX style definition.
                        readLatexType(lexrc);
                        break;
 
-               case LT_LATEXHEADER:    // Latex style definition.
+               case LT_LATEXHEADER:    // header for environments
                        lexrc.next();
                        latexheader = lexrc.getString();
                        break;
 
-               case LT_LATEXFOOTER:    // Latex style definition.
+               case LT_LATEXFOOTER:    // footer for environments
                        lexrc.next();
                        latexfooter = lexrc.getString();
                        break;
 
+               case LT_LATEXPARAGRAPH:
+                       lexrc.next();
+                       latexparagraph = lexrc.getString();
+                       break;
+
                case LT_INTITLE:
                        intitle = lexrc.next() && lexrc.getInteger();
                        break;