5 #include "math_kerninset.h"
6 #include "math_mathmlstream.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::metrics(MathMetricsInfo const &) const
39 #warning fix this once the interface to LyXLength has improved
41 // this uses the numerical valu in pixels, even if the unit is cm or ex!
42 width_ = static_cast<int>(wid_.value());
43 //cerr << "handling kern of width " << wid_.value() << "\n";
47 void MathKernInset::write(MathWriteInfo & os) const
49 os << "\\kern" << wid_.asLatexString().c_str() << " ";
53 void MathKernInset::writeNormal(NormalStream & os) const
55 os << "[kern " << wid_.asLatexString().c_str() << "]";