]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/dummy_impl.cpp
Format and reversion code for new counter inset.
[lyx.git] / src / tex2lyx / dummy_impl.cpp
index 6fb1a84b7611a68e0b91dc8613e54a06b90c579c..c850cd97c113cfcf0b25b8f434378c4da82631bf 100644 (file)
@@ -43,37 +43,17 @@ namespace Alert {
        {
                cerr << to_utf8(title) << "\n" << to_utf8(message) << endl;
        }
-}
-}
-
-
-//
-// Dummy TexRow support (needed by docstream)
-//
-
-
-void TexRow::newline()
-{}
-
-
-void TexRow::newlines(int)
-{}
+} // namespace Alert
+} // namespace frontend
 
 
 //
-// Dummy LyXRC support
+// Required global variables
 //
 
+bool verbose = false;
 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()
-{}
-
 
 //
 // Dummy translation support (needed at many places)
@@ -97,7 +77,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
 {
@@ -121,6 +106,7 @@ string alignmentToCSS(LyXAlignment)
        return string();
 }
 
+
 //
 // Keep the linker happy on Windows
 //
@@ -128,4 +114,4 @@ string alignmentToCSS(LyXAlignment)
 void lyx_exit(int)
 {}
 
-}
+} // namespace lyx