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"
24 InsetMathLim::InsetMathLim
25 (MathData const & f, MathData const & x, MathData const & x0)
34 Inset * InsetMathLim::clone() const
36 return new InsetMathLim(*this);
40 void InsetMathLim::normalize(NormalStream & os) const
42 os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
46 void InsetMathLim::metrics(MetricsInfo &, Dimension &) const
48 lyxerr << "should not happen" << endl;
52 void InsetMathLim::draw(PainterInfo &, int, int) const
54 lyxerr << "should not happen" << endl;
58 void InsetMathLim::maple(MapleStream & os) const
60 os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
64 void InsetMathLim::maxima(MaximaStream & os) const
66 os << "limit(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
70 void InsetMathLim::mathematica(MathematicaStream & os) const
72 os << "Limit[" << cell(0) << ',' << cell(1) << "-> " << cell(2) << ']';
76 void InsetMathLim::mathmlize(MathStream & os) const
78 os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
82 void InsetMathLim::write(WriteStream &) const
84 lyxerr << "should not happen" << endl;