]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
small up/down tweaking
[lyx.git] / src / mathed / math_spaceinset.h
index fb91b26d12d113ea7acd27d9ae8677b65490a54f..ab3011bbb088284ed860df70a575027178fae957 100644 (file)
@@ -1,27 +1,47 @@
+// -*- C++ -*-
 #ifndef MATH_SPACEINSET_H
 #define MATH_SPACEINSET_H
 
-#include "math_inset.h"
+#include "math_diminset.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);
+       ///
+       explicit MathSpaceInset(string const & name);
+       ///
+       MathInset * clone() const;
+       ///
+       MathSpaceInset const * asSpaceInset() const { return this; }
+       ///
+       MathSpaceInset * asSpaceInset() { return this; }
+       ///
+       void incSpace();
+       ///
+       void metrics(MathMetricsInfo & mi) const;
+       ///
+       void draw(MathPainterInfo & pi, int x, int y) const;
+
        ///
-       MathedInset * Clone();
+       void normalize(NormalStream &) const;
        ///
-       void draw(Painter &, int, int);
+       void validate(LaTeXFeatures & features) const;
        ///
-       void Write(std::ostream &, bool fragile);
+       void maplize(MapleStream &) const;
        ///
-       void Metrics();
+       void mathematicize(MathematicaStream &) const;
        ///
-       void SetSpace(int sp);
+       void octavize(OctaveStream &) const;
        ///
-       int GetSpace() { return space; }
-protected:
+       void write(WriteStream & os) const;
+private:
        ///
-       int space;
+       int space_;
 };
 #endif