]> git.lyx.org Git - lyx.git/blobdiff - src/tests/dummy_functions.cpp
DocBook: fix file inclusion.
[lyx.git] / src / tests / dummy_functions.cpp
index 95706aad7c58fac7754c7dda0184fba319db213f..f57061614f0fa367db9a8026fd54091c5657ddac 100644 (file)
@@ -1,68 +1,59 @@
 #include <config.h>
 
 #include "Format.h"
+#include "LayoutEnums.h"
 #include "LyXRC.h"
 
 #include "support/Messages.h"
+#include "xml.h"
 
 using namespace std;
 
 namespace lyx {
-       // Dummy verbose support
-       bool verbose = false;
-
-       // Dummy LyXRC support
-       LyXRC::LyXRC() {}
-       LyXRC lyxrc;
-
-       // Dummy LyXAlignment support
-       enum LyXAlignment {
-               DUMMY
-       };
-
-       // Keep the linker happy on Windows
-       void lyx_exit(int) {}
-
-       // Dummy language support
-       Messages const & getGuiMessages()
-       {
-               static Messages lyx_messages;
-
-               return lyx_messages;
-       }
-       Messages const & getMessages(string const &)
-       {
-               static Messages lyx_messages;
-
-               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; };
-       };
-       } // namespace frontend
-
-       class FontInfo;
-
-       frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
-               static frontend::FontMetrics dummy;
-               return dummy;
-       }
+
+// Dummy verbose support
+bool verbose = false;
+
+// Dummy LyXRC support
+LyXRC lyxrc;
+
+// Keep the linker happy on Windows
+void lyx_exit(int) {}
+
+// Dummy language support
+Messages const & getGuiMessages()
+{
+       static Messages lyx_messages;
+
+       return lyx_messages;
+}
+
+
+Messages const & getMessages(string const &)
+{
+       static Messages lyx_messages;
+
+       return lyx_messages;
+}
+
+
+// Dummy formats support (needed by Lexer)
+Formats & theFormats()
+{
+       static Formats dummy_formats;
+       return dummy_formats;
+}
+
+
+string alignmentToCSS(LyXAlignment)
+{
+       return string();
+}
+
+namespace xml {
+docstring StartTag::writeTag() const { return docstring(); }
+docstring StartTag::writeEndTag() const { return docstring(); }
+bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; }
+}
 
 } // namespace lyx