]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/lyxfont.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / tex2lyx / lyxfont.h
1 // -*- C++ -*-
2 /**
3  * \file tex2lyx/lyxfont.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  *
11  * This class is just a dummy version of that in the main LyX source tree
12  * to enable tex2lyx to use LyX's textclass classes and not have to
13  * re-invent the wheel.
14  *
15  */
16
17 #ifndef LYXFONT_H
18 #define LYXFONT_H
19
20 namespace lyx {
21
22 class LyXLex;
23
24 class LyXFont {
25 public:
26         /// Trick to overload constructor and make it megafast
27         enum FONT_INIT1 { ALL_INHERIT };
28         enum FONT_INIT3 { ALL_SANE };
29
30         LyXFont() {}
31         explicit LyXFont(LyXFont::FONT_INIT1) {}
32         explicit LyXFont(LyXFont::FONT_INIT3) {}
33
34         LyXFont & lyxRead(LyXLex &);
35
36         LyXFont & realize(LyXFont const &) { return *this; }
37         bool resolved() const { return true; }
38 };
39
40
41 } // namespace lyx
42
43 #endif // NOT LYXFONT_H