]> 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 b6c0f525c173f9e2401d008d0f731c1f44f6434d..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_diminset.h"
-#include "math_defs.h"
+#include "math_inset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /// Smart spaces
-class MathSpaceInset : public MathDimInset {
+class MathSpaceInset : public MathInset {
 public:
        ///
        explicit MathSpaceInset(int sp);
        ///
-       MathInset * clone() const;
+       explicit MathSpaceInset(std::string const & name);
+       ///
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void draw(Painter &, int, int);
+       MathSpaceInset const * asSpaceInset() const { return this; }
        ///
-       void write(std::ostream &, bool fragile) const;
+       MathSpaceInset * asSpaceInset() { return this; }
        ///
-       void writeNormal(std::ostream &) const;
+       void incSpace();
        ///
-       void metrics(MathStyles st);
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       bool isSpaceInset() const { return true; }
+       void draw(PainterInfo & pi, int x, int y) const;
+
        ///
-       void incSpace();
+       void normalize(NormalStream &) const;
+       ///
+       void validate(LaTeXFeatures & features) const;
+       ///
+       void maple(MapleStream &) const;
+       ///
+       void mathematica(MathematicaStream &) const;
+       ///
+       void octave(OctaveStream &) const;
+       ///
+       void write(WriteStream & os) const;
 private:
        ///
        int space_;