]> git.lyx.org Git - features.git/blob - src/FontEnums.h
Support the mathbbm font.
[features.git] / src / FontEnums.h
1 // -*- C++ -*-
2 /**
3  * \file src/FontEnums.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  * \author Jean-Marc Lasgouttes
9  * \author Angus Leeming
10  * \author Dekel Tsur
11  *
12  * Full author contact details are available in file CREDITS.
13  */
14
15 #ifndef FONT_ENUMS_H
16 #define FONT_ENUMS_H
17
18 namespace lyx {
19
20 /** The value INHERIT_* means that the font attribute is
21 inherited from the layout. In the case of layout fonts, the
22 attribute is inherited from the default font.
23 The value IGNORE_* is used with Font::update() when the
24 attribute should not be changed.
25 */
26 enum FontFamily {
27         ///
28         ROMAN_FAMILY = 0,
29         ///
30         SANS_FAMILY,
31         ///
32         TYPEWRITER_FAMILY,
33         ///
34         SYMBOL_FAMILY,
35         ///
36         CMR_FAMILY,
37         ///
38         CMSY_FAMILY,
39         ///
40         CMM_FAMILY,
41         ///
42         CMEX_FAMILY,
43         ///
44         MSA_FAMILY,
45         ///
46         MSB_FAMILY,
47         ///
48         DS_FAMILY,
49         ///
50         BBM_FAMILY,
51         ///
52         EUFRAK_FAMILY,
53         ///
54         RSFS_FAMILY,
55         ///
56         STMARY_FAMILY,
57         ///
58         WASY_FAMILY,
59         ///
60         ESINT_FAMILY,
61         ///
62         INHERIT_FAMILY,
63         ///
64         IGNORE_FAMILY,
65         ///
66         NUM_FAMILIES = INHERIT_FAMILY
67 };
68
69 ///
70 enum FontSeries {
71         ///
72         MEDIUM_SERIES = 0,
73         ///
74         BOLD_SERIES,
75         ///
76         INHERIT_SERIES,
77         ///
78         IGNORE_SERIES,
79         ///
80         NUM_SERIES = INHERIT_SERIES
81 };
82
83 ///
84 enum FontShape {
85         ///
86         UP_SHAPE = 0,
87         ///
88         ITALIC_SHAPE,
89         ///
90         SLANTED_SHAPE,
91         ///
92         SMALLCAPS_SHAPE,
93         ///
94         INHERIT_SHAPE,
95         ///
96         IGNORE_SHAPE,
97         ///
98         NUM_SHAPE = INHERIT_SHAPE
99 };
100
101 ///
102 enum FontSize {
103         ///
104         TINY_SIZE = 0,
105         ///
106         SCRIPT_SIZE,
107         ///
108         FOOTNOTE_SIZE,
109         ///
110         SMALL_SIZE,
111         ///
112         NORMAL_SIZE,
113         ///
114         LARGE_SIZE,
115         ///
116         LARGER_SIZE,
117         ///
118         LARGEST_SIZE,
119         ///
120         HUGE_SIZE,
121         ///
122         HUGER_SIZE,
123         ///
124         INCREASE_SIZE,
125         ///
126         DECREASE_SIZE,
127         ///
128         INHERIT_SIZE,
129         ///
130         IGNORE_SIZE,
131         ///
132         NUM_SIZE = INCREASE_SIZE
133 };
134
135 /// Used for emph, underbar, noun and latex toggles
136 enum FontState {
137         ///
138         FONT_OFF,
139         ///
140         FONT_ON,
141         ///
142         FONT_TOGGLE,
143         ///
144         FONT_INHERIT,
145         ///
146         FONT_IGNORE
147 };
148
149
150 /// Math styles
151 enum MathStyle {
152         ///
153         SCRIPTSCRIPT_STYLE = 0,
154         ///
155         SCRIPT_STYLE,
156         ///
157         TEXT_STYLE,
158         ///
159         DISPLAY_STYLE,
160         ///
161         INHERIT_STYLE,
162         ///
163         IGNORE_STYLE,
164         /// the text and display fonts are the same
165         NUM_STYLE = DISPLAY_STYLE
166 };
167
168
169 } // namespace lyx
170 #endif