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);
26 MathInset * clone() const;
28 void write(std::ostream &, bool fragile) const;
29 /// Number of arguments
34 string const & name() const;
36 void draw(Painter &, int x, int y) const;
38 void metrics(MathStyles st) const;
39 /// identifies macro templates
40 MathMacroTemplate * asMacroTemplate() { return this; }