lyx_mirror/src/mathed/math_limitopinset.C
Lars Gullik Bjønnes 33a28bdc9c Add string << operators for the other streams as well, and removes
c_str() all places where it is not needed anymore.
(I also add config.h to several files that was missing it)
+ added s string constructor to math_symbolinset

I also change some "while(" to "while ("

mmm ... yes ... I add a "zero()" function to LyXLength... an "empty()"
function did not seem appropriate. changed a couple of places that
checked on length.value() != 0.0.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3149 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-05 08:04:20 +00:00

55 lines
1.0 KiB
C

#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
{
scripts_.write2(int_.nucleus(), os);
os << core_ << "d" << diff_;
}
void MathLimitOpInset::normalize(NormalStream &) const
{
//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";
}
void MathLimitOpInset::maplize(MapleStream &) const
{
//os << name_ << '(' << cell(0) << ')';
}
void MathLimitOpInset::mathmlize(MathMLStream &) const
{
//os << name_ << '(' << cell(0) << ')';
}