4 #include "math_kerninset.h"
5 #include "math_extern.h"
6 #include "math_mathmlstream.h"
7 #include "math_streamstr.h"
8 #include "math_support.h"
11 MathKernInset::MathKernInset()
15 MathKernInset::MathKernInset(LyXLength const & w)
20 MathKernInset::MathKernInset(string const & s)
25 MathInset * MathKernInset::clone() const
27 return new MathKernInset(*this);
31 void MathKernInset::metrics(MetricsInfo & mi) const
33 dim_.w = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
39 void MathKernInset::draw(PainterInfo &, int, int) const
43 void MathKernInset::write(WriteStream & os) const
45 os << "\\kern" << wid_.asLatexString() << ' ';
49 void MathKernInset::normalize(NormalStream & os) const
51 os << "[kern " << wid_.asLatexString() << ']';