]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_spaceinset.h
index b9554ee4d40ba272dcb223f78b04d9d194d32f91..d2a51a1aab0cfd9e629a18e60d45d23cabb9bb3d 100644 (file)
@@ -2,34 +2,41 @@
 #ifndef MATH_SPACEINSET_H
 #define MATH_SPACEINSET_H
 
-#include "math_diminset.h"
-#include "math_defs.h"
+#include "math_inset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /// Smart spaces
-class MathSpaceInset : public MathDimInset {
+class MathSpaceInset : public MathInset {
 public:
        ///
        explicit MathSpaceInset(int sp);
        ///
-       MathInset * clone() const;
+       explicit MathSpaceInset(string const & name);
        ///
-       void draw(Painter &, int x, int y) const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void write(WriteStream & os) const;
+       MathSpaceInset const * asSpaceInset() const { return this; }
+       ///
+       MathSpaceInset * asSpaceInset() { return this; }
+       ///
+       void incSpace();
+       ///
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       ///
+       void draw(PainterInfo & pi, int x, int y) const;
+
        ///
        void normalize(NormalStream &) const;
        ///
-       void metrics(MathMetricsInfo const & st) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       MathSpaceInset const * asSpaceInset() const { return this; }
+       void maple(MapleStream &) const;
        ///
-       MathSpaceInset * asSpaceInset() { return this; }
+       void mathematica(MathematicaStream &) const;
        ///
-       void incSpace();
+       void octave(OctaveStream &) const;
+       ///
+       void write(WriteStream & os) const;
 private:
        ///
        int space_;