]> git.lyx.org Git - lyx.git/blobdiff - src/tests/dummy_functions.cpp
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / tests / dummy_functions.cpp
index 2ee622e8e50230d0638f371431fca66487877f10..a265ec0e8f41dbeb5d2d9956185626ebd40e0b87 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,6 +37,13 @@ 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();
@@ -38,13 +52,11 @@ namespace lyx {
        //
        // Dummy FontMetrics (needed by Length)
        //
-
-
        namespace frontend {
        class FontMetrics {
                int em() const { return 0; };
        };
-       }
+       } // namespace frontend
 
        class FontInfo;
 
@@ -52,5 +64,4 @@ namespace lyx {
                static frontend::FontMetrics dummy;
                return dummy;
        }
-
-}
+} // namespace lyx