]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/lyxfont.h
code cosmetics to the iterator fix
[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 class LyXLex;
21
22 class LyXFont {
23 public:
24         /// Trick to overload constructor and make it megafast
25         enum FONT_INIT1 { ALL_INHERIT };
26         enum FONT_INIT3 { ALL_SANE };
27
28         LyXFont() {}
29         explicit LyXFont(LyXFont::FONT_INIT1) {}
30         explicit LyXFont(LyXFont::FONT_INIT3) {}
31
32         LyXFont & lyxRead(LyXLex &);
33
34         LyXFont & realize(LyXFont const &) { return *this; }
35         bool resolved() const { return true; }
36 };
37
38 #endif // NOT LYXFONT_H