#ifndef MATH_MACROTEMPLATE_H
#define MATH_MACROTEMPLATE_H
-#include <set>
-
-#include "math_inset.h"
+#include "math_nestinset.h"
+#include "LString.h"
#ifdef __GNUG__
#pragma interface
*/
//class MathMacroTemplate : public MathInset, boost::noncopyable
-class MathMacroTemplate : public MathInset {
+class MathMacroTemplate : public MathNestInset {
public:
///
MathMacroTemplate();
///
MathInset * clone() const;
///
- void Write(std::ostream &, bool fragile) const;
+ void write(WriteStream & os) const;
/// Number of arguments
int numargs() const;
///
void numargs(int);
///
- void draw(Painter &, int, int);
+ string const & name() const;
+ ///
+ void draw(Painter &, int x, int y) const;
///
- void Metrics(MathStyles st);
+ void metrics(MathMetricsInfo const & st) const;
+ /// identifies macro templates
+ MathMacroTemplate * asMacroTemplate() { return this; }
private:
///
int numargs_;
///
- std::set<MathMacro *> users_;
-
- /// unimplemented
- void operator=(MathMacroTemplate const &);
- /// unimplemented
- //MathMacroTemplate(MathMacroTemplate const &);
+ string name_;
};
#endif