]> git.lyx.org Git - lyx.git/blob - src/mathed/math_metricsinfo.h
fix for the first item on Martin's list
[lyx.git] / src / mathed / math_metricsinfo.h
1 #ifndef MATH_METRICSINFO_H
2 #define MATH_METRICSINFO_H
3
4 #include "lyxfont.h"
5 #include "textpainter.h"
6
7 class BufferView;
8 class MathNestInset;
9
10
11 /// Standard Math Sizes (Math mode styles)
12 enum MathStyles {
13         ///
14         LM_ST_DISPLAY = 0,
15         ///
16         LM_ST_TEXT,
17         ///
18         LM_ST_SCRIPT,
19         ///
20         LM_ST_SCRIPTSCRIPT
21 };
22
23
24 struct MathMetricsInfo {
25         ///
26         MathMetricsInfo()
27                 : view(0), font(), style(LM_ST_TEXT), inset(0)
28         {}
29         ///
30         MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s)
31                 : view(v), font(f), style(s), inset(0)
32         {}
33
34         ///
35         BufferView * view;
36         ///
37         LyXFont font;
38         ///
39         MathStyles style;
40         /// used to pass some info down
41         MathNestInset const * inset;
42         ///
43         int idx;
44 };
45
46
47 struct TextMetricsInfo {
48         ///
49         TextMetricsInfo()
50                 {}
51         /// used to pass some info down
52         MathNestInset const * inset;
53         ///
54         int idx;
55 };
56
57 #endif