X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_macrotemplate.h;h=a8f09a04ad75af19df95e803d703f623dad6361c;hb=d359dd8fca52c4f0100f7cf4bf636113c5c4e49f;hp=a8c028cac5807f5e0c1bd78ccd539ea529cc3aec;hpb=cbf29c8fdcce744d30fa050666d5a47e6c19840c;p=lyx.git diff --git a/src/mathed/math_macrotemplate.h b/src/mathed/math_macrotemplate.h index a8c028cac5..a8f09a04ad 100644 --- a/src/mathed/math_macrotemplate.h +++ b/src/mathed/math_macrotemplate.h @@ -3,6 +3,7 @@ #define MATH_MACROTEMPLATE_H #include "math_nestinset.h" +#include "LString.h" #ifdef __GNUG__ #pragma interface @@ -13,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: @@ -24,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; /// @@ -32,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_;