]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/dummy_impl.cpp
Capitalize labels of floats, etc. Fixes #11993.
[lyx.git] / src / tex2lyx / dummy_impl.cpp
index cb650321ebe41bbad6771cabc6001f0be9e1d355..961eb9ae0d4546882cfd1a10b6907d8cf31419a7 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "Format.h"
 #include "LaTeXFeatures.h"
+#include "LyXRC.h"
 #include "output_xhtml.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;
 
 
 //
@@ -112,32 +105,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;
-}
-
-//
-// Dummy theApp() support (needed by support/Systemcall.cpp)
-//
-struct App {
-       bool cancel_export;
-};
-
-App app;
-App * theApp() { return &app; }
 
 //
 // Keep the linker happy on Windows
@@ -146,4 +113,10 @@ App * theApp() { return &app; }
 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; }
+}
+
 } // namespace lyx