#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);
+ void draw(Painter &, int x, int y) const;
///
- void Write(std::ostream &, bool fragile);
+ void write(std::ostream &, bool fragile) const;
///
- void Metrics();
+ void writeNormal(std::ostream &) const;
///
- void SetSpace(int sp);
+ void metrics(MathStyles st) const;
///
- int GetSpace();
+ bool isSpaceInset() const { return true; }
+ ///
+ void incSpace();
private:
///
int space_;