]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macrotemplate.h
remove unneeded member
[lyx.git] / src / mathed / math_macrotemplate.h
index 628a9bee68bfeb7bf5e879280262625d9703b837..a8f09a04ad75af19df95e803d703f623dad6361c 100644 (file)
@@ -14,7 +14,7 @@ class MathMacro;
 /** This class contains the macro definition
     \author Alejandro Aguilar Sierra
  */
-//class MathMacroTemplate : public MathInset, boost::noncopyable 
+//class MathMacroTemplate : public MathInset, boost::noncopyable
 
 class MathMacroTemplate : public MathNestInset {
 public:
@@ -25,7 +25,7 @@ public:
        ///
        MathInset * clone() const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void write(WriteStream & os) const;
        /// Number of arguments
        int numargs() const;
        ///
@@ -33,9 +33,11 @@ public:
        ///
        string const & name() const;
        ///
-       void draw(Painter &, int x, int y) const;
+       void draw(MathPainterInfo &, int x, int y) const;
        ///
-       void metrics(MathStyles st) const;
+       void metrics(MathMetricsInfo & st) const;
+       /// identifies macro templates
+       MathMacroTemplate * asMacroTemplate() { return this; }
 private:
        ///
        int numargs_;