X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_macrotemplate.h;h=a8f09a04ad75af19df95e803d703f623dad6361c;hb=d359dd8fca52c4f0100f7cf4bf636113c5c4e49f;hp=628a9bee68bfeb7bf5e879280262625d9703b837;hpb=c9c3b9b447c3f99a059730e7e4a6caf95496221a;p=lyx.git diff --git a/src/mathed/math_macrotemplate.h b/src/mathed/math_macrotemplate.h index 628a9bee68..a8f09a04ad 100644 --- a/src/mathed/math_macrotemplate.h +++ b/src/mathed/math_macrotemplate.h @@ -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_;