X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_sizeinset.h;h=9870777e3d495440f33247f42f1b2e3b79dba855;hb=e093e5e80c334995a77445c8e66a9f3c9594dda1;hp=15f2b1d031fca6c4a39dc64c4f8123249e7f74f6;hpb=cbf29c8fdcce744d30fa050666d5a47e6c19840c;p=lyx.git diff --git a/src/mathed/math_sizeinset.h b/src/mathed/math_sizeinset.h index 15f2b1d031..9870777e3d 100644 --- a/src/mathed/math_sizeinset.h +++ b/src/mathed/math_sizeinset.h @@ -3,36 +3,38 @@ #define MATHSIZEINSET_H #include "math_nestinset.h" -#include "math_defs.h" #ifdef __GNUG__ #pragma interface #endif /** An inset for \scriptsize etc - \author André Poenitz + \author André Pönitz */ +class latexkeys; + class MathSizeInset : public MathNestInset { public: /// - explicit MathSizeInset(MathStyles st); + explicit MathSizeInset(latexkeys const * l); /// MathInset * clone() const; /// - void metrics(MathStyles st) const; + void metrics(MathMetricsInfo & st) const; + /// + void draw(MathPainterInfo &, int x, int y) const; /// - void draw(Painter &, int x, int y) const; + bool needsBraces() const { return false; } + /// - void write(std::ostream &, bool fragile) const; + void write(WriteStream & os) const; /// - void writeNormal(std::ostream &) const; + void normalize(NormalStream &) const; private: /// - char const * name() const; - /// - MathStyles style_; + latexkeys const * key_; }; #endif