1 #include "math_exintinset.h"
2 #include "math_support.h"
4 #include "math_mathmlstream.h"
5 #include "math_symbolinset.h"
8 MathExIntInset::MathExIntInset(string const & name)
13 MathInset * MathExIntInset::clone() const
15 return new MathExIntInset(*this);
19 void MathExIntInset::index(MathArray const & ar)
25 void MathExIntInset::core(MathArray const & ar)
31 void MathExIntInset::scripts(MathAtom const & at)
37 MathAtom & MathExIntInset::scripts()
43 void MathExIntInset::symbol(string const & symbol)
49 bool MathExIntInset::hasScripts() const
51 return scripts_.hasNucleus();
56 void MathExIntInset::normalize(NormalStream & os) const
58 os << '[' << symbol_.c_str() << ' ';
60 os << scripts_.nucleus();
63 os << ' ' << core_ << ' ' << index_ << ']';
67 void MathExIntInset::metrics(MathMetricsInfo const &) const
69 lyxerr << "should not happen\n";
73 void MathExIntInset::draw(Painter &, int, int) const
75 lyxerr << "should not happen\n";
79 void MathExIntInset::maplize(MapleStream & os) const
81 os << symbol_.c_str() << '(';
88 MathScriptInset * p = scripts_->asScriptInset();
89 os << '=' << p->down().data_ << ".." << p->up().data_;
95 void MathExIntInset::mathmlize(MathMLStream & os) const
97 MathSymbolInset * sym = new MathSymbolInset(symbol_.c_str());
99 scripts_->asScriptInset()->mathmlize(sym, os);
103 os << core_ << "<mo> ⁢ </mo>"
104 << MTag("mrow") << "<mo> ⅆ </mo>"
105 << index_ << ETag("mrow");
109 void MathExIntInset::write(WriteStream &) const
111 lyxerr << "should not happen\n";