X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathKern.h;h=8a1e3ee04770031e936c2d73925b3b595bbe9244;hb=d0d7d0103aed0b300807be54224ba7cd324c1ff5;hp=0e559afe92cf6909e1a441100d2db7dc349e41ab;hpb=e89625ef28143545a511cdabc67dee8b7be1b216;p=lyx.git diff --git a/src/mathed/InsetMathKern.h b/src/mathed/InsetMathKern.h index 0e559afe92..8a1e3ee047 100644 --- a/src/mathed/InsetMathKern.h +++ b/src/mathed/InsetMathKern.h @@ -13,7 +13,10 @@ #define MATH_CHEATINSET_H #include "InsetMath.h" -#include "lyxlength.h" +#include "Length.h" + + +namespace lyx { /// The \kern primitive @@ -24,25 +27,23 @@ 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_; }; + + +} // namespace lyx #endif