3 #include "math_exintinset.h"
4 #include "math_support.h"
5 #include "math_mathmlstream.h"
6 #include "math_streamstr.h"
7 #include "math_symbolinset.h"
13 MathExIntInset::MathExIntInset(string const & name)
14 : MathNestInset(4), symbol_(name)
23 MathInset * MathExIntInset::clone() const
25 return new MathExIntInset(*this);
29 void MathExIntInset::symbol(string const & symbol)
35 bool MathExIntInset::hasScripts() const
37 // take empty upper bound as "no scripts"
38 return !cell(3).empty();
43 void MathExIntInset::normalize(NormalStream & os) const
45 os << '[' << symbol_ << ' ' << cell(0) << ' ' << cell(1) << ' '
46 << cell(2) << ' ' << cell(3) << ']';
50 void MathExIntInset::metrics(MathMetricsInfo const &) const
52 lyxerr << "should not happen" << endl;
56 void MathExIntInset::draw(Painter &, int, int) const
58 lyxerr << "should not happen" << endl;
62 void MathExIntInset::maplize(MapleStream & os) const
71 os << '=' << cell(2) << ".." << cell(3);
76 void MathExIntInset::mathmlize(MathMLStream & os) const
78 MathSymbolInset * sym = new MathSymbolInset(symbol_);
80 // mathmlize(sym, os);
84 os << cell(0) << "<mo> ⁢ </mo>"
85 << MTag("mrow") << "<mo> ⅆ </mo>"
86 << cell(1) << ETag("mrow");
90 void MathExIntInset::write(WriteStream &) const
92 lyxerr << "should not happen" << endl;