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"
14 #include "MathArray.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 bool InsetMathLim::metrics(MetricsInfo &, Dimension &) const
49 lyxerr << "should not happen" << endl;
54 void InsetMathLim::draw(PainterInfo &, int, int) const
56 lyxerr << "should not happen" << endl;
60 void InsetMathLim::maple(MapleStream & os) const
62 os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
66 void InsetMathLim::maxima(MaximaStream & os) const
68 os << "limit(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
72 void InsetMathLim::mathematica(MathematicaStream & os) const
74 os << "Limit[" << cell(0) << ',' << cell(1) << "-> " << cell(2) << ']';
78 void InsetMathLim::mathmlize(MathStream & os) const
80 os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
84 void InsetMathLim::write(WriteStream &) const
86 lyxerr << "should not happen" << endl;