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 TexRow support (needed by docstream)
-//
-
-
-void TexRow::newline()
-{}
-
-
-void TexRow::newlines(int)
-{}
-
-
-//
-// 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)
// Dummy formats support (needed by Lexer)
//
-Formats formats;
+
+Formats & theFormats()
+{
+ static Formats dummy_formats;
+ return dummy_formats;
+}
bool Formats::isZippedFile(support::FileName const&) const
{
return string();
}
-//
-// Dummy FontMetrics (needed by Length)
-//
-
-
-class FontMetrics {
- int em() const { return 0; };
-};
-
-class FontInfo;
-
-FontMetrics const & theFontMetrics(FontInfo const &) {
- static FontMetrics dummy;
- return dummy;
-}
//
// Keep the linker happy on Windows
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