]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_metricsinfo.h
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_metricsinfo.h
index db5a3c2caf2a2cd125f08ec0a184ffb5c2c6d140..d68f10533b7e05e4e2af9248848f229658445041 100644 (file)
@@ -1,8 +1,10 @@
-#ifndef MATH_METRICSINFO
-#define MATH_METRICSINFO
+#ifndef MATH_METRICSINFO_H
+#define MATH_METRICSINFO_H
+
+#include "lyxfont.h"
 
 class BufferView;
-class LyXFont;
+class MathNestInset;
 
 
 /// Standard Math Sizes (Math mode styles)
@@ -21,19 +23,36 @@ enum MathStyles {
 struct MathMetricsInfo {
        ///
        MathMetricsInfo()
-               : view(0), font(0), style(LM_ST_TEXT)
+               : view(0), font(), style(LM_ST_TEXT),
+                 inset(0), idx(0),
+                 fullredraw(false)
        {}
        ///
-       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), idx(0),
+                 fullredraw(false)
        {}
 
        ///
        BufferView * view;
        ///
-       LyXFont const * font;
+       LyXFont font;
        ///
        MathStyles style;
+       /// used to pass some info down
+       MathNestInset const * inset;
+       ///
+       int idx;
+       ///
+       bool fullredraw;
+};
+
+
+struct TextMetricsInfo {
+       ///
+       TextMetricsInfo()
+               {}
 };
 
 #endif