#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, 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_;