]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
several small fixes for mathed
[lyx.git] / src / mathed / math_spaceinset.h
index 67062c52681d98e9f8973e9f47e6c13f1eb5be8a..00dd1a80186af52b02f221ea0eec99eb67fa65d9 100644 (file)
@@ -1,33 +1,52 @@
 // -*- C++ -*-
+/**
+ * \file math_spaceinset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #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 MathInset {
 public:
        ///
-       MathSpaceInset(int sp, MathInsetTypes ot = LM_OT_SPACE);
+       explicit MathSpaceInset(int sp);
+       ///
+       explicit MathSpaceInset(std::string const & name);
+       ///
+       virtual std::auto_ptr<InsetBase> clone() const;
+       ///
+       MathSpaceInset const * asSpaceInset() const { return this; }
        ///
-       MathInset *  clone() const;
+       MathSpaceInset * asSpaceInset() { return this; }
+       ///
+       void incSpace();
+       ///
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       ///
+       void draw(PainterInfo & pi, int x, int y) const;
+
        ///
-       void draw(Painter &, int, int);
+       void normalize(NormalStream &) const;
        ///
-       void Write(std::ostream &, bool fragile) const;
+       void validate(LaTeXFeatures & features) const;
        ///
-       void WriteNormal(std::ostream &) const;
+       void maple(MapleStream &) const;
        ///
-       void Metrics(MathStyles st);
+       void mathematica(MathematicaStream &) const;
        ///
-       void SetSpace(int sp);
+       void octave(OctaveStream &) const;
        ///
-       int GetSpace();
+       void write(WriteStream & os) const;
 private:
        ///
        int space_;