7 #include "math_kerninset.h"
8 #include "math_extern.h"
9 #include "math_mathmlstream.h"
10 #include "math_streamstr.h"
11 #include "math_support.h"
14 MathKernInset::MathKernInset()
18 MathKernInset::MathKernInset(LyXLength const & w)
23 MathKernInset::MathKernInset(string const & s)
28 MathInset * MathKernInset::clone() const
30 return new MathKernInset(*this);
34 void MathKernInset::metrics(MathMetricsInfo & mi) const
36 dim_.w = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
42 void MathKernInset::draw(MathPainterInfo &, int, int) const
46 void MathKernInset::write(WriteStream & os) const
48 os << "\\kern" << wid_.asLatexString() << ' ';
52 void MathKernInset::normalize(NormalStream & os) const
54 os << "[kern " << wid_.asLatexString() << ']';