]> git.lyx.org Git - lyx.git/blob - src/mathed/math_liminset.C
252c99a32b6ef4f1c90e979a50283b0747b66d0e
[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 void MathLimInset::metrics(MathMetricsInfo &) const
32 {
33         lyxerr << "should not happen\n";
34 }
35
36
37 void MathLimInset::draw(MathPainterInfo &, int, int) const
38 {
39         lyxerr << "should not happen\n";
40 }
41
42
43 void MathLimInset::maplize(MapleStream & os) const
44 {
45         os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
46 }
47
48
49 void MathLimInset::mathematicize(MathematicaStream & os) const
50 {
51         os << "Lim[" << cell(0) << ',' << cell(1) << ',' << cell(2) << ']';
52 }
53
54
55 void MathLimInset::mathmlize(MathMLStream & os) const
56 {
57         os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
58 }
59
60
61 void MathLimInset::write(WriteStream &) const
62 {
63         lyxerr << "should not happen\n";
64 }