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