X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_sizeinset.h;h=9870777e3d495440f33247f42f1b2e3b79dba855;hb=e093e5e80c334995a77445c8e66a9f3c9594dda1;hp=26a78b3ff2d8d104f68d2f78bb67129216c2de88;hpb=fda98080ccb5d208bd961fb9f73af578622f7d42;p=lyx.git diff --git a/src/mathed/math_sizeinset.h b/src/mathed/math_sizeinset.h index 26a78b3ff2..9870777e3d 100644 --- a/src/mathed/math_sizeinset.h +++ b/src/mathed/math_sizeinset.h @@ -2,37 +2,39 @@ #ifndef MATHSIZEINSET_H #define MATHSIZEINSET_H -#include "math_inset.h" -#include "math_defs.h" +#include "math_nestinset.h" #ifdef __GNUG__ #pragma interface #endif /** An inset for \scriptsize etc - \author André Poenitz + \author André Pönitz */ -class MathSizeInset : public MathInset { +class latexkeys; + +class MathSizeInset : public MathNestInset { public: /// - explicit MathSizeInset(MathStyles st); + explicit MathSizeInset(latexkeys const * l); + /// + MathInset * clone() const; /// - virtual MathInset * clone() const; + void metrics(MathMetricsInfo & st) const; /// - void metrics(MathStyles st); + void draw(MathPainterInfo &, int x, int y) const; /// - void draw(Painter &, int x, int baseline); + 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 * verbose() const; - /// - MathStyles style_; + latexkeys const * key_; }; #endif