X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathKern.h;h=8a1e3ee04770031e936c2d73925b3b595bbe9244;hb=e54ae72e5fac6f750c3f7972c74bb42b57f3a049;hp=192b01e6a251effc0fad73539d675e02f6f65cb9;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/mathed/InsetMathKern.h b/src/mathed/InsetMathKern.h index 192b01e6a2..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(std::string 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_; };