mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
40 lines
528 B
C
40 lines
528 B
C
|
#ifndef MATH_METRICSINFO
|
||
|
#define MATH_METRICSINFO
|
||
|
|
||
|
class BufferView;
|
||
|
class LyXFont;
|
||
|
|
||
|
|
||
|
/// Standard Math Sizes (Math mode styles)
|
||
|
enum MathStyles {
|
||
|
///
|
||
|
LM_ST_DISPLAY = 0,
|
||
|
///
|
||
|
LM_ST_TEXT,
|
||
|
///
|
||
|
LM_ST_SCRIPT,
|
||
|
///
|
||
|
LM_ST_SCRIPTSCRIPT
|
||
|
};
|
||
|
|
||
|
|
||
|
struct MathMetricsInfo {
|
||
|
///
|
||
|
MathMetricsInfo()
|
||
|
: view(0), font(0), style(LM_ST_TEXT)
|
||
|
{}
|
||
|
///
|
||
|
MathMetricsInfo(BufferView * v, LyXFont const * f, MathStyles s)
|
||
|
: view(v), font(f), style(s)
|
||
|
{}
|
||
|
|
||
|
///
|
||
|
BufferView * view;
|
||
|
///
|
||
|
LyXFont const * font;
|
||
|
///
|
||
|
MathStyles style;
|
||
|
};
|
||
|
|
||
|
#endif
|