bool Lexer::Pimpl::setFile(FileName const & filename)
{
-#ifdef TEX2LYX
- // tex2lyx does not read lyxrc and therefore can't really check for
- // zipped formats.
- if (false) {
-#else
// Check the format of the file.
if (formats.isZippedFile(filename)) {
-#endif
LYXERR(Debug::LYXLEX, "lyxlex: compressed");
// The check only outputs a debug message, because it triggers
// a bug in compaq cxx 6.2, where is_open() returns 'true' for
#include "Context.h"
#include "Encoding.h"
+#include "Format.h"
#include "Layout.h"
#include "LayoutFile.h"
#include "LayoutModuleList.h"
// Dummy translation support
Messages messages_;
-Messages const & getMessages(std::string const &)
+Messages const & getMessages(string const &)
{
return messages_;
}
}
+// tex2lyx does not read lyxrc and therefore can't really check for
+// zipped formats (Used by lexer)
+
+Formats formats;
+
+bool Formats::isZippedFile(FileName const&) const
+{
+ return false;
+}
+
+
// Keep the linker happy on Windows
void lyx_exit(int)
{}