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(4), symbol_(name)
18 MathInset * MathExIntInset::clone() const
20 return new MathExIntInset(*this);
24 void MathExIntInset::symbol(string const & symbol)
30 bool MathExIntInset::hasScripts() const
32 // take empty upper bound as "no scripts"
33 return !cell(3).empty();
38 void MathExIntInset::normalize(NormalStream & os) const
40 os << '[' << symbol_.c_str() << ' ' << cell(0) << ' ' << cell(1) << ' '
41 << cell(2) << ' ' << cell(3) << ']';
45 void MathExIntInset::metrics(MathMetricsInfo const &) const
47 lyxerr << "should not happen\n";
51 void MathExIntInset::draw(Painter &, int, int) const
53 lyxerr << "should not happen\n";
57 void MathExIntInset::maplize(MapleStream & os) const
59 os << symbol_.c_str() << '(';
66 os << '=' << cell(2) << ".." << cell(3);
71 void MathExIntInset::mathmlize(MathMLStream & os) const
73 MathSymbolInset * sym = new MathSymbolInset(symbol_.c_str());
75 // mathmlize(sym, os);
79 os << cell(0) << "<mo> ⁢ </mo>"
80 << MTag("mrow") << "<mo> ⅆ </mo>"
81 << cell(1) << ETag("mrow");
85 void MathExIntInset::write(WriteStream &) const
87 lyxerr << "should not happen\n";