]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathKern.h
Move <algorithm> from DocIterator.h
[lyx.git] / src / mathed / InsetMathKern.h
index 8a1e3ee04770031e936c2d73925b3b595bbe9244..1cf938b2bd509b635a943c686b7f5e1d4c2da833 100644 (file)
@@ -4,7 +4,7 @@
  * 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.
  */
@@ -13,7 +13,8 @@
 #define MATH_CHEATINSET_H
 
 #include "InsetMath.h"
-#include "Length.h"
+
+#include "support/Length.h"
 
 
 namespace lyx {
@@ -31,15 +32,24 @@ public:
        ///
        explicit InsetMathKern(docstring const & wid);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
+       ///
+       void draw(PainterInfo & pi, int x, int y) const override;
+       ///
+       void write(WriteStream & 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(MathStream &) const override { }
        ///
-       void normalize(NormalStream & ns) const;
+       void htmlize(HtmlStream &) const override { }
+       ///
+       void infoize2(odocstream & os) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_KERN_CODE; }
+
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       Inset * clone() const override;
        /// width in em
        Length wid_;
 };