]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathMacro.h
Improved character count statistics for letter based insets (e.g. the LyX logo).
[features.git] / src / mathed / InsetMathMacro.h
index 80340df6f761f26db52c7b9b77796676e5635d09..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;
        ///
@@ -184,6 +194,9 @@ private:
        ///
        bool editMode(BufferView const * bv) const;
 
+       ///
+       Limits limits_ = AUTO_LIMITS;
+
        ///
        class Private;
        ///