]> git.lyx.org Git - lyx.git/blobdiff - src/support/tests/dummy_functions.cpp
Update to boost 1.72
[lyx.git] / src / support / tests / dummy_functions.cpp
index 63ff0c051e829ecc63821f7d77c48473c55616fe..b7e27ed70b9299d271d808fa8632cb798a7c9f1e 100644 (file)
@@ -1,5 +1,7 @@
 #include <config.h>
 
+#include "LyXRC.h"
+
 #include "support/Messages.h"
 
 using namespace std;
@@ -9,12 +11,7 @@ namespace lyx {
        bool verbose = false;
 
        // Dummy LyXRC support
-       class LyXRC { string icon_set; } lyxrc;
-
-       // Dummy LyXAlignment support
-       enum LyXAlignment {
-               DUMMY
-       };
+       LyXRC lyxrc;
 
        // Keep the linker happy on Windows
        void lyx_exit(int) {}
@@ -33,24 +30,4 @@ namespace lyx {
                return lyx_messages;
        }
 
-       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;
-       }
-}
+} // namespace lyx