]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
use stream-like syntax for LaTeX output
[lyx.git] / src / mathed / math_spaceinset.h
index 10c72e3ff1681c72ee3d0506b90a8666b354605f..fddaed61301a878f467044814133039182d4ac1b 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 MathInset {
+class MathSpaceInset : public MathDimInset {
 public:
        ///
        explicit MathSpaceInset(int sp);
        ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       void draw(Painter &, int x, int y) const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void write(MathWriteInfo & os) const;
        ///
        void writeNormal(std::ostream &) const;
        ///
-       void metrics(MathStyles st);
+       void metrics(MathMetricsInfo const & st) const;
        ///
-       bool isSpaceInset() const { return true; }
+       MathSpaceInset const * asSpaceInset() const { return this; }
+       ///
+       MathSpaceInset * asSpaceInset() { return this; }
        ///
        void incSpace();
 private: