]> git.lyx.org Git - lyx.git/blob - src/mathed/math_metricsinfo.h
fix parser bug;
[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 class MathNestInset;
8
9
10 /// Standard Math Sizes (Math mode styles)
11 enum MathStyles {
12         ///
13         LM_ST_DISPLAY = 0,
14         ///
15         LM_ST_TEXT,
16         ///
17         LM_ST_SCRIPT,
18         ///
19         LM_ST_SCRIPTSCRIPT
20 };
21
22
23 struct MathMetricsInfo {
24         ///
25         MathMetricsInfo()
26                 : view(0), font(), style(LM_ST_TEXT), inset(0)
27         {}
28         ///
29         MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s)
30                 : view(v), font(f), style(s), inset(0)
31         {}
32
33         ///
34         BufferView * view;
35         ///
36         LyXFont font;
37         ///
38         MathStyles style;
39         /// used to pass some info down
40         MathNestInset const * inset;
41         ///
42         int idx;
43 };
44
45 #endif