]> git.lyx.org Git - lyx.git/blobdiff - src/tests/dummy_functions.cpp
Don't update paths of non-existing files
[lyx.git] / src / tests / dummy_functions.cpp
index 5a99081b77d3366365659d933003419d38e0f309..2ee622e8e50230d0638f371431fca66487877f10 100644 (file)
@@ -1,6 +1,6 @@
 #include <config.h>
 
-#include "../Messages.h"
+#include "../support/Messages.h"
 
 using namespace std;
 
@@ -35,4 +35,22 @@ namespace lyx {
                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;
+       }
+
 }