1 #include "math_notinset.h"
2 #include "math_parser.h"
3 #include "math_mathmlstream.h"
4 #include "math_support.h"
7 MathNotInset::MathNotInset()
11 MathInset * MathNotInset::clone() const
13 return new MathNotInset(*this);
17 void MathNotInset::write(WriteStream & os) const
23 void MathNotInset::normalize(NormalStream & os) const
29 void MathNotInset::metrics(MathMetricsInfo const & mi) const
31 if (math_font_available(LM_TC_CMSY)) {
32 whichFont(font_, LM_TC_CMSY, mi);
33 mathed_char_dim(font_, 54, ascent_, descent_, width_);
36 whichFont(font_, LM_TC_VAR, mi);
37 mathed_char_dim(font_, '/', ascent_, descent_, width_);
43 void MathNotInset::draw(Painter & pain, int x, int y) const
45 if (math_font_available(LM_TC_CMSY))
46 drawChar(pain, font_, x, y, 54);
48 drawChar(pain, font_, x, y, '/');