]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Font.h
simplify build process of tex2lyx
[lyx.git] / src / tex2lyx / Font.h
1 // -*- C++ -*-
2 /**
3  * \file tex2lyx/Font.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 TEX2LYX_FONT_H
18 #define TEX2LYX_FONT_H
19
20 namespace lyx {
21
22 class Lexer;
23
24 class Font {
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         Font() {}
31         explicit Font(Font::FONT_INIT1) {}
32         explicit Font(Font::FONT_INIT3) {}
33
34         Font & lyxRead(Lexer &);
35
36         Font & realize(Font const &) { return *this; }
37         bool resolved() const { return true; }
38 };
39
40
41 } // namespace lyx
42
43 #endif // TEX2LYX_FONT_H