5 #include "math_specialcharinset.h"
6 #include "math_mathmlstream.h"
7 #include "math_support.h"
10 MathSpecialCharInset::MathSpecialCharInset(char c)
15 MathInset * MathSpecialCharInset::clone() const
17 return new MathSpecialCharInset(*this);
21 int MathSpecialCharInset::ascent() const
23 return mathed_char_ascent(LM_TC_CONST, mi_, char_);
27 int MathSpecialCharInset::descent() const
29 return mathed_char_descent(LM_TC_CONST, mi_, char_);
33 int MathSpecialCharInset::width() const
35 return mathed_char_width(LM_TC_CONST, mi_, char_);
39 void MathSpecialCharInset::metrics(MathMetricsInfo const & mi) const
45 void MathSpecialCharInset::draw(Painter & pain, int x, int y) const
47 drawChar(pain, LM_TC_CONST, mi_, x, y, char_);
51 void MathSpecialCharInset::write(WriteStream & os) const
57 void MathSpecialCharInset::normalize(NormalStream & os) const