]> 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 390d77aca04f39c1163eddae2041e13e50838902..89189f2b0ddf88814a070be94e9abd1712241ed5 100644 (file)
@@ -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;
 };