]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathOverset.h
Revert "Fix a number of signedness warnings"
[lyx.git] / src / mathed / InsetMathOverset.h
index cff7e7a22947d0e3077ef5f1eb062e972b203887..36b548ffc4e41427655a11fd61c43c60592dbb57 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,7 @@
 #define MATH_OVERSETINSET_H
 
 
-#include "InsetMathFracBase.h"
+#include "InsetMathFrac.h"
 
 
 namespace lyx {
@@ -22,21 +22,32 @@ namespace lyx {
 class InsetMathOverset : public InsetMathFracBase {
 public:
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       explicit InsetMathOverset(Buffer * buf) : InsetMathFracBase(buf) {}
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       bool idxFirst(LCursor &) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       bool idxLast(LCursor &) const;
+       bool idxUpDown(Cursor & cur, bool up) const override;
        ///
-       void write(WriteStream & os) const;
+       bool idxFirst(Cursor &) const override;
        ///
-       void normalize(NormalStream &) const;
+       bool idxLast(Cursor &) const override;
        ///
-       void validate(LaTeXFeatures & features) const;
+       void write(WriteStream & os) const override;
+       ///
+       void normalize(NormalStream &) const override;
+       ///
+       void mathmlize(MathStream &) const override;
+       ///
+       void htmlize(HtmlStream &) const override;
+       ///
+       void validate(LaTeXFeatures & features) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_OVERSET_CODE; }
+
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const override;
 };