// -*- 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_inset.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
/// Smart spaces
-class MathSpaceInset : public MathDimInset {
+class MathSpaceInset : public MathInset {
public:
///
explicit MathSpaceInset(int sp);
///
- explicit MathSpaceInset(string const & name);
- ///
- MathInset * clone() const;
+ explicit MathSpaceInset(std::string const & name);
///
MathSpaceInset const * asSpaceInset() const { return this; }
///
///
void incSpace();
///
- void metrics(MathMetricsInfo & st) const;
+ int ascent() const;
+ ///
+ int descent() const;
///
- void draw(MathPainterInfo &, int x, int y) const;
+ int width() const;
+ ///
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
+ ///
+ void draw(PainterInfo & pi, int x, int y) const;
///
void normalize(NormalStream &) const;
///
- void maplize(MapleStream &) const;
+ void validate(LaTeXFeatures & features) const;
+ ///
+ void maple(MapleStream &) const;
///
- void mathematicize(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const;
///
- void octavize(OctaveStream &) const;
+ void octave(OctaveStream &) const;
///
void write(WriteStream & os) const;
private:
+ virtual std::auto_ptr<InsetBase> doClone() const;
///
int space_;
};