1 #include "math_exintinset.h"
2 #include "math_support.h"
4 #include "math_mathmlstream.h"
5 #include "math_symbolinset.h"
8 MathExIntInset::MathExIntInset()
9 : int_(new MathSymbolInset("int"))
13 MathInset * MathExIntInset::clone() const
15 return new MathExIntInset(*this);
19 void MathExIntInset::differential(MathArray const & ar)
25 void MathExIntInset::core(MathArray const & ar)
31 void MathExIntInset::scripts(MathAtom const & at)
37 void MathExIntInset::symbol(MathAtom const & at)
43 bool MathExIntInset::hasScripts() const
45 return scripts_.hasNucleus();
50 void MathExIntInset::normalize(NormalStream & os) const
54 os << scripts_.nucleus();
57 os << ' ' << core_ << ' ' << diff_ << ']';
61 void MathExIntInset::metrics(MathMetricsInfo const &) const
63 lyxerr << "should not happen\n";
67 void MathExIntInset::draw(Painter &, int, int) const
69 lyxerr << "should not happen\n";
73 void MathExIntInset::maplize(MapleStream & os) const
75 os << int_.nucleus() << '(' << core_ << ',' << diff_;
77 MathScriptInset * p = scripts_->asScriptInset();
78 os << '=' << p->down().data_ << ".." << p->up().data_;
84 void MathExIntInset::mathmlize(MathMLStream & os) const
87 scripts_->asScriptInset()->mathmlize(int_.nucleus(), os);
90 os << core_ << "<mo> ⁢ </mo>"
91 << MTag("mrow") << "<mo> ⅆ </mo>"
92 << diff_ << ETag("mrow");
96 void MathExIntInset::write(WriteStream & os) const
99 os << scripts_.nucleus();
100 os << core_ << "d" << diff_;