+// -*- C++ -*-
#ifndef MATH_SPACEINSET_H
#define MATH_SPACEINSET_H
#include "math_inset.h"
+#include "math_defs.h"
+
+#ifdef __GNUG__
+#pragma interface
+#endif
/// Smart spaces
-class MathSpaceInset: public MathedInset {
+class MathSpaceInset : public MathInset {
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 Write(std::ostream &, bool fragile);
+ void Write(std::ostream &, bool fragile) const;
+ ///
+ void WriteNormal(std::ostream &) const;
///
- inline void Metrics();
+ void Metrics(MathStyles st, int asc = 0, int des = 0);
///
- inline void SetSpace(int sp);
+ void SetSpace(int sp);
///
- int GetSpace() { return space; }
-protected:
+ int GetSpace();
+private:
///
- int space;
+ int space_;
};
#endif