X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftests%2Fdummy_functions.cpp;h=9d722c602a49f28606c5a29eec5abe895417c38b;hb=9428ad56b9127a23af67808844ca4838f93563a5;hp=2ee622e8e50230d0638f371431fca66487877f10;hpb=13c60bfa78d67645c3c5809d028fcf6825a26960;p=lyx.git diff --git a/src/tests/dummy_functions.cpp b/src/tests/dummy_functions.cpp index 2ee622e8e5..9d722c602a 100644 --- a/src/tests/dummy_functions.cpp +++ b/src/tests/dummy_functions.cpp @@ -1,12 +1,19 @@ #include -#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; @@ -53,4 +65,11 @@ namespace lyx { return dummy; } -} + struct App { + bool cancel_export; + }; + + App app; + App * theApp() { return &app; } + +} // namespace lyx