X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathSize.h;h=7073f5da15b3ba40515a26093f477a3cf9a47c49;hb=ffff88e7fcd46afaa3b1823e9fcdc4aad4e2114b;hp=f3d8f8d37a6acb74991534c03ab2879a60abebb8;hpb=f3711d8a651445a61e1a759ac7493a9c5c7800e2;p=features.git diff --git a/src/mathed/InsetMathSize.h b/src/mathed/InsetMathSize.h index f3d8f8d37a..7073f5da15 100644 --- a/src/mathed/InsetMathSize.h +++ b/src/mathed/InsetMathSize.h @@ -12,14 +12,15 @@ #ifndef MATHSIZEINSET_H #define MATHSIZEINSET_H +#include "FontEnums.h" #include "InsetMathNest.h" -#include "MetricsInfo.h" namespace lyx { class latexkeys; +class MetricsInfo; /// An inset for \scriptsize etc. class InsetMathSize : public InsetMathNest { @@ -27,33 +28,33 @@ public: /// explicit InsetMathSize(Buffer * buf, latexkeys const * l); /// we write extra braces in any case... - bool extraBraces() const { return true; } + bool extraBraces() const override { return true; } /// - void metrics(MetricsInfo & mi, Dimension & dim) const; + void metrics(MetricsInfo & mi, Dimension & dim) const override; /// - void draw(PainterInfo &, int x, int y) const; + void draw(PainterInfo &, int x, int y) const override; /// - void write(WriteStream & os) const; + void write(TeXMathStream & os) const override; /// - void normalize(NormalStream &) const; + void normalize(NormalStream &) const override; /// - void infoize(odocstream & os) const; + void infoize(odocstream & os) const override; /// - void mathmlize(MathStream &) const; + void mathmlize(MathMLStream &) const override; /// - void htmlize(HtmlStream &) const; + void htmlize(HtmlStream &) const override; /// - void validate(LaTeXFeatures &) const; + void validate(LaTeXFeatures &) const override; /// - InsetCode lyxCode() const { return MATH_SIZE_CODE; } + InsetCode lyxCode() const override { return MATH_SIZE_CODE; } private: - virtual Inset * clone() const; + Inset * clone() const override; /// latexkeys const * key_; /// - Styles const style_; + MathStyle const style_; };