]> git.lyx.org Git - lyx.git/blob - src/mathed/math_notinset.C
fix the <...> delimiters
[lyx.git] / src / mathed / math_notinset.C
1 #include "math_notinset.h"
2 #include "math_parser.h"
3 #include "math_mathmlstream.h"
4 #include "math_support.h"
5
6
7 MathNotInset::MathNotInset()
8 {}
9
10
11 MathInset * MathNotInset::clone() const
12 {
13         return new MathNotInset(*this);
14 }
15
16
17 void MathNotInset::write(WriteStream & os) const
18 {
19         os << "\\not ";
20 }
21
22
23 void MathNotInset::normalize(NormalStream & os) const
24 {
25         os << "[not] ";
26 }
27
28
29 void MathNotInset::metrics(MathMetricsInfo & mi) const
30 {
31         font_ = mi.base.font;
32 //      if (math_font_available("cmsy")) {
33 //              augmentFont(font_, "cmsy");
34 //              char_ = 54;
35 //      } else {
36                 augmentFont(font_, "mathnormal");
37                 char_ = '/';
38 //      }
39         mathed_char_dim(font_, char_, ascent_, descent_, width_);
40         width_ = 0;
41 }
42
43
44 void MathNotInset::draw(MathPainterInfo & pain, int x, int y) const
45 {
46         drawChar(pain, font_, x, y, char_);
47 }