]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_spaceinset.h
index 10c72e3ff1681c72ee3d0506b90a8666b354605f..d2a51a1aab0cfd9e629a18e60d45d23cabb9bb3d 100644 (file)
@@ -3,11 +3,7 @@
 #define MATH_SPACEINSET_H
 
 #include "math_inset.h"
-#include "math_defs.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /// Smart spaces
 class MathSpaceInset : public MathInset {
@@ -15,19 +11,32 @@ public:
        ///
        explicit MathSpaceInset(int sp);
        ///
-       MathInset * clone() const;
+       explicit MathSpaceInset(string const & name);
        ///
-       void draw(Painter &, int, int);
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       MathSpaceInset const * asSpaceInset() const { return this; }
        ///
-       void writeNormal(std::ostream &) const;
+       MathSpaceInset * asSpaceInset() { return this; }
        ///
-       void metrics(MathStyles st);
+       void incSpace();
        ///
-       bool isSpaceInset() const { return true; }
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       void incSpace();
+       void draw(PainterInfo & pi, int x, int y) const;
+
+       ///
+       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_;