#include "Format.h"
#include "LaTeXFeatures.h"
-#include "LyXRC.h"
#include "output_xhtml.h"
#include "support/Messages.h"
{
cerr << to_utf8(title) << "\n" << to_utf8(message) << endl;
}
-}
-}
+} // namespace Alert
+} // namespace frontend
//
// Dummy LyXRC support
//
-LyXRC lyxrc;
-/** Note that some variables are not initialized correctly. Hopefully
- * they are not used in our code (currently valgrind does not complain).
- * Linking against the full LyXRC.cpp forces us to pull too much
- * stuff.
- */
-LyXRC::LyXRC()
-{}
+class LyXRC {} lyxrc;
//
// Dummy formats support (needed by Lexer)
//
-Formats formats;
+
+Formats & theFormats()
+{
+ static Formats dummy_formats;
+ return dummy_formats;
+}
bool Formats::isZippedFile(support::FileName const&) const
{
class FontMetrics {
int em() const { return 0; };
};
-}
+} // namespace frontend
class FontInfo;
void lyx_exit(int)
{}
-}
+} // namespace lyx