2001-11-09 14:23:44 +00:00
|
|
|
#include "math_limitopinset.h"
|
|
|
|
#include "math_support.h"
|
|
|
|
#include "math_mathmlstream.h"
|
|
|
|
#include "math_symbolinset.h"
|
|
|
|
#include "debug.h"
|
|
|
|
|
|
|
|
|
|
|
|
MathLimitOpInset::MathLimitOpInset(MathScriptInset const & scripts,
|
|
|
|
MathArray const & core)
|
|
|
|
: int_(new MathSymbolInset("int")),
|
|
|
|
scripts_(scripts), core_(core)
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
MathInset * MathLimitOpInset::clone() const
|
|
|
|
{
|
|
|
|
return new MathLimitOpInset(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MathLimitOpInset::write(WriteStream & os) const
|
|
|
|
{
|
2001-11-20 16:05:17 +00:00
|
|
|
scripts_.write2(int_.nucleus(), os);
|
2001-11-09 14:23:44 +00:00
|
|
|
os << core_ << "d" << diff_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-11-16 12:00:27 +00:00
|
|
|
void MathLimitOpInset::normalize(NormalStream &) const
|
2001-11-09 14:23:44 +00:00
|
|
|
{
|
|
|
|
//os << "[int " << scripts_ << ' ' << core_ << ' ' << diff_ << ']'
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MathLimitOpInset::metrics(MathMetricsInfo const &) const
|
|
|
|
{
|
|
|
|
lyxerr << "should not happen\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MathLimitOpInset::draw(Painter &, int, int) const
|
|
|
|
{
|
|
|
|
lyxerr << "should not happen\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-11-16 12:00:27 +00:00
|
|
|
void MathLimitOpInset::maplize(MapleStream &) const
|
2001-11-09 14:23:44 +00:00
|
|
|
{
|
|
|
|
//os << name_.c_str() << '(' << cell(0) << ')';
|
|
|
|
}
|
|
|
|
|
2001-11-16 12:00:27 +00:00
|
|
|
void MathLimitOpInset::mathmlize(MathMLStream &) const
|
2001-11-09 14:23:44 +00:00
|
|
|
{
|
|
|
|
//os << name_.c_str() << '(' << cell(0) << ')';
|
|
|
|
}
|