]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
further code uglification to make Jean-Marc's compiler happy
[lyx.git] / src / mathed / math_spaceinset.h
index 9ec1c5aff8bd99e5a95b2bdc3c2629e6c38e8c3f..b8afcb568bcd19d84f54ab8f08d7cda465d151ee 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef MATH_SPACEINSET_H
 #define MATH_SPACEINSET_H
 
-#include "math_inset.h"
+#include "math_diminset.h"
 #include "math_defs.h"
 
 #ifdef __GNUG__
 #endif
 
 /// Smart spaces
-class MathSpaceInset : public MathedInset {
+class MathSpaceInset : public MathDimInset {
 public:
        ///
-       MathSpaceInset(int sp, short ot = LM_OT_SPACE, short st = LM_ST_TEXT);
+       explicit MathSpaceInset(int sp);
        ///
-       MathedInset * Clone();
+       MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       void draw(Painter &, int x, int y) const;
        ///
-       void Write(std::ostream &, bool fragile);
+       void write(std::ostream &, bool fragile) const;
        ///
-       void Metrics();
+       void writeNormal(std::ostream &) const;
        ///
-       void SetSpace(int sp);
+       void metrics(MathStyles st) const;
        ///
-       int GetSpace();
+       bool isSpaceInset() const { return true; }
+       ///
+       void incSpace();
 private:
        ///
        int space_;