]> git.lyx.org Git - lyx.git/blob - src/tests/dummy_functions.cpp
26983516027332d0bd587f57b1373f2a9710a06f
[lyx.git] / src / tests / dummy_functions.cpp
1 #include <config.h>
2
3 #include "Format.h"
4 #include "LayoutEnums.h"
5 #include "LyXRC.h"
6
7 #include "support/Messages.h"
8 #include "xml.h"
9
10 using namespace std;
11
12 namespace lyx {
13
14 // Dummy verbose support
15 bool verbose = false;
16
17 // Dummy LyXRC support
18 LyXRC lyxrc;
19
20 // Keep the linker happy on Windows
21 void lyx_exit(int) {}
22
23 // Dummy language support
24 Messages const & getGuiMessages()
25 {
26         static Messages lyx_messages;
27
28         return lyx_messages;
29 }
30
31
32 Messages const & getMessages(string const &)
33 {
34         static Messages lyx_messages;
35
36         return lyx_messages;
37 }
38
39
40 // Dummy formats support (needed by Lexer)
41 Formats & theFormats()
42 {
43         static Formats dummy_formats;
44         return dummy_formats;
45 }
46
47
48 string alignmentToCSS(LyXAlignment)
49 {
50         return string();
51 }
52
53 namespace xml {
54 docstring StartTag::writeTag() const { return docstring(); }
55 docstring StartTag::writeEndTag() const { return docstring(); }
56 bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; }
57   bool FontTag::operator==(StartTag const & tag) const { FontTag const * const ftag = tag.asFontTag();   if (!ftag) return false; return (font_type_ == ftag->font_type_); }
58 }
59
60 } // namespace lyx