X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_dotsinset.h;h=be37fb641bbd7bb3d31095262a4cc9e01fad3f55;hb=e093e5e80c334995a77445c8e66a9f3c9594dda1;hp=d6d973a820a43861e23ddf7d387bd97bd4349cb0;hpb=0024f42724dd9f5eb20d6d5a14276fad4e744963;p=lyx.git diff --git a/src/mathed/math_dotsinset.h b/src/mathed/math_dotsinset.h index d6d973a820..be37fb641b 100644 --- a/src/mathed/math_dotsinset.h +++ b/src/mathed/math_dotsinset.h @@ -2,32 +2,32 @@ #ifndef MATH_DOTSINSET_H #define MATH_DOTSINSET_H -#include "math_inset.h" -#include "math_defs.h" +#include "math_diminset.h" +#include "LString.h" #ifdef __GNUG__ #pragma interface #endif /// The different kinds of ellipsis -class MathDotsInset : public MathInset { +class MathDotsInset : public MathDimInset { public: /// - MathDotsInset(string const &, int); + explicit MathDotsInset(string const &); /// - MathInset * clone() const; + MathInset * clone() const; /// - void draw(Painter &, int, int); + void draw(MathPainterInfo &, int x, int y) const; /// - void Write(std::ostream &, bool fragile) const; + void write(WriteStream & os) const; /// - void WriteNormal(std::ostream &) const; + void normalize(NormalStream &) const; /// - void Metrics(MathStyles st, int asc = 0, int des = 0); + void metrics(MathMetricsInfo & st) const; protected: + /// cache for the thing's heigth + mutable int dh_; /// - int dh_; - /// - int code_; -}; + string const name_; +}; #endif