]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Font.h
tex2lyx/text.cpp: take care of the brace pair after comment environments that are...
[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         void setColor(int) {}
32         bool resolved() const { return true; }
33 };
34
35 /// Sane font.
36 extern FontInfo const sane_font;
37 /// All inherit font.
38 extern FontInfo const inherit_font;
39 /// All ignore font.
40 extern FontInfo const ignore_font;
41
42 class Font
43 {
44 public:
45         Font() {}
46         Font(FontInfo const &) {}
47 };
48
49 /// Read a font specification from Lexer. Used for layout files.
50 FontInfo lyxRead(Lexer &, FontInfo const & fi = sane_font);
51
52 } // namespace lyx
53
54 #endif // TEX2LYX_FONT_H