]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalTemplate.C
prepare for 1.1.6pre2
[lyx.git] / src / insets / ExternalTemplate.C
index 9637544a7cf95ba57aa99c179baf58694a31eb3f..a323f8a0cd398621ab8a4a61fb56f98f91e18457 100644 (file)
 #include "ExternalTemplate.h"
 
 #include "lyxlex.h"
+#include "debug.h"
 #include "support/path.h"
 #include "support/LAssert.h"
+#include "support/filetools.h"
 
 using std::endl;
 using std::ostream;
@@ -35,6 +37,7 @@ ExternalTemplate::ExternalTemplate()
        : viewCommand("true"), editCommand("true")
 {}
 
+
 ExternalTemplate::FormatTemplate::FormatTemplate()
        : updateCommand("true") {}
 
@@ -97,6 +100,7 @@ void ExternalTemplate::dumpFormats(ostream & os) const
        for_each(formats.begin(), formats.end(), dumpFormat(os));
 }
 
+
 void ExternalTemplateManager::dumpTemplates() const 
 {
        for_each(templates.begin(), templates.end(), dumpTemplate(lyxerr));
@@ -151,7 +155,7 @@ void ExternalTemplateManager::readTemplates(string const & path)
        }
        
        while (lex.IsOK()) {
-               switch(lex.lex()) {
+               switch (lex.lex()) {
                case TM_TEMPLATE: {
                        lex.next();
                        string temp = lex.GetString();
@@ -271,7 +275,7 @@ void ExternalTemplate::FormatTemplate::readFormat(LyXLex & lex)
        pushpophelper pph(lex, formattags, FO_END);
        
        while (lex.IsOK()) {
-               switch(lex.lex()) {
+               switch (lex.lex()) {
                case FO_PRODUCT:
                        lex.next(true);
                        product = lex.GetString();