2002-09-11 09:14:57 +00:00
|
|
|
|
2002-07-12 11:21:21 +00:00
|
|
|
#include "math_liminset.h"
|
|
|
|
#include "math_support.h"
|
|
|
|
#include "math_mathmlstream.h"
|
|
|
|
#include "math_symbolinset.h"
|
|
|
|
#include "debug.h"
|
|
|
|
|
|
|
|
|
|
|
|
MathLimInset::MathLimInset
|
|
|
|
(MathArray const & f, MathArray const & x, MathArray const & x0)
|
|
|
|
: MathNestInset(3)
|
|
|
|
{
|
|
|
|
cell(0) = f;
|
|
|
|
cell(1) = x;
|
|
|
|
cell(2) = x0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MathInset * MathLimInset::clone() const
|
|
|
|
{
|
|
|
|
return new MathLimInset(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MathLimInset::normalize(NormalStream & os) const
|
|
|
|
{
|
|
|
|
os << "[lim " << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ']';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-05-28 13:22:36 +00:00
|
|
|
Dimension MathLimInset::metrics(MetricsInfo &) const
|
2002-07-12 11:21:21 +00:00
|
|
|
{
|
|
|
|
lyxerr << "should not happen\n";
|
2003-05-28 13:22:36 +00:00
|
|
|
return Dimension();
|
2002-07-12 11:21:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-03-21 14:20:48 +00:00
|
|
|
void MathLimInset::draw(PainterInfo &, int, int) const
|
2002-07-12 11:21:21 +00:00
|
|
|
{
|
|
|
|
lyxerr << "should not happen\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-02-14 14:30:09 +00:00
|
|
|
void MathLimInset::maple(MapleStream & os) const
|
2002-07-12 11:21:21 +00:00
|
|
|
{
|
|
|
|
os << "limit(" << cell(0) << ',' << cell(1) << '=' << cell(2) << ')';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-02-14 14:30:09 +00:00
|
|
|
void MathLimInset::mathematica(MathematicaStream & os) const
|
2002-07-12 11:21:21 +00:00
|
|
|
{
|
|
|
|
os << "Lim[" << cell(0) << ',' << cell(1) << ',' << cell(2) << ']';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MathLimInset::mathmlize(MathMLStream & os) const
|
|
|
|
{
|
|
|
|
os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MathLimInset::write(WriteStream &) const
|
|
|
|
{
|
|
|
|
lyxerr << "should not happen\n";
|
|
|
|
}
|