1 #include "math_exintinset.h"
2 #include "math_support.h"
3 #include "math_mathmlstream.h"
4 #include "math_symbolinset.h"
8 MathExIntInset::MathExIntInset(string const & name)
9 : MathNestInset(2), symbol_(name)
13 MathInset * MathExIntInset::clone() const
15 return new MathExIntInset(*this);
19 void MathExIntInset::scripts(MathAtom const & at)
25 MathAtom & MathExIntInset::scripts()
31 void MathExIntInset::symbol(string const & symbol)
37 bool MathExIntInset::hasScripts() const
39 return scripts_.hasNucleus();
44 void MathExIntInset::normalize(NormalStream & os) const
46 os << '[' << symbol_.c_str() << ' ' << cell(0) << ' ' << cell(1);
48 os << scripts_.nucleus();
53 void MathExIntInset::metrics(MathMetricsInfo const &) const
55 lyxerr << "should not happen\n";
59 void MathExIntInset::draw(Painter &, int, int) const
61 lyxerr << "should not happen\n";
65 void MathExIntInset::maplize(MapleStream & os) const
67 os << symbol_.c_str() << '(';
74 MathScriptInset * p = scripts_->asScriptInset();
75 os << '=' << p->down().data_ << ".." << p->up().data_;
81 void MathExIntInset::mathmlize(MathMLStream & os) const
83 MathSymbolInset * sym = new MathSymbolInset(symbol_.c_str());
85 scripts_->asScriptInset()->mathmlize(sym, os);
89 os << cell(0) << "<mo> ⁢ </mo>"
90 << MTag("mrow") << "<mo> ⅆ </mo>"
91 << cell(1) << ETag("mrow");
95 void MathExIntInset::write(WriteStream &) const
97 lyxerr << "should not happen\n";