]> git.lyx.org Git - lyx.git/blob - src/mathed/math_liminset.C
Standardise the header blurb in mathed.
[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_support.h"
15 #include "math_mathmlstream.h"
16 #include "math_symbolinset.h"
17 #include "debug.h"
18
19 using std::auto_ptr;
20 using std::endl;
21
22
23 MathLimInset::MathLimInset
24         (MathArray const & f, MathArray const & x, MathArray const & x0)
25         : MathNestInset(3)
26 {
27         cell(0) = f;
28         cell(1) = x;
29         cell(2) = x0;
30 }
31
32
33 auto_ptr<InsetBase> MathLimInset::clone() const
34 {
35         return auto_ptr<InsetBase>(new MathLimInset(*this));
36 }
37
38
39 void MathLimInset::normalize(NormalStream & os) const
40 {
41         os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
42 }
43
44
45 void MathLimInset::metrics(MetricsInfo &, Dimension &) const
46 {
47         lyxerr << "should not happen" << endl;
48 }
49
50
51 void MathLimInset::draw(PainterInfo &, int, int) const
52 {
53         lyxerr << "should not happen" << endl;
54 }
55
56
57 void MathLimInset::maple(MapleStream & os) const
58 {
59         os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
60 }
61
62
63 void MathLimInset::mathematica(MathematicaStream & os) const
64 {
65         os << "Lim[" << cell(0) << ',' << cell(1) << ',' << cell(2) << ']';
66 }
67
68
69 void MathLimInset::mathmlize(MathMLStream & os) const
70 {
71         os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
72 }
73
74
75 void MathLimInset::write(WriteStream &) const
76 {
77         lyxerr << "should not happen" << endl;
78 }