2 #ifndef MATH_MACROTEMPLATE_H
3 #define MATH_MACROTEMPLATE_H
5 #include "math_nestinset.h"
14 /** This class contains the macro definition
15 \author Alejandro Aguilar Sierra
17 //class MathMacroTemplate : public MathInset, boost::noncopyable
19 class MathMacroTemplate : public MathNestInset {
24 MathMacroTemplate(string const & name, int nargs,
25 MathArray const & = MathArray(), MathArray const & = MathArray());
27 explicit MathMacroTemplate(std::istream & is);
29 MathInset * clone() const;
31 void write(WriteStream & os) const;
32 /// Number of arguments
39 void draw(MathPainterInfo &, int x, int y) const;
41 void metrics(MathMetricsInfo & st) const;
42 /// identifies macro templates
43 MathMacroTemplate * asMacroTemplate() { return this; }