X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Fdummy_impl.cpp;h=15fbf8b3f36a0c13e46bbe59f287b904c3c8a6af;hb=639aa354448188f45e69d6bd1e0ef3dfcc938c5f;hp=b20db6d9d6daad8053f80d04dfbbdaaa584041aa;hpb=fa5519d4f06b6d7c6e560d7a60f13bd9a26d9f5b;p=lyx.git diff --git a/src/tex2lyx/dummy_impl.cpp b/src/tex2lyx/dummy_impl.cpp index b20db6d9d6..15fbf8b3f3 100644 --- a/src/tex2lyx/dummy_impl.cpp +++ b/src/tex2lyx/dummy_impl.cpp @@ -20,7 +20,7 @@ #include "Format.h" #include "LaTeXFeatures.h" -#include "LyXRC.h" +#include "output_xhtml.h" #include "support/Messages.h" @@ -42,36 +42,23 @@ namespace Alert { { cerr << to_utf8(title) << "\n" << to_utf8(message) << endl; } -} -} +} // namespace Alert +} // namespace frontend // -// Dummy TexRow support (needed by docstream) +// Dummy verbose support // - -void TexRow::newline() -{} - - -void TexRow::newlines(int) -{} +bool verbose = false; // // Dummy LyXRC support // -LyXRC lyxrc; -/** Note that some variables are not initialized correctly. Hopefully - * they are not used in our code (currently valgrind does not complain). - * Linking against the full LyXRC.cpp forces us to pull too much - * stuff. - */ -LyXRC::LyXRC() -{} +class LyXRC {} lyxrc; // @@ -96,7 +83,12 @@ Messages const & getGuiMessages() // Dummy formats support (needed by Lexer) // -Formats formats; + +Formats & theFormats() +{ + static Formats dummy_formats; + return dummy_formats; +} bool Formats::isZippedFile(support::FileName const&) const { @@ -115,6 +107,28 @@ bool LaTeXFeatures::isAvailable(string const &) } +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 // @@ -122,4 +136,4 @@ bool LaTeXFeatures::isAvailable(string const &) void lyx_exit(int) {} -} +} // namespace lyx