2 * \file InsetMathLim.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "InsetMathLim.h"
15 #include "MathStream.h"
17 #include "support/debug.h"
22 InsetMathLim::InsetMathLim(Buffer
* buf
, MathData
const & f
, MathData
const & x
,
24 : InsetMathNest(buf
, 3)
32 Inset
* InsetMathLim::clone() const
34 return new InsetMathLim(*this);
38 void InsetMathLim::normalize(NormalStream
& os
) const
40 os
<< "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
44 void InsetMathLim::metrics(MetricsInfo
&, Dimension
&) const
46 LYXERR0("should not happen");
50 void InsetMathLim::draw(PainterInfo
&, int, int) const
52 LYXERR0("should not happen");
56 void InsetMathLim::maple(MapleStream
& os
) const
58 os
<< "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
62 void InsetMathLim::maxima(MaximaStream
& os
) const
64 os
<< "limit(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
68 void InsetMathLim::mathematica(MathematicaStream
& os
) const
70 os
<< "Limit[" << cell(0) << ',' << cell(1) << "-> " << cell(2) << ']';
74 void InsetMathLim::mathmlize(MathStream
& os
) const
76 os
<< "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
80 void InsetMathLim::write(WriteStream
&) const
82 LYXERR0("should not happen");