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"
23 #include "output_xhtml.h"
25 #include "support/Messages.h"
34 // Dummy Alert support (needed by TextClass)
40 void warning(docstring const & title, docstring const & message,
43 cerr << to_utf8(title) << "\n" << to_utf8(message) << endl;
50 // Dummy verbose support
57 // Dummy LyXRC support
65 // Dummy translation support (needed at many places)
70 Messages const & getMessages(string const &)
76 Messages const & getGuiMessages()
83 // Dummy formats support (needed by Lexer)
88 bool Formats::isZippedFile(support::FileName const&) const
95 // Dummy features support (needed by ModuleList)
99 bool LaTeXFeatures::isAvailable(string const &)
105 string alignmentToCSS(LyXAlignment)
111 // Dummy FontMetrics (needed by Length)
116 int em() const { return 0; };
122 frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
123 static frontend::FontMetrics dummy;
128 // Keep the linker happy on Windows