]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/dummy_impl.cpp
Dispay pre- and posttext widgets if non-empty also if unapplied
[lyx.git] / src / tex2lyx / dummy_impl.cpp
index b20db6d9d6daad8053f80d04dfbbdaaa584041aa..15fbf8b3f36a0c13e46bbe59f287b904c3c8a6af 100644 (file)
@@ -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