mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
99cb25781a
some infrastructure for drawing as ascii art git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3761 a592a061-630c-0410-9148-cb99ea01b6c8
58 lines
811 B
C++
58 lines
811 B
C++
#ifndef MATH_METRICSINFO_H
|
|
#define MATH_METRICSINFO_H
|
|
|
|
#include "lyxfont.h"
|
|
#include "textpainter.h"
|
|
|
|
class BufferView;
|
|
class MathNestInset;
|
|
|
|
|
|
/// 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(), style(LM_ST_TEXT), inset(0)
|
|
{}
|
|
///
|
|
MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s)
|
|
: view(v), font(f), style(s), inset(0)
|
|
{}
|
|
|
|
///
|
|
BufferView * view;
|
|
///
|
|
LyXFont font;
|
|
///
|
|
MathStyles style;
|
|
/// used to pass some info down
|
|
MathNestInset const * inset;
|
|
///
|
|
int idx;
|
|
};
|
|
|
|
|
|
struct TextMetricsInfo {
|
|
///
|
|
TextMetricsInfo()
|
|
{}
|
|
/// used to pass some info down
|
|
MathNestInset const * inset;
|
|
///
|
|
int idx;
|
|
};
|
|
|
|
#endif
|