#include "support/path.h"
#include "support/LAssert.h"
#include "support/filetools.h"
+#include "support/path_defines.h"
+
+using namespace lyx::support;
using std::endl;
using std::ostream;
using std::for_each;
-extern string user_lyxdir;
-
-
// We have to have dummy default commands for security reasons!
ExternalTemplate::ExternalTemplate()
ExternalTemplateManager::ExternalTemplateManager()
{
// gimp gnuchess gnuplot ical netscape tetris xpaint
- readTemplates(user_lyxdir);
+ readTemplates(user_lyxdir());
if (lyxerr.debugging())
dumpTemplates();
}
default:
lex.printError("ExternalTemplate::readTemplate: "
"Wrong tag: $$Token");
- lyx::Assert(false);
+ Assert(false);
break;
}
}