]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathLim.C
cursor is no more damaging the background. L-shaped cursor is broken right now....
[lyx.git] / src / mathed / InsetMathLim.C
1 /**
2  * \file InsetMathLim.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 "InsetMathLim.h"
14 #include "MathData.h"
15 #include "MathStream.h"
16 #include "debug.h"
17
18
19 namespace lyx {
20
21 using std::auto_ptr;
22 using std::endl;
23
24
25 InsetMathLim::InsetMathLim
26         (MathArray const & f, MathArray const & x, MathArray const & x0)
27         : InsetMathNest(3)
28 {
29         cell(0) = f;
30         cell(1) = x;
31         cell(2) = x0;
32 }
33
34
35 auto_ptr<InsetBase> InsetMathLim::doClone() const
36 {
37         return auto_ptr<InsetBase>(new InsetMathLim(*this));
38 }
39
40
41 void InsetMathLim::normalize(NormalStream & os) const
42 {
43         os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
44 }
45
46
47 void InsetMathLim::metrics(MetricsInfo &, Dimension &) const
48 {
49         lyxerr << "should not happen" << endl;
50 }
51
52
53 void InsetMathLim::draw(PainterInfo &, int, int) const
54 {
55         lyxerr << "should not happen" << endl;
56 }
57
58
59 void InsetMathLim::maple(MapleStream & os) const
60 {
61         os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
62 }
63
64
65 void InsetMathLim::maxima(MaximaStream & os) const
66 {
67         os << "limit(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
68 }
69
70
71 void InsetMathLim::mathematica(MathematicaStream & os) const
72 {
73         os << "Limit[" << cell(0) << ',' << cell(1) << "-> " << cell(2) << ']';
74 }
75
76
77 void InsetMathLim::mathmlize(MathStream & os) const
78 {
79         os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
80 }
81
82
83 void InsetMathLim::write(WriteStream &) const
84 {
85         lyxerr << "should not happen" << endl;
86 }
87
88
89 } // namespace lyx