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 bool InsetMathLim::metrics(MetricsInfo &, Dimension &) const
48 lyxerr << "should not happen" << endl;
53 void InsetMathLim::draw(PainterInfo &, int, int) const
55 lyxerr << "should not happen" << endl;
59 void InsetMathLim::maple(MapleStream & os) const
61 os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
65 void InsetMathLim::maxima(MaximaStream & os) const
67 os << "limit(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
71 void InsetMathLim::mathematica(MathematicaStream & os) const
73 os << "Limit[" << cell(0) << ',' << cell(1) << "-> " << cell(2) << ']';
77 void InsetMathLim::mathmlize(MathStream & os) const
79 os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
83 void InsetMathLim::write(WriteStream &) const
85 lyxerr << "should not happen" << endl;