3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Jean-Marc Lasgouttes
8 * Full author contact details are available in file CREDITS.
12 * This file contains dummy implementation of some methods that are
13 * needed byclasses used by tex2lyx. This allows to reduce the number
14 * of classes we have to link against.
22 #include "LaTeXFeatures.h"
24 #include "output_xhtml.h"
26 #include "support/Messages.h"
35 // Dummy Alert support (needed by TextClass)
41 void warning(docstring const & title, docstring const & message,
44 cerr << to_utf8(title) << "\n" << to_utf8(message) << endl;
51 // Dummy verbose support
58 // Dummy LyXRC support
63 /** Note that some variables are not initialized correctly. Hopefully
64 * they are not used in our code (currently valgrind does not complain).
65 * Linking against the full LyXRC.cpp forces us to pull too much
73 // Dummy translation support (needed at many places)
78 Messages const & getMessages(string const &)
84 Messages const & getGuiMessages()
91 // Dummy formats support (needed by Lexer)
96 bool Formats::isZippedFile(support::FileName const&) const
103 // Dummy features support (needed by ModuleList)
107 bool LaTeXFeatures::isAvailable(string const &)
113 string alignmentToCSS(LyXAlignment)
119 // Dummy FontMetrics (needed by Length)
124 int em() const { return 0; };
130 frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
131 static frontend::FontMetrics dummy;
136 // Keep the linker happy on Windows