]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.cpp
Get rid of all-insets-toggle and explain how to replace it with inset-forall.
[lyx.git] / src / Layout.cpp
index ae045f130fd3519956085b0c7d9f7e27bb96d81d..7a26c8cf65a6a640dc66204fe187d4ee801f4a3a 100644 (file)
@@ -104,6 +104,8 @@ enum LayoutTags {
        LT_HTMLFORCECSS,
        LT_INPREAMBLE,
        LT_HTMLTITLE,
+       LT_SPELLCHECK,
+       LT_REFPREFIX,
        LT_INTITLE // keep this last!
 };
 
@@ -146,6 +148,7 @@ Layout::Layout()
        htmllabelfirst_ = false;
        htmlforcecss_ = false;
        htmltitle_ = false;
+       spellcheck = true;
 }
 
 
@@ -210,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 }
@@ -494,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_;
@@ -537,6 +546,10 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
                case LT_HTMLTITLE:
                        lex >> htmltitle_;
                        break;
+
+               case LT_SPELLCHECK:
+                       lex >> spellcheck;
+                       break;
                }
        }
        lex.popTable();