X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_kerninset.h;h=48d50638b817ea07a3ef28e8f410b66bb4313c50;hb=701b99ecd70ac472aa53c8b2317af44def4f9670;hp=e5358ecf3567a7298380986889cbfbb20e248e5f;hpb=1f9e9cf5173fa1fbafdff5f21080e5194b05818b;p=lyx.git diff --git a/src/mathed/math_kerninset.h b/src/mathed/math_kerninset.h index e5358ecf35..48d50638b8 100644 --- a/src/mathed/math_kerninset.h +++ b/src/mathed/math_kerninset.h @@ -13,9 +13,7 @@ #define MATH_CHEATINSET_H #include "math_inset.h" -#include "vspace.h" -#include "LString.h" -#include "math_nestinset.h" +#include "lyxlength.h" /// The \kern primitive @@ -28,9 +26,7 @@ public: /// explicit MathKernInset(LyXLength const & wid); /// - explicit MathKernInset(string const & wid); - /// - virtual std::auto_ptr clone() const; + explicit MathKernInset(std::string const & wid); /// void metrics(MetricsInfo & mi, Dimension & dim) const; /// @@ -40,6 +36,7 @@ public: /// void normalize(NormalStream & ns) const; private: + virtual std::auto_ptr doClone() const; /// width in em LyXLength wid_; };