]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathClass.h
Rm dup "Float" in "Insert>Float>Figure Wrap Float"
[features.git] / src / mathed / InsetMathClass.h
index f50040d3b4b4fdc436ff8ac7fc4e31d0822872d1..89189f2b0ddf88814a070be94e9abd1712241ed5 100644 (file)
@@ -27,22 +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 override { return this; }
 
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const override;
        ///
        MathClass math_class_;
+       ///
+       Limits limits_ = AUTO_LIMITS;
 };