]> git.lyx.org Git - lyx.git/blob - src/tests/dummy_functions.cpp
Fix external middle-mouse pasting with Qt5/X11.
[lyx.git] / src / tests / dummy_functions.cpp
1 #include <config.h>
2
3 #include "../support/Messages.h"
4
5 using namespace std;
6
7 namespace lyx {
8         // Dummy LyXRC support
9         class LyXRC { string icon_set; } lyxrc;
10
11         // Dummy LyXAlignment support
12         enum LyXAlignment {
13                 DUMMY
14         };
15
16         // Keep the linker happy on Windows
17         void lyx_exit(int) {}
18
19         // Dummy language support
20         Messages const & getGuiMessages()
21         {
22                 static Messages lyx_messages;
23
24                 return lyx_messages;
25         }
26         Messages const & getMessages(string const &)
27         {
28                 static Messages lyx_messages;
29
30                 return lyx_messages;
31         }
32
33         string alignmentToCSS(LyXAlignment)
34         {
35                 return string();
36         }
37
38         //
39         // Dummy FontMetrics (needed by Length)
40         //
41
42
43         class FontMetrics {
44                 int em() const { return 0; };
45         };
46
47         class FontInfo;
48
49         FontMetrics const & theFontMetrics(FontInfo const &) {
50                 static FontMetrics dummy;
51                 return dummy;
52         }
53
54 }