A bit more re-organization.
[lyx.git] / src / mathed / InsetMathLim.cpp
blob892cded83ddf9d34dd0b322381364f490b4022a2
1 /**
2 * \file InsetMathLim.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author André Pönitz
8 * Full author contact details are available in file CREDITS.
9 */
11 #include <config.h>
13 #include "InsetMathLim.h"
14 #include "MathData.h"
15 #include "MathStream.h"
17 #include "support/debug.h"
20 namespace lyx {
22 InsetMathLim::InsetMathLim(Buffer * buf, MathData const & f, MathData const & x,
23 MathData const & x0)
24 : InsetMathNest(buf, 3)
26 cell(0) = f;
27 cell(1) = x;
28 cell(2) = x0;
32 Inset * InsetMathLim::clone() const
34 return new InsetMathLim(*this);
38 void InsetMathLim::normalize(NormalStream & os) const
40 os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
44 void InsetMathLim::metrics(MetricsInfo &, Dimension &) const
46 LYXERR0("should not happen");
50 void InsetMathLim::draw(PainterInfo &, int, int) const
52 LYXERR0("should not happen");
56 void InsetMathLim::maple(MapleStream & os) const
58 os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
62 void InsetMathLim::maxima(MaximaStream & os) const
64 os << "limit(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
68 void InsetMathLim::mathematica(MathematicaStream & os) const
70 os << "Limit[" << cell(0) << ',' << cell(1) << "-> " << cell(2) << ']';
74 void InsetMathLim::mathmlize(MathStream & os) const
76 os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
80 void InsetMathLim::write(WriteStream &) const
82 LYXERR0("should not happen");
86 } // namespace lyx