]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/dummy_impl.cpp
Remove 3rdparty/boost/Makefile.am
[lyx.git] / src / tex2lyx / dummy_impl.cpp
1 /**
2  * \file dummy_impl.cpp
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Jean-Marc Lasgouttes
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 /**
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.
15 */
16
17 // {[(
18
19 #include <config.h>
20
21 #include "Format.h"
22 #include "LaTeXFeatures.h"
23 #include "LyXRC.h"
24 #include "output_xhtml.h"
25
26 #include "support/Messages.h"
27
28 #include <iostream>
29
30 using namespace std;
31
32 namespace lyx {
33
34 //
35 // Dummy Alert support (needed by TextClass)
36 //
37
38
39 namespace frontend {
40 namespace Alert {
41         void warning(docstring const & title, docstring const & message, bool)
42         {
43                 cerr << to_utf8(title) << "\n" << to_utf8(message) << endl;
44         }
45 } // namespace Alert
46 } // namespace frontend
47
48
49 //
50 // Required global variables
51 //
52
53 bool verbose = false;
54 LyXRC lyxrc;
55
56
57 //
58 // Dummy translation support (needed at many places)
59 //
60
61
62 Messages messages_;
63 Messages const & getMessages(string const &)
64 {
65         return messages_;
66 }
67
68
69 Messages const & getGuiMessages()
70 {
71         return messages_;
72 }
73
74
75 //
76 // Dummy formats support (needed by Lexer)
77 //
78
79
80 Formats & theFormats()
81 {
82         static Formats dummy_formats;
83         return dummy_formats;
84 }
85
86 bool Formats::isZippedFile(support::FileName const&) const
87 {
88         return false;
89 }
90
91
92 //
93 // Dummy features support (needed by ModuleList)
94 //
95
96
97 bool LaTeXFeatures::isAvailable(string const &)
98 {
99         return true;
100 }
101
102
103 string alignmentToCSS(LyXAlignment)
104 {
105         return string();
106 }
107
108
109 //
110 // Keep the linker happy on Windows
111 //
112
113 void lyx_exit(int)
114 {}
115
116 namespace xml {
117 docstring StartTag::writeTag() const { return docstring(); }
118 docstring StartTag::writeEndTag() const { return docstring(); }
119 bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; }
120 }
121
122 } // namespace lyx