X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Fdummy_impl.cpp;h=c850cd97c113cfcf0b25b8f434378c4da82631bf;hb=9a1b26a156c913f484ca2293fb2ec1c4986d2a3e;hp=15fbf8b3f36a0c13e46bbe59f287b904c3c8a6af;hpb=e30f3d76d2bee0011ceaeb5f0cc221156458cbad;p=lyx.git diff --git a/src/tex2lyx/dummy_impl.cpp b/src/tex2lyx/dummy_impl.cpp index 15fbf8b3f3..c850cd97c1 100644 --- a/src/tex2lyx/dummy_impl.cpp +++ b/src/tex2lyx/dummy_impl.cpp @@ -20,6 +20,7 @@ #include "Format.h" #include "LaTeXFeatures.h" +#include "LyXRC.h" #include "output_xhtml.h" #include "support/Messages.h" @@ -47,18 +48,11 @@ namespace Alert { // -// Dummy verbose support +// Required global variables // bool verbose = false; - - -// -// Dummy LyXRC support -// - - -class LyXRC {} lyxrc; +LyXRC lyxrc; // @@ -112,22 +106,6 @@ 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; -} // // Keep the linker happy on Windows