+// -*- C++ -*-
#ifndef MATH_SPACEINSET_H
#define MATH_SPACEINSET_H
-#include "math_inset.h"
+#include "math_diminset.h"
+#include "math_defs.h"
+
+#ifdef __GNUG__
+#pragma interface
+#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);
+ ///
+ MathInset * clone() const;
+ ///
+ MathSpaceInset const * asSpaceInset() const { return this; }
///
- MathedInset * Clone();
+ MathSpaceInset * asSpaceInset() { return this; }
///
- void draw(Painter &, int, int);
+ void incSpace();
+ ///
+ void metrics(MathMetricsInfo const & st) const;
+ ///
+ void draw(Painter &, int x, int y) const;
+
///
- void Write(std::ostream &, bool fragile);
+ void normalize(NormalStream &) const;
///
- inline void Metrics();
+ void maplize(MapleStream &) const;
///
- inline void SetSpace(int sp);
+ void octavize(OctaveStream &) const;
///
- int GetSpace() { return space; }
-protected:
+ void write(WriteStream & os) const;
+private:
///
- int space;
+ int space_;
};
#endif