]> git.lyx.org Git - features.git/blobdiff - src/support/tests/dummy_functions.cpp
Fixup commit 50060053
[features.git] / src / support / tests / dummy_functions.cpp
index 5a99081b77d3366365659d933003419d38e0f309..2b0f21710a9ffc9008241547d5d6275793affcbf 100644 (file)
@@ -1,10 +1,14 @@
 #include <config.h>
 
-#include "../Messages.h"
+#include "Format.h"
+#include "support/Messages.h"
 
 using namespace std;
 
 namespace lyx {
+       // Dummy verbose support
+       bool verbose = false;
+
        // Dummy LyXRC support
        class LyXRC { string icon_set; } lyxrc;
 
@@ -30,9 +34,31 @@ namespace lyx {
                return lyx_messages;
        }
 
+       // Dummy formats support (needed by Lexer)
+       Formats & theFormats()
+       {
+               static Formats dummy_formats;
+               return dummy_formats;
+       }
+
        string alignmentToCSS(LyXAlignment)
        {
                return string();
        }
 
+       //
+       // Dummy FontMetrics (needed by Length)
+       //
+       namespace frontend {
+       class FontMetrics {
+               int em() const { return 0; };
+       };
+       }
+
+       class FontInfo;
+
+       frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
+               static frontend::FontMetrics dummy;
+               return dummy;
+       }
 }