]> 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 9983f4945b7a79d1f312ec884346c5f4b22cd33c..d48ff330d416f68f5d0ed4d86d5fe9e70efac388 100644 (file)
@@ -2,32 +2,41 @@
 #ifndef MATH_SPACEINSET_H
 #define MATH_SPACEINSET_H
 
-#include "math_inset.h"
-#include "math_defs.h"
+#include "math_diminset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /// Smart spaces
-class MathSpaceInset : public MathInset {
+class MathSpaceInset : public MathDimInset {
 public:
        ///
        explicit MathSpaceInset(int sp);
        ///
+       explicit MathSpaceInset(string const & name);
+       ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       MathSpaceInset const * asSpaceInset() const { return this; }
+       ///
+       MathSpaceInset * asSpaceInset() { return this; }
+       ///
+       void incSpace();
+       ///
+       void metrics(MathMetricsInfo & mi) const;
+       ///
+       void draw(MathPainterInfo & pi, int x, int y) const;
+
+       ///
+       void normalize(NormalStream &) const;
        ///
-       void Write(std::ostream &, bool fragile) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       void WriteNormal(std::ostream &) const;
+       void maple(MapleStream &) const;
        ///
-       void Metrics(MathStyles st);
+       void mathematica(MathematicaStream &) const;
        ///
-       void SetSpace(int sp);
+       void octave(OctaveStream &) const;
        ///
-       int GetSpace();
+       void write(WriteStream & os) const;
 private:
        ///
        int space_;