void updateMacros(Cursor * cur, MacroContext const & mc, UpdateType);
///
void updateBuffer(ParIterator const &, UpdateType);
+ ///
+ void setBuffer(Buffer & b) { buffer_ = &b; }
protected:
/// cached values for super/subscript placement
}
+void MathMacro::setBuffer(Buffer & buffer)
+{
+ d->definition_.setBuffer(buffer);
+ InsetMathNest::setBuffer(buffer);
+}
+
} // namespace lyx
size_t appetite() const;
///
InsetCode lyxCode() const { return MATH_MACRO_CODE; }
+ /// Override so as to set Buffer for defnition_ member, too.
+ void setBuffer(Buffer &);
protected:
friend class MathData;