]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / math_spaceinset.h
index 33251ed5cdaef5d008533f8547875c82846533b9..620f4d2bdd4ae1c83e8c11f8331890bafde0e8ec 100644 (file)
@@ -1,27 +1,35 @@
+// -*- 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