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"
16 #include "support/debug.h"
21 InsetMathLim::InsetMathLim
22 (MathData const & f, MathData const & x, MathData const & x0)
31 Inset * InsetMathLim::clone() const
33 return new InsetMathLim(*this);
37 void InsetMathLim::normalize(NormalStream & os) const
39 os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
43 void InsetMathLim::metrics(MetricsInfo &, Dimension &) const
45 LYXERR0("should not happen");
49 void InsetMathLim::draw(PainterInfo &, int, int) const
51 LYXERR0("should not happen");
55 void InsetMathLim::maple(MapleStream & os) const
57 os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
61 void InsetMathLim::maxima(MaximaStream & os) const
63 os << "limit(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
67 void InsetMathLim::mathematica(MathematicaStream & os) const
69 os << "Limit[" << cell(0) << ',' << cell(1) << "-> " << cell(2) << ']';
73 void InsetMathLim::mathmlize(MathStream & os) const
75 os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
79 void InsetMathLim::write(WriteStream &) const
81 LYXERR0("should not happen");