5 #include "math_kerninset.h"
7 #include "support/LOstream.h"
10 MathKernInset::MathKernInset()
14 MathKernInset::MathKernInset(LyXLength const & w)
19 MathKernInset::MathKernInset(string const & s)
24 MathInset * MathKernInset::clone() const
26 return new MathKernInset(*this);
30 void MathKernInset::draw(Painter &, int, int) const
34 void MathKernInset::write(std::ostream & os, bool) const
36 os << "\\kern" << wid_.asLatexString() << " ";
40 void MathKernInset::writeNormal(std::ostream & os) const
42 os << "[kern " << wid_.asLatexString() << "]";
46 void MathKernInset::metrics(MathStyles) const
51 #warning fix this once the interface to LyXLength has improved
53 width_ = static_cast<int>(wid_.value());