]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_metricsinfo.h
using previews might be a good alternative to hard coding such diagrams...
[lyx.git] / src / mathed / math_metricsinfo.h
index fbb4f02050ad8b10844123de5ed11b4d690c36d9..f4d6ab6275d06a309d7e5548ad891935ff11058d 100644 (file)
@@ -2,7 +2,6 @@
 #define MATH_METRICSINFO_H
 
 #include "lyxfont.h"
-#include "math_defs.h"
 #include "LString.h"
 
 class BufferView;
@@ -33,6 +32,10 @@ struct MathMetricsBase {
        MathStyles style;
        ///
        string fontname;
+       /// if this is set...
+       bool restrictwidth;
+       /// ... this is valid
+       int textwidth;
 };
 
 
@@ -44,10 +47,6 @@ struct MathMetricsInfo {
        MathMetricsBase base;
        ///
        BufferView * view;
-       /// used to pass some info down
-       MathNestInset const * inset;
-       ///
-       int idx;
        ///
        bool fullredraw;
 };
@@ -133,4 +132,13 @@ struct MathShapeChanger : public MathChanger<LyXFont, LyXFont::FONT_SHAPE> {
 };
 
 
+struct MathWidthChanger : public MathChanger<MathMetricsBase>
+{
+       ///
+       MathWidthChanger(MathMetricsBase & mb, int width);
+       ///
+       ~MathWidthChanger();
+};
+
+
 #endif