]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMacro.h
Assure correct spacing of colored items in mathed
[lyx.git] / src / mathed / InsetMathMacro.h
index 7880aa01aac570a6c621503668aa0d5c11de19e5..9a4bcc929fdf7158dfe13badb9c512220ffe5f7f 100644 (file)
@@ -41,6 +41,16 @@ public:
        /// If the macro is in normal edit mode, dissolve its contents in
        /// the row. Otherwise, just insert the inset.
        bool addToMathRow(MathRow &, MetricsInfo & mi) const;
+
+       /// Whether the inset allows \(no)limits
+       bool allowsLimitsChange() const;
+       /// The default limits value
+       Limits defaultLimits() const;
+       /// whether the inset has limit-like sub/superscript
+       Limits limits() const { return limits_; }
+       /// sets types of sub/superscripts
+       void limits(Limits lim) { limits_ = lim; }
+
        ///
        void beforeMetrics() const;
        ///
@@ -149,6 +159,8 @@ public:
        /// This is not used for display; however whether it is mathrel determines
        /// how to split equations intelligently.
        MathClass mathClass() const; //override
+       /// Override so as to set Buffer for defnition_ member, too.
+       void setBuffer(Buffer &);
 
 protected:
        friend class MathData;
@@ -182,6 +194,9 @@ private:
        ///
        bool editMode(BufferView const * bv) const;
 
+       ///
+       Limits limits_ = AUTO_LIMITS;
+
        ///
        class Private;
        ///