X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathUnderset.h;h=9f77a50e421cdffc4d19a82f258cf8a8f13b402b;hb=593bfe248a15be99bfce7e12cde6c59c92951f5f;hp=b28ef012b5768b9b816810e65785e429be79663b;hpb=237c132c1e6fc720b87f2fea6deb18a8395cbe0a;p=lyx.git diff --git a/src/mathed/InsetMathUnderset.h b/src/mathed/InsetMathUnderset.h index b28ef012b5..9f77a50e42 100644 --- a/src/mathed/InsetMathUnderset.h +++ b/src/mathed/InsetMathUnderset.h @@ -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; };