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 Dimension MathKernInset::metrics(MetricsInfo & mi) const
34 dim.wid = wid_.inPixels(0, mathed_char_width(mi.base.font, 'M'));
41 void MathKernInset::draw(PainterInfo &, int, int) const
45 void MathKernInset::write(WriteStream & os) const
47 os << "\\kern" << wid_.asLatexString() << ' ';
51 void MathKernInset::normalize(NormalStream & os) const
53 os << "[kern " << wid_.asLatexString() << ']';