]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macrotemplate.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_macrotemplate.h
index d0b10c075e34e7cbed8cbd7605341ac9ab67a2fc..ef439add4f52185643899169d9120275b177d31e 100644 (file)
@@ -20,12 +20,12 @@ public:
        ///
        MathMacroTemplate();
        ///
-       MathMacroTemplate(string const & name, int nargs,
+       MathMacroTemplate(string const & name, int nargs, string const & type,
                MathArray const & = MathArray(), MathArray const & = MathArray());
        ///
        explicit MathMacroTemplate(std::istream & is);
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
        void write(WriteStream & os) const;
        /// Number of arguments
@@ -37,7 +37,7 @@ public:
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
-       Dimension metrics(MetricsInfo & mi) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        /// identifies macro templates
        MathMacroTemplate * asMacroTemplate() { return this; }
        /// identifies macro templates
@@ -47,6 +47,8 @@ private:
        int numargs_;
        ///
        string name_;
+       /// newcommand or renewcommand or def
+       string type_;
 };
 
 #endif