1 #include "math_notinset.h"
2 #include "math_parser.h"
4 #include "support/LOstream.h"
9 MathNotInset::MathNotInset()
13 MathInset * MathNotInset::clone() const
15 return new MathNotInset(*this);
19 void MathNotInset::write(MathWriteInfo & os) const
25 void MathNotInset::writeNormal(ostream & os) const
31 void MathNotInset::metrics(MathMetricsInfo const & mi) const
34 if (math_font_available(LM_TC_CMSY))
35 mathed_char_dim(LM_TC_CMSY, mi_, 54, ascent_, descent_, width_);
37 mathed_char_dim(LM_TC_VAR, mi_, '/', ascent_, descent_, width_);
42 void MathNotInset::draw(Painter & pain, int x, int y) const
47 if (math_font_available(LM_TC_CMSY))
48 drawChar(pain, LM_TC_CMSY, mi_, x, y, 54);
50 drawChar(pain, LM_TC_VAR, mi_, x, y, '/');