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(ostream & os, bool /* fragile */) const
25 void MathNotInset::writeNormal(ostream & os) const
31 void MathNotInset::metrics(MathStyles st) const
34 if (math_font_available(LM_TC_CMSY))
35 mathed_char_dim(LM_TC_CMSY, size_, 54,
36 ascent_, descent_, width_);
38 mathed_char_dim(LM_TC_VAR, size_, '/',
39 ascent_, descent_, width_);
44 void MathNotInset::draw(Painter & pain, int x, int y) const
49 if (math_font_available(LM_TC_CMSY))
50 drawChar(pain, LM_TC_CMSY, size_, x, y, 54);
52 drawChar(pain, LM_TC_VAR, size_, x, y, '/');