* 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_UNDERSETINSET_H
-#include "InsetMathFracBase.h"
+#include "InsetMathFrac.h"
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;
};