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"
13 MathKernInset::MathKernInset()
17 MathKernInset::MathKernInset(LyXLength const & w)
22 MathKernInset::MathKernInset(string const & s)
27 auto_ptr<InsetBase> MathKernInset::clone() const
29 return auto_ptr<InsetBase>(new MathKernInset(*this));
33 void MathKernInset::metrics(MetricsInfo & mi, Dimension & dim) const
35 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() << ']';