#define MATH_SPACEINSET_H
#include "math_inset.h"
-#include "math_defs.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
/// Smart spaces
class MathSpaceInset : public MathInset {
///
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_;