X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathSize.h;h=7073f5da15b3ba40515a26093f477a3cf9a47c49;hb=ffff88e7fcd46afaa3b1823e9fcdc4aad4e2114b;hp=f749e3ef5c0d909f342a2511a5a62659af76c237;hpb=e24bf64c68102691fc76081de9fb57926b482726;p=features.git diff --git a/src/mathed/InsetMathSize.h b/src/mathed/InsetMathSize.h index f749e3ef5c..7073f5da15 100644 --- a/src/mathed/InsetMathSize.h +++ b/src/mathed/InsetMathSize.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. */ @@ -12,39 +12,49 @@ #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 { public: /// - explicit InsetMathSize(latexkeys const * l); + 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; } /// - bool 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(MathMLStream &) const override; + /// + void htmlize(HtmlStream &) const override; + /// + void validate(LaTeXFeatures &) const override; + /// + InsetCode lyxCode() const override { return MATH_SIZE_CODE; } + private: - virtual std::auto_ptr doClone() const; + Inset * clone() const override; /// latexkeys const * key_; /// - Styles const style_; + MathStyle const style_; };