]> git.lyx.org Git - lyx.git/blob - src/mathed/math_liminset.C
Strip out redundant #includes
[lyx.git] / src / mathed / math_liminset.C
1 /**
2  * \file math_liminset.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "math_liminset.h"
14 #include "math_mathmlstream.h"
15 #include "debug.h"
16
17 using std::auto_ptr;
18 using std::endl;
19
20
21 MathLimInset::MathLimInset
22         (MathArray const & f, MathArray const & x, MathArray const & x0)
23         : MathNestInset(3)
24 {
25         cell(0) = f;
26         cell(1) = x;
27         cell(2) = x0;
28 }
29
30
31 auto_ptr<InsetBase> MathLimInset::clone() const
32 {
33         return auto_ptr<InsetBase>(new MathLimInset(*this));
34 }
35
36
37 void MathLimInset::normalize(NormalStream & os) const
38 {
39         os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
40 }
41
42
43 void MathLimInset::metrics(MetricsInfo &, Dimension &) const
44 {
45         lyxerr << "should not happen" << endl;
46 }
47
48
49 void MathLimInset::draw(PainterInfo &, int, int) const
50 {
51         lyxerr << "should not happen" << endl;
52 }
53
54
55 void MathLimInset::maple(MapleStream & os) const
56 {
57         os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
58 }
59
60
61 void MathLimInset::mathematica(MathematicaStream & os) const
62 {
63         os << "Lim[" << cell(0) << ',' << cell(1) << ',' << cell(2) << ']';
64 }
65
66
67 void MathLimInset::mathmlize(MathMLStream & os) const
68 {
69         os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
70 }
71
72
73 void MathLimInset::write(WriteStream &) const
74 {
75         lyxerr << "should not happen" << endl;
76 }