X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_kerninset.h;h=48d50638b817ea07a3ef28e8f410b66bb4313c50;hb=701b99ecd70ac472aa53c8b2317af44def4f9670;hp=0437c393d0f511cd9c12bb0e8a368212cd591331;hpb=0705dae8a3a2bcdd6be55eb468547c1389e84d2c;p=lyx.git diff --git a/src/mathed/math_kerninset.h b/src/mathed/math_kerninset.h index 0437c393d0..48d50638b8 100644 --- a/src/mathed/math_kerninset.h +++ b/src/mathed/math_kerninset.h @@ -13,8 +13,7 @@ #define MATH_CHEATINSET_H #include "math_inset.h" -#include "vspace.h" -#include "support/std_string.h" +#include "lyxlength.h" /// The \kern primitive @@ -27,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; /// @@ -39,6 +36,7 @@ public: /// void normalize(NormalStream & ns) const; private: + virtual std::auto_ptr doClone() const; /// width in em LyXLength wid_; };