]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_spaceinset.h
index b8afcb568bcd19d84f54ab8f08d7cda465d151ee..d48ff330d416f68f5d0ed4d86d5fe9e70efac388 100644 (file)
@@ -3,11 +3,7 @@
 #define MATH_SPACEINSET_H
 
 #include "math_diminset.h"
-#include "math_defs.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /// Smart spaces
 class MathSpaceInset : public MathDimInset {
@@ -15,19 +11,32 @@ public:
        ///
        explicit MathSpaceInset(int sp);
        ///
+       explicit MathSpaceInset(string const & name);
+       ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int x, int y) const;
+       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) const;
+       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 maple(MapleStream &) const;
+       ///
+       void mathematica(MathematicaStream &) const;
+       ///
+       void octave(OctaveStream &) const;
+       ///
+       void write(WriteStream & os) const;
 private:
        ///
        int space_;