-#ifndef MATH_METRICSINFO
-#define MATH_METRICSINFO
+#ifndef MATH_METRICSINFO_H
+#define MATH_METRICSINFO_H
+
+#include "lyxfont.h"
+#include "textpainter.h"
class BufferView;
-class LyXFont;
+class MathNestInset;
/// Standard Math Sizes (Math mode styles)
struct MathMetricsInfo {
///
MathMetricsInfo()
- : view(0), font(0), style(LM_ST_TEXT)
+ : view(0), font(), style(LM_ST_TEXT), inset(0)
{}
///
- MathMetricsInfo(BufferView * v, LyXFont const * f, MathStyles s)
- : view(v), font(f), style(s)
+ MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s)
+ : view(v), font(f), style(s), inset(0)
{}
///
BufferView * view;
///
- LyXFont const * font;
+ 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