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