2002-03-18 11:45:53 +00:00
|
|
|
#ifndef MATH_METRICSINFO_H
|
|
|
|
#define MATH_METRICSINFO_H
|
2001-10-19 17:46:13 +00:00
|
|
|
|
2001-10-22 15:37:49 +00:00
|
|
|
#include "lyxfont.h"
|
|
|
|
|
2001-10-19 17:46:13 +00:00
|
|
|
class BufferView;
|
2002-02-11 08:19:02 +00:00
|
|
|
class MathNestInset;
|
2001-10-19 17:46:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
/// Standard Math Sizes (Math mode styles)
|
|
|
|
enum MathStyles {
|
|
|
|
///
|
|
|
|
LM_ST_DISPLAY = 0,
|
|
|
|
///
|
|
|
|
LM_ST_TEXT,
|
|
|
|
///
|
|
|
|
LM_ST_SCRIPT,
|
|
|
|
///
|
|
|
|
LM_ST_SCRIPTSCRIPT
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct MathMetricsInfo {
|
|
|
|
///
|
|
|
|
MathMetricsInfo()
|
2002-03-19 16:55:58 +00:00
|
|
|
: view(0), font(), style(LM_ST_TEXT),
|
|
|
|
inset(0), idx(0),
|
|
|
|
fullredraw(false)
|
2001-10-19 17:46:13 +00:00
|
|
|
{}
|
|
|
|
///
|
2001-10-22 15:37:49 +00:00
|
|
|
MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s)
|
2002-03-19 16:55:58 +00:00
|
|
|
: view(v), font(f), style(s),
|
|
|
|
inset(0), idx(0),
|
|
|
|
fullredraw(false)
|
2001-10-19 17:46:13 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
///
|
|
|
|
BufferView * view;
|
|
|
|
///
|
2001-10-22 15:37:49 +00:00
|
|
|
LyXFont font;
|
2001-10-19 17:46:13 +00:00
|
|
|
///
|
|
|
|
MathStyles style;
|
2002-02-11 08:19:02 +00:00
|
|
|
/// used to pass some info down
|
|
|
|
MathNestInset const * inset;
|
|
|
|
///
|
|
|
|
int idx;
|
2002-03-19 16:55:58 +00:00
|
|
|
///
|
|
|
|
bool fullredraw;
|
2001-10-19 17:46:13 +00:00
|
|
|
};
|
|
|
|
|
2002-03-18 11:45:53 +00:00
|
|
|
|
|
|
|
struct TextMetricsInfo {
|
|
|
|
///
|
|
|
|
TextMetricsInfo()
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2001-10-19 17:46:13 +00:00
|
|
|
#endif
|