X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_symbolinset.h;h=29fcafb4eab681390b53be7a48de4500ec7bad91;hb=701b99ecd70ac472aa53c8b2317af44def4f9670;hp=f8f2fb276b487dbad784925a3cb06e3fd77ae0d7;hpb=fa494db882878098537333bb2aad9063ddb046d4;p=lyx.git diff --git a/src/mathed/math_symbolinset.h b/src/mathed/math_symbolinset.h index f8f2fb276b..29fcafb4ea 100644 --- a/src/mathed/math_symbolinset.h +++ b/src/mathed/math_symbolinset.h @@ -29,11 +29,12 @@ public: /// explicit MathSymbolInset(std::string const & name); /// - virtual std::auto_ptr clone() const; - /// void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo &, int x, int y) const; + /// + int width() const { return width_; } + /// bool isRelOp() const; /// do we take scripts? @@ -65,10 +66,13 @@ public: void infoize2(std::ostream & os) const; private: + virtual std::auto_ptr doClone() const; /// latexkeys const * sym_; /// mutable int h_; + /// cached width + mutable int width_; /// mutable bool scriptable_; };