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"
15 MathKernInset::MathKernInset()
19 MathKernInset::MathKernInset(LyXLength const & w)
24 MathKernInset::MathKernInset(string const & s)
29 MathInset * MathKernInset::clone() const
31 return new MathKernInset(*this);
35 void MathKernInset::metrics(MathMetricsInfo & /*mi*/) const
38 #warning fix this once the interface to LyXLength has improved
40 // this uses the numerical valu in pixels, even if the unit is cm or ex!
41 width_ = static_cast<int>(wid_.value());
42 width_ = (width_*static_cast<int>(lyxrc.zoom))/150;
45 //cerr << "handling kern of width " << wid_.value() << "\n";
49 void MathKernInset::draw(MathPainterInfo &, int, int) const
53 void MathKernInset::write(WriteStream & os) const
55 os << "\\kern" << wid_.asLatexString() << " ";
59 void MathKernInset::normalize(NormalStream & os) const
61 os << "[kern " << wid_.asLatexString() << "]";