]> git.lyx.org Git - lyx.git/blob - src/mathed/math_metricsinfo.h
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_metricsinfo.h
1 #ifndef MATH_METRICSINFO
2 #define MATH_METRICSINFO
3
4 #include "lyxfont.h"
5
6 class BufferView;
7
8
9 /// Standard Math Sizes (Math mode styles)
10 enum MathStyles {
11         ///
12         LM_ST_DISPLAY = 0,
13         ///
14         LM_ST_TEXT,
15         ///
16         LM_ST_SCRIPT,
17         ///
18         LM_ST_SCRIPTSCRIPT
19 };
20
21
22 struct MathMetricsInfo {
23         ///
24         MathMetricsInfo()
25                 : view(0), font(), style(LM_ST_TEXT)
26         {}
27         ///
28         MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s)
29                 : view(v), font(f), style(s)
30         {}
31
32         ///
33         BufferView * view;
34         ///
35         LyXFont font;
36         ///
37         MathStyles style;
38 };
39
40 #endif