]> git.lyx.org Git - lyx.git/blobdiff - src/tests/dummy_functions.cpp
de.po
[lyx.git] / src / tests / dummy_functions.cpp
index 9d4298b5263e617d01a8e156afd880dafbd217fc..28ea633590ec6f7560c7b6887c41156e6f680939 100644 (file)
@@ -1,12 +1,19 @@
 #include <config.h>
 
-#include "../support/Messages.h"
+#include "Format.h"
+#include "LyXRC.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;
+       LyXRC::LyXRC() {}
+       LyXRC lyxrc;
 
        // Dummy LyXAlignment support
        enum LyXAlignment {
@@ -30,25 +37,16 @@ namespace lyx {
                return lyx_messages;
        }
 
-       string alignmentToCSS(LyXAlignment)
+       // Dummy formats support (needed by Lexer)
+       Formats & theFormats()
        {
-               return string();
+               static Formats dummy_formats;
+               return dummy_formats;
        }
 
-       //
-       // Dummy FontMetrics (needed by Length)
-       //
-
-
-       class FontMetrics {
-               int em() const { return 0; };
-       };
-
-       class FontInfo;
-
-       FontMetrics const & theFontMetrics(FontInfo const &) {
-               static FontMetrics dummy;
-               return dummy;
+       string alignmentToCSS(LyXAlignment)
+       {
+               return string();
        }
 
-}
+} // namespace lyx