]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathUnderset.h
Substack should not be allowed to change columns
[lyx.git] / src / mathed / InsetMathUnderset.h
index b28ef012b5768b9b816810e65785e429be79663b..9f77a50e421cdffc4d19a82f258cf8a8f13b402b 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_UNDERSETINSET_H
 
 
-#include "InsetMathFracBase.h"
+#include "InsetMathFrac.h"
 
 
 namespace lyx {
@@ -22,23 +22,30 @@ namespace lyx {
 class InsetMathUnderset : public InsetMathFracBase {
 public:
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       explicit InsetMathUnderset(Buffer * buf) : InsetMathFracBase(buf) {}
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       bool idxFirst(Cursor & cur) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       bool idxLast(Cursor & cur) const;
+       bool idxFirst(Cursor &) const override;
        ///
-       bool idxUpDown(Cursor & cur, bool up) const;
+       bool idxLast(Cursor &) const override;
        ///
-       void write(WriteStream & ws) const;
+       void write(TeXMathStream & ws) const override;
        ///
-       void normalize(NormalStream & ns) const;
+       void normalize(NormalStream & ns) const override;
        ///
-       void validate(LaTeXFeatures & features) const;
+       void mathmlize(MathMLStream &) const override;
+       ///
+       void htmlize(HtmlStream &) const override;
+       ///
+       void validate(LaTeXFeatures & features) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_UNDERSET_CODE; }
+
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const override;
 };