]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathOverset.h
Fixup 097da3a9: fix horizontal navigatiion in InsetMathRoot
[lyx.git] / src / mathed / InsetMathOverset.h
index 078ccf55713971c2e39fadd75624bac044caeb14..eb6b86b7988f34fcb49b8c45eacca467497ae8e7 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,28 @@ namespace lyx {
 class InsetMathOverset : public InsetMathFracBase {
 public:
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       InsetMathOverset(Buffer * buf) : InsetMathFracBase(buf) {}
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       bool idxFirst(Cursor &) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       bool idxLast(Cursor &) const;
+       bool idxUpDown(Cursor & cur, bool up) const;
        ///
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream &) const;
        ///
+       void mathmlize(MathStream &) const;
+       ///
+       void htmlize(HtmlStream &) const;
+       ///
        void validate(LaTeXFeatures & features) const;
+       ///
+       InsetCode lyxCode() const { return MATH_OVERSET_CODE; }
+
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 };