]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Font.h
pimpl not needed here
[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 //#include "FontInfo.h"
21
22 namespace lyx {
23
24 class Lexer;
25
26 class FontInfo
27 {
28 public:
29         FontInfo() {}
30         FontInfo & realize(FontInfo const &) { return *this; }
31         bool resolved() const { return true; }
32 };
33
34 /// Sane font.
35 extern FontInfo const sane_font;
36 /// All inherit font.
37 extern FontInfo const inherit_font;
38 /// All ignore font.
39 extern FontInfo const ignore_font;
40
41 class Font
42 {
43 public:
44         Font() {}
45         Font(FontInfo const &) {}
46 };
47
48 /// Read a font specification from Lexer. Used for layout files.
49 FontInfo lyxRead(Lexer &, FontInfo const & fi);
50
51 } // namespace lyx
52
53 #endif // TEX2LYX_FONT_H