]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/dummy_impl.cpp
Move Kluwer template to attic.
[lyx.git] / src / tex2lyx / dummy_impl.cpp
index 79278f40a379f59312f4cf0d2a1f240ac921bad7..62436af5e67f112c158cb632742b82b7628db6cc 100644 (file)
 
 #include <config.h>
 
-#include "Format.h"
 #include "LaTeXFeatures.h"
+#include "LyXRC.h"
 #include "output_xhtml.h"
+#include "xml.h"
 
 #include "support/Messages.h"
 
@@ -37,8 +38,7 @@ 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;
        }
@@ -47,18 +47,11 @@ namespace Alert {
 
 
 //
-// 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)
 //
@@ -120,4 +96,11 @@ string alignmentToCSS(LyXAlignment)
 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