* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#define MATH_CHEATINSET_H
#include "InsetMath.h"
-#include "lyxlength.h"
+
+#include "support/Length.h"
namespace lyx {
///
InsetMathKern();
///
- explicit InsetMathKern(LyXLength const & wid);
+ explicit InsetMathKern(Length const & wid);
+ ///
+ explicit InsetMathKern(docstring const & wid);
+ ///
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- explicit InsetMathKern(std::string const & wid);
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void write(TeXMathStream & os) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void normalize(NormalStream & ns) const override;
///
- void write(WriteStream & os) const;
+ void mathmlize(MathMLStream &) const override { }
///
- void normalize(NormalStream & ns) const;
+ void htmlize(HtmlStream &) const override { }
///
- int width() const;
+ void infoize2(odocstream & os) const override;
+ ///
+ InsetCode lyxCode() const override { return MATH_KERN_CODE; }
+
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ Inset * clone() const override;
/// width in em
- LyXLength wid_;
- /// in pixels
- mutable int wid_pix_;
-
+ Length wid_;
};