Move InsetMacro::limits_ to InsetMacro::Private, where it should have
been from the start. This means that limits_ is now copied when the
macro is cloned.
expanded_(buf), definition_(buf), attachedArgsNum_(0),
optionals_(0), nextFoldMode_(true), macroBackup_(buf),
macro_(0), needsUpdate_(false), isUpdating_(false),
expanded_(buf), definition_(buf), attachedArgsNum_(0),
optionals_(0), nextFoldMode_(true), macroBackup_(buf),
macro_(0), needsUpdate_(false), isUpdating_(false),
- appetite_(9), nesting_(0)
+ appetite_(9), nesting_(0), limits_(AUTO_LIMITS)
{
}
/// Update the pointers to our owner of all expanded macros.
{
}
/// Update the pointers to our owner of all expanded macros.
size_t appetite_;
/// Level of nesting in macros (including this one)
int nesting_;
size_t appetite_;
/// Level of nesting in macros (including this one)
int nesting_;
/// Whether the inset allows \(no)limits
bool InsetMathMacro::allowsLimitsChange() const
{
/// Whether the inset allows \(no)limits
bool InsetMathMacro::allowsLimitsChange() const
{
+Limits InsetMathMacro::limits() const
+{
+ return d->limits_;
+}
+
+
+void InsetMathMacro::limits(Limits lim)
+{
+ d->limits_ = lim;
+}
+
+
void InsetMathMacro::beforeMetrics() const
{
d->macro_->lock();
void InsetMathMacro::beforeMetrics() const
{
d->macro_->lock();
/// The default limits value
Limits defaultLimits() const;
/// whether the inset has limit-like sub/superscript
/// 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
/// sets types of sub/superscripts
- void limits(Limits lim) { limits_ = lim; }
+ void limits(Limits lim);
///
void beforeMetrics() const;
///
void beforeMetrics() const;
///
bool editMode(BufferView const * bv) const;
///
bool editMode(BufferView const * bv) const;
- ///
- Limits limits_ = AUTO_LIMITS;
-