]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalTemplate.cpp
Comments.
[lyx.git] / src / insets / ExternalTemplate.cpp
index 600969dc456441d4913f0d62e9f5c0e37de02970..6bd02ac47a603b84803a2377c1a95b5744a9bc10 100644 (file)
@@ -20,6 +20,7 @@
 #include "support/lstrings.h"
 #include "support/Package.h"
 #include "support/Path.h"
+#include "support/Translator.h"
 
 #include <ostream>
 
@@ -50,7 +51,7 @@ static TransformIDTranslator const & transformIDTranslator()
 
 // We have to have dummy default commands for security reasons!
 Template::Template()
-       : inputFormat("*")
+       : inputFormat("*"), automaticProduction(false), preview_mode(PREVIEW_OFF)
 {}
 
 
@@ -318,12 +319,12 @@ void Template::readTemplate(Lexer & lex)
 
        LexerKeyword templateoptiontags[] = {
                { "automaticproduction", TO_AUTOMATIC },
-               { "preview", TO_PREVIEW },
                { "filefilter", TO_FILTER },
                { "format", TO_FORMAT },
                { "guiname", TO_GUINAME },
                { "helptext", TO_HELPTEXT },
                { "inputformat", TO_INPUTFORMAT },
+               { "preview", TO_PREVIEW },
                { "templateend", TO_END },
                { "transform", TO_TRANSFORM }
        };