X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathKern.h;h=8a1e3ee04770031e936c2d73925b3b595bbe9244;hb=fc6ce7cd08562fd7bab4427880b46390bb7d2f07;hp=63c20d0008ffdf73bc291d6a82fcfaf5f09cf4e8;hpb=de6418f37765fe452f135f96dee6d49897bff215;p=lyx.git diff --git a/src/mathed/InsetMathKern.h b/src/mathed/InsetMathKern.h index 63c20d0008..8a1e3ee047 100644 --- a/src/mathed/InsetMathKern.h +++ b/src/mathed/InsetMathKern.h @@ -13,7 +13,7 @@ #define MATH_CHEATINSET_H #include "InsetMath.h" -#include "lyxlength.h" +#include "Length.h" namespace lyx { @@ -27,26 +27,21 @@ public: /// InsetMathKern(); /// - explicit InsetMathKern(LyXLength const & wid); + explicit InsetMathKern(Length const & wid); /// explicit InsetMathKern(docstring const & wid); /// - void metrics(MetricsInfo & mi, Dimension & dim) const; + bool metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo & pi, int x, int y) const; /// void write(WriteStream & os) const; /// void normalize(NormalStream & ns) const; - /// - int width() const; private: - virtual std::auto_ptr doClone() const; + virtual std::auto_ptr doClone() const; /// width in em - LyXLength wid_; - /// in pixels - mutable int wid_pix_; - + Length wid_; };