X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_sizeinset.h;h=9870777e3d495440f33247f42f1b2e3b79dba855;hb=e093e5e80c334995a77445c8e66a9f3c9594dda1;hp=c610da08bab5b6bde79c18977e1b97d8ddea3650;hpb=d1182f17daa1a164d9527ccbe6500840d7ac6bc8;p=lyx.git diff --git a/src/mathed/math_sizeinset.h b/src/mathed/math_sizeinset.h index c610da08ba..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; /// - 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