]> git.lyx.org Git - lyx.git/blob - src/mathed/math_liminset.C
Prepare mathed for unified two-stage drawing
[lyx.git] / src / mathed / math_liminset.C
1
2 #include "math_liminset.h"
3 #include "math_support.h"
4 #include "math_mathmlstream.h"
5 #include "math_symbolinset.h"
6 #include "debug.h"
7
8
9 MathLimInset::MathLimInset
10         (MathArray const & f, MathArray const & x, MathArray const & x0)
11         : MathNestInset(3)
12 {
13         cell(0) = f;
14         cell(1) = x;
15         cell(2) = x0;
16 }
17
18
19 MathInset * MathLimInset::clone() const
20 {
21         return new MathLimInset(*this);
22 }
23
24
25 void MathLimInset::normalize(NormalStream & os) const
26 {
27         os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
28 }
29
30
31 Dimension MathLimInset::metrics(MetricsInfo &) const
32 {
33         lyxerr << "should not happen\n";
34         return Dimension();
35 }
36
37
38 void MathLimInset::draw(PainterInfo &, int, int) const
39 {
40         lyxerr << "should not happen\n";
41 }
42
43
44 void MathLimInset::maple(MapleStream & os) const
45 {
46         os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
47 }
48
49
50 void MathLimInset::mathematica(MathematicaStream & os) const
51 {
52         os << "Lim[" << cell(0) << ',' << cell(1) << ',' << cell(2) << ']';
53 }
54
55
56 void MathLimInset::mathmlize(MathMLStream & os) const
57 {
58         os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
59 }
60
61
62 void MathLimInset::write(WriteStream &) const
63 {
64         lyxerr << "should not happen\n";
65 }