2 * \file math_liminset.C
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 "math_liminset.h"
14 #include "math_data.h"
15 #include "math_mathmlstream.h"
22 MathLimInset::MathLimInset
23 (MathArray const & f, MathArray const & x, MathArray const & x0)
32 auto_ptr<InsetBase> MathLimInset::doClone() const
34 return auto_ptr<InsetBase>(new MathLimInset(*this));
38 void MathLimInset::normalize(NormalStream & os) const
40 os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
44 void MathLimInset::metrics(MetricsInfo &, Dimension &) const
46 lyxerr << "should not happen" << endl;
50 void MathLimInset::draw(PainterInfo &, int, int) const
52 lyxerr << "should not happen" << endl;
56 void MathLimInset::maple(MapleStream & os) const
58 os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
62 void MathLimInset::mathematica(MathematicaStream & os) const
64 os << "Lim[" << cell(0) << ',' << cell(1) << ',' << cell(2) << ']';
68 void MathLimInset::mathmlize(MathMLStream & os) const
70 os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
74 void MathLimInset::write(WriteStream &) const
76 lyxerr << "should not happen" << endl;