]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
fix #1073
[lyx.git] / src / mathed / math_spaceinset.h
index 4d20d2707d53bb20cb0d759ad9e4b8eeab32ebc1..c22c05fc53f65cc09d9f762d03a9e1b3dcef2d24 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:
        ///
-       MathSpaceInset(int sp, short ot = LM_OT_SPACE);
+       explicit MathSpaceInset(int sp);
+       ///
+       explicit MathSpaceInset(string const & name);
+       ///
+       MathInset * clone() const;
+       ///
+       MathSpaceInset const * asSpaceInset() const { return this; }
        ///
-       MathInset *  Clone() const;
+       MathSpaceInset * asSpaceInset() { return this; }
+       ///
+       void incSpace();
+       ///
+       void metrics(MetricsInfo & mi) const;
+       ///
+       void draw(PainterInfo & pi, int x, int y) const;
+
        ///
-       void draw(Painter &, int, int);
+       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_;