]> git.lyx.org Git - lyx.git/blob - src/mathed/math_ertinset.C
remove noload/don't typeset
[lyx.git] / src / mathed / math_ertinset.C
1 #include <config.h>
2
3 #include "math_ertinset.h"
4 #include "math_mathmlstream.h"
5
6 #include "support/LOstream.h"
7
8 MathInset * MathErtInset::clone() const
9 {
10         return new MathErtInset(*this);
11 }
12
13
14 void MathErtInset::metrics(MathMetricsInfo & mi) const
15 {
16         MathFontSetChanger dummy(mi.base, "lyxert");
17         MathTextInset::metrics(mi);
18         cache_.colinfo_[0].align_ = 'l';
19         metricsMarkers2();
20 }
21
22
23 void MathErtInset::draw(MathPainterInfo & pi, int x, int y) const
24 {
25         MathFontSetChanger dummy(pi.base, "lyxert");
26         MathTextInset::draw(pi, x + 1, y);
27         drawMarkers2(pi, x, y);
28 }
29
30
31 void MathErtInset::write(WriteStream & os) const
32 {
33         if (os.latex())
34                 os << cell(0);
35         else
36                 os << "\\lyxert{" << cell(0) << '}';
37 }
38
39
40 void MathErtInset::infoize(std::ostream & os) const
41 {
42         os << "Box: Ert";
43 }
44