X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FExternalTemplate.cpp;h=db12e68b8cb56c1ed97c283706cc2bc76cfad264;hb=dc8c4f3eab6e01f3767de765423fda5e4d6c5124;hp=600969dc456441d4913f0d62e9f5c0e37de02970;hpb=4a1be58591ea5a7431d9426abb27d8b946c634cb;p=lyx.git diff --git a/src/insets/ExternalTemplate.cpp b/src/insets/ExternalTemplate.cpp index 600969dc45..db12e68b8c 100644 --- a/src/insets/ExternalTemplate.cpp +++ b/src/insets/ExternalTemplate.cpp @@ -19,7 +19,8 @@ #include "support/filetools.h" #include "support/lstrings.h" #include "support/Package.h" -#include "support/Path.h" +#include "support/PathChanger.h" +#include "support/Translator.h" #include @@ -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 } }; @@ -385,12 +386,6 @@ void Template::readTemplate(Lexer & lex) case TO_END: return; - - default: - lex.printError("external::Template::readTemplate: " - "Wrong tag: $$Token"); - LASSERT(false, /**/); - break; } } }