#ifndef MATH_SPACEINSET_H
#define MATH_SPACEINSET_H
-#include "math_inset.h"
+#include "math_diminset.h"
#include "math_defs.h"
#ifdef __GNUG__
#endif
/// Smart spaces
-class MathSpaceInset : public MathedInset {
+class MathSpaceInset : public MathDimInset {
public:
///
- MathSpaceInset(int sp, short ot = LM_OT_SPACE, short st = LM_ST_TEXT);
+ explicit MathSpaceInset(int sp);
///
- MathedInset * Clone();
+ MathInset * clone() const;
///
- void draw(Painter &, int, int);
+ MathSpaceInset const * asSpaceInset() const { return this; }
///
- void Write(std::ostream &, bool fragile);
+ MathSpaceInset * asSpaceInset() { return this; }
///
- void WriteNormal(std::ostream &);
+ void incSpace();
///
- void Metrics();
+ void metrics(MathMetricsInfo const & st) const;
///
- void SetSpace(int sp);
+ void draw(Painter &, int x, int y) const;
+
+ ///
+ void normalize(NormalStream &) const;
+ ///
+ void maplize(MapleStream &) const;
+ ///
+ void octavize(OctaveStream &) const;
///
- int GetSpace();
+ void write(WriteStream & os) const;
private:
///
int space_;