]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMacro.h
More requires --> required, for C++2a.
[lyx.git] / src / mathed / InsetMathMacro.h
index 4267a2b1e02b2d9a0bb4ba8b2d495cb8356d5606..80340df6f761f26db52c7b9b77796676e5635d09 100644 (file)
@@ -84,7 +84,7 @@ public:
        ///
        mode_type currentMode() const;
 
-       ///
+       /// Assumes that macros are up-to-date
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream & os) const;
@@ -149,6 +149,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;
@@ -172,9 +174,6 @@ protected:
        void attachArguments(std::vector<MathData> const & args, size_t arity, int optionals);
 
 private:
-       /// Math mode for output and display. UNDECIDED for user macros: they could
-       /// be either.
-       mode_type modeToEnsure() const;
        /// This function is needed for now because of two shortfalls of the current
        /// implementation: the macro() pointer is often dangling, in which case we
        /// fall back to a backup copy, and the macro is not known at inset