X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Fdummy_impl.cpp;h=62436af5e67f112c158cb632742b82b7628db6cc;hb=5e290e4bf9fb8e7d94912dd0126751d5f6649859;hp=f6977403770ee463b54b464a5ec67c235c89bd88;hpb=50060053e36b3e9dfe03bc33ed3abac1eacc54b0;p=lyx.git diff --git a/src/tex2lyx/dummy_impl.cpp b/src/tex2lyx/dummy_impl.cpp index f697740377..62436af5e6 100644 --- a/src/tex2lyx/dummy_impl.cpp +++ b/src/tex2lyx/dummy_impl.cpp @@ -18,9 +18,10 @@ #include -#include "Format.h" #include "LaTeXFeatures.h" +#include "LyXRC.h" #include "output_xhtml.h" +#include "xml.h" #include "support/Messages.h" @@ -37,28 +38,20 @@ namespace lyx { namespace frontend { namespace Alert { - void warning(docstring const & title, docstring const & message, - bool const &) + void warning(docstring const & title, docstring const & message, bool) { cerr << to_utf8(title) << "\n" << to_utf8(message) << endl; } -} -} +} // namespace Alert +} // namespace frontend // -// Dummy verbose support +// Required global variables // bool verbose = false; - - -// -// Dummy LyXRC support -// - - -class LyXRC {} lyxrc; +LyXRC lyxrc; // @@ -79,23 +72,6 @@ Messages const & getGuiMessages() } -// -// Dummy formats support (needed by Lexer) -// - - -Formats & theFormats() -{ - static Formats dummy_formats; - return dummy_formats; -} - -bool Formats::isZippedFile(support::FileName const&) const -{ - return false; -} - - // // Dummy features support (needed by ModuleList) // @@ -112,22 +88,6 @@ 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; -} // // Keep the linker happy on Windows @@ -136,4 +96,11 @@ frontend::FontMetrics const & theFontMetrics(FontInfo const &) { void lyx_exit(int) {} +namespace xml { +docstring StartTag::writeTag() const { return docstring(); } +docstring StartTag::writeEndTag() const { return docstring(); } +bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; } +bool FontTag::operator==(StartTag const & tag) const { FontTag const * const ftag = tag.asFontTag(); if (!ftag) return false; return (font_type_ == ftag->font_type_); } } + +} // namespace lyx