X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathClass.h;h=89189f2b0ddf88814a070be94e9abd1712241ed5;hb=ffff88e7fcd46afaa3b1823e9fcdc4aad4e2114b;hp=390d77aca04f39c1163eddae2041e13e50838902;hpb=efc0877f8fd33ad9369d06e5b638037c8d6a1b24;p=features.git diff --git a/src/mathed/InsetMathClass.h b/src/mathed/InsetMathClass.h index 390d77aca0..89189f2b0d 100644 --- a/src/mathed/InsetMathClass.h +++ b/src/mathed/InsetMathClass.h @@ -30,11 +30,19 @@ public: docstring name() const override; /// 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 override; /// void draw(PainterInfo & pi, int x, int y) const override; /// + void write(TeXMathStream & os) const override; + /// void infoize(odocstream & os) const override; /// InsetCode lyxCode() const override { return MATH_CLASS_CODE; } @@ -47,6 +55,8 @@ private: Inset * clone() const override; /// MathClass math_class_; + /// + Limits limits_ = AUTO_LIMITS; };