]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.cpp
BufferView.cpp: typo
[lyx.git] / src / Layout.cpp
index f1d76c6228298a936bc4cc026096680206433465..7a26c8cf65a6a640dc66204fe187d4ee801f4a3a 100644 (file)
@@ -103,6 +103,9 @@ enum LayoutTags {
        LT_HTMLSTYLE,
        LT_HTMLFORCECSS,
        LT_INPREAMBLE,
+       LT_HTMLTITLE,
+       LT_SPELLCHECK,
+       LT_REFPREFIX,
        LT_INTITLE // keep this last!
 };
 
@@ -144,6 +147,8 @@ Layout::Layout()
        commanddepth = 0;
        htmllabelfirst_ = false;
        htmlforcecss_ = false;
+       htmltitle_ = false;
+       spellcheck = true;
 }
 
 
@@ -176,9 +181,10 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
                { "htmlpremable",   LT_HTMLPREAMBLE },
                { "htmlstyle",      LT_HTMLSTYLE },
                { "htmltag",        LT_HTMLTAG },
+               { "htmltitle",      LT_HTMLTITLE },
                { "innertag",       LT_INNERTAG },
-               { "intitle",        LT_INTITLE },
                { "inpreamble",     LT_INPREAMBLE },
+               { "intitle",        LT_INTITLE },
                { "itemsep",        LT_ITEMSEP },
                { "itemtag",        LT_ITEMTAG },
                { "keepempty",      LT_KEEPEMPTY },
@@ -207,9 +213,11 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
                { "parskip",        LT_PARSKIP },
                { "passthru",       LT_PASS_THRU },
                { "preamble",       LT_PREAMBLE },
+               { "refprefix",      LT_REFPREFIX },
                { "requires",       LT_REQUIRES },
                { "rightmargin",    LT_RIGHTMARGIN },
                { "spacing",        LT_SPACING },
+               { "spellcheck",     LT_SPELLCHECK },
                { "textfont",       LT_TEXTFONT },
                { "toclevel",       LT_TOCLEVEL },
                { "topsep",         LT_TOPSEP }
@@ -491,6 +499,10 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
                        requires_.insert(req.begin(), req.end());
                        break;
                }
+                       
+               case LT_REFPREFIX:
+                       lex >> refprefix;
+                       break;
 
                case LT_HTMLTAG:
                        lex >> htmltag_;
@@ -530,7 +542,14 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
                case LT_HTMLPREAMBLE:
                        htmlpreamble_ = from_utf8(lex.getLongString("EndPreamble"));
                        break;
+               
+               case LT_HTMLTITLE:
+                       lex >> htmltitle_;
+                       break;
 
+               case LT_SPELLCHECK:
+                       lex >> spellcheck;
+                       break;
                }
        }
        lex.popTable();