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"
25 InsetMathLim::InsetMathLim
26 (MathArray const & f, MathArray const & x, MathArray const & x0)
35 auto_ptr<InsetBase> InsetMathLim::doClone() const
37 return auto_ptr<InsetBase>(new InsetMathLim(*this));
41 void InsetMathLim::normalize(NormalStream & os) const
43 os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
47 void InsetMathLim::metrics(MetricsInfo &, Dimension &) const
49 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;