]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
Fix reading of math macros
[lyx.git] / src / mathed / math_spaceinset.h
index b6c0f525c173f9e2401d008d0f731c1f44f6434d..ab3011bbb088284ed860df70a575027178fae957 100644 (file)
@@ -3,7 +3,6 @@
 #define MATH_SPACEINSET_H
 
 #include "math_diminset.h"
-#include "math_defs.h"
 
 #ifdef __GNUG__
 #pragma interface
@@ -15,19 +14,32 @@ public:
        ///
        explicit MathSpaceInset(int sp);
        ///
+       explicit MathSpaceInset(string const & name);
+       ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       MathSpaceInset const * asSpaceInset() const { return this; }
        ///
-       void write(std::ostream &, bool fragile) const;
+       MathSpaceInset * asSpaceInset() { return this; }
        ///
-       void writeNormal(std::ostream &) const;
+       void incSpace();
        ///
-       void metrics(MathStyles st);
+       void metrics(MathMetricsInfo & mi) const;
        ///
-       bool isSpaceInset() const { return true; }
+       void draw(MathPainterInfo & pi, int x, int y) const;
+
        ///
-       void incSpace();
+       void normalize(NormalStream &) const;
+       ///
+       void validate(LaTeXFeatures & features) const;
+       ///
+       void maplize(MapleStream &) const;
+       ///
+       void mathematicize(MathematicaStream &) const;
+       ///
+       void octavize(OctaveStream &) const;
+       ///
+       void write(WriteStream & os) const;
 private:
        ///
        int space_;