X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathClass.h;h=89189f2b0ddf88814a070be94e9abd1712241ed5;hb=ffff88e7fcd46afaa3b1823e9fcdc4aad4e2114b;hp=1b30738f76d9d89d0ffbed5319c551b3979e3789;hpb=7441172d4d9a26eb4824bb8bee003f457ef34f1c;p=features.git diff --git a/src/mathed/InsetMathClass.h b/src/mathed/InsetMathClass.h index 1b30738f76..89189f2b0d 100644 --- a/src/mathed/InsetMathClass.h +++ b/src/mathed/InsetMathClass.h @@ -27,26 +27,36 @@ public: /// InsetMathClass(Buffer * buf, MathClass); /// - docstring name() const; + docstring name() const override; /// - MathClass mathClass() const { return math_class_; } + MathClass mathClass() const override { return math_class_; } + /// The default limits value in \c display style + Limits defaultLimits(bool display) const override; + /// whether the inset has limit-like sub/superscript + Limits limits() const override { return limits_; } + /// sets types of sub/superscripts + void limits(Limits lim) override { limits_ = lim; } /// - void metrics(MetricsInfo & mi, Dimension & dim) const; + void metrics(MetricsInfo & mi, Dimension & dim) const override; /// - void draw(PainterInfo & pi, int x, int y) const; + void draw(PainterInfo & pi, int x, int y) const override; /// - void infoize(odocstream & os) const; + void write(TeXMathStream & os) const override; /// - InsetCode lyxCode() const { return MATH_CLASS_CODE; } + void infoize(odocstream & os) const override; + /// + InsetCode lyxCode() const override { return MATH_CLASS_CODE; } /// InsetMathClass * asClassInset() { return this; } /// - InsetMathClass const * asClassInset() const { return this; } + InsetMathClass const * asClassInset() const override { return this; } private: - virtual Inset * clone() const; + Inset * clone() const override; /// MathClass math_class_; + /// + Limits limits_ = AUTO_LIMITS; };