2001-10-19 17:46:13 +00:00
|
|
|
#ifndef MATH_METRICSINFO
|
|
|
|
#define MATH_METRICSINFO
|
|
|
|
|
2001-10-22 15:37:49 +00:00
|
|
|
#include "lyxfont.h"
|
|
|
|
|
2001-10-19 17:46:13 +00:00
|
|
|
class BufferView;
|
|
|
|
|
|
|
|
|
|
|
|
/// Standard Math Sizes (Math mode styles)
|
|
|
|
enum MathStyles {
|
|
|
|
///
|
|
|
|
LM_ST_DISPLAY = 0,
|
|
|
|
///
|
|
|
|
LM_ST_TEXT,
|
|
|
|
///
|
|
|
|
LM_ST_SCRIPT,
|
|
|
|
///
|
|
|
|
LM_ST_SCRIPTSCRIPT
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct MathMetricsInfo {
|
|
|
|
///
|
|
|
|
MathMetricsInfo()
|
2001-10-22 15:37:49 +00:00
|
|
|
: view(0), font(), style(LM_ST_TEXT)
|
2001-10-19 17:46:13 +00:00
|
|
|
{}
|
|
|
|
///
|
2001-10-22 15:37:49 +00:00
|
|
|
MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s)
|
2001-10-19 17:46:13 +00:00
|
|
|
: view(v), font(f), style(s)
|
|
|
|
{}
|
|
|
|
|
|
|
|
///
|
|
|
|
BufferView * view;
|
|
|
|
///
|
2001-10-22 15:37:49 +00:00
|
|
|
LyXFont font;
|
2001-10-19 17:46:13 +00:00
|
|
|
///
|
|
|
|
MathStyles style;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|