#define MATH_CHEATINSET_H
#include "InsetMath.h"
-#include "lyxlength.h"
+#include "Length.h"
+
+
+namespace lyx {
/// The \kern primitive
///
InsetMathKern();
///
- explicit InsetMathKern(LyXLength const & wid);
+ explicit InsetMathKern(Length const & wid);
///
- explicit InsetMathKern(std::string const & wid);
+ explicit InsetMathKern(docstring const & wid);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ bool metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo & pi, int x, int y) const;
///
void write(WriteStream & os) const;
///
void normalize(NormalStream & ns) const;
- ///
- int width() const;
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual std::auto_ptr<Inset> doClone() const;
/// width in em
- LyXLength wid_;
- /// in pixels
- mutable int wid_pix_;
-
+ Length wid_;
};
+
+
+} // namespace lyx
#endif