]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_metricsinfo.h
Fix.
[lyx.git] / src / mathed / math_metricsinfo.h
index 8cb8422fd51e2ffe1a575ebf8a17e0dd0ea60afa..e9bbd9d7dd516ca0811a909ae2b920dd308daa7c 100644 (file)
@@ -1,12 +1,11 @@
 #ifndef MATH_METRICSINFO_H
 #define MATH_METRICSINFO_H
 
+
 #include "lyxfont.h"
 #include "LString.h"
 
-class BufferView;
 class Painter;
-class MathNestInset;
 
 
 /// Standard Math Sizes (Math mode styles)
@@ -46,19 +45,13 @@ struct MathMetricsInfo {
        ///
        MathMetricsBase base;
        ///
-       BufferView * view;
-       /// used to pass some info down
-       MathNestInset const * inset;
-       ///
-       int idx;
-       ///
        bool fullredraw;
 };
 
 
 struct MathPainterInfo {
        ///
-       MathPainterInfo(Painter & p);
+       MathPainterInfo(Painter & pain);
        ///
        void draw(int x, int y, char c);
 
@@ -73,7 +66,8 @@ struct TextMetricsInfo {};
 
 
 // Generic base for temporarily changing things.
-// The original state gets restored when the Changer is destructed
+// The original state gets restored when the Changer is destructed.
+
 template <class Struct, class Temp = Struct>
 struct MathChanger {
        ///
@@ -87,23 +81,6 @@ protected:
 
 
 
-struct MathScriptChanger : public MathChanger<MathMetricsBase> {
-       ///
-       MathScriptChanger(MathMetricsBase & orig);
-       ///
-       ~MathScriptChanger();
-};
-
-
-struct MathFracChanger : public MathChanger<MathMetricsBase> {
-       ///
-       MathFracChanger(MathMetricsBase & orig);
-       ///
-       ~MathFracChanger();
-};
-
-
-
 struct MathFontChanger : public MathChanger<LyXFont> {
        ///
        MathFontChanger(LyXFont & orig, char const * font);
@@ -128,6 +105,25 @@ struct MathStyleChanger : public MathChanger<MathMetricsBase> {
 };
 
 
+struct MathScriptChanger : public MathStyleChanger {
+       ///
+       MathScriptChanger(MathMetricsBase & mb);
+};
+
+
+struct MathFracChanger : public MathStyleChanger {
+       ///
+       MathFracChanger(MathMetricsBase & mb);
+};
+
+
+struct MathArrayChanger : public MathStyleChanger {
+       ///
+       MathArrayChanger(MathMetricsBase & mb);
+};
+
+
+
 struct MathShapeChanger : public MathChanger<LyXFont, LyXFont::FONT_SHAPE> {
        ///
        MathShapeChanger(LyXFont & font, LyXFont::FONT_SHAPE shape);