X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_exintinset.C;h=e26a74e6b69890d8e0a40749839bafab48e96e19;hb=e093e5e80c334995a77445c8e66a9f3c9594dda1;hp=ba21ff6dca3667e069c4476981ad6eaa0783ebda;hpb=33a28bdc9cdf978601d5d40b693f13924801ad9e;p=lyx.git diff --git a/src/mathed/math_exintinset.C b/src/mathed/math_exintinset.C index ba21ff6dca..e26a74e6b6 100644 --- a/src/mathed/math_exintinset.C +++ b/src/mathed/math_exintinset.C @@ -7,6 +7,8 @@ #include "math_symbolinset.h" #include "debug.h" +#include + using std::endl; @@ -42,19 +44,19 @@ bool MathExIntInset::hasScripts() const void MathExIntInset::normalize(NormalStream & os) const { - os << '[' << symbol_ << ' ' << cell(0) << ' ' << cell(1) << ' ' + os << '[' << symbol_ << ' ' << cell(0) << ' ' << cell(1) << ' ' << cell(2) << ' ' << cell(3) << ']'; } -void MathExIntInset::metrics(MathMetricsInfo const &) const +void MathExIntInset::metrics(MathMetricsInfo &) const { lyxerr << "should not happen" << endl; } -void MathExIntInset::draw(Painter &, int, int) const -{ +void MathExIntInset::draw(MathPainterInfo &, int, int) const +{ lyxerr << "should not happen" << endl; } @@ -64,7 +66,7 @@ void MathExIntInset::maplize(MapleStream & os) const os << symbol_ << '('; if (cell(0).size()) os << cell(0); - else + else os << '1'; os << ',' << cell(1); if (hasScripts()) @@ -75,12 +77,11 @@ void MathExIntInset::maplize(MapleStream & os) const void MathExIntInset::mathmlize(MathMLStream & os) const { - MathSymbolInset * sym = new MathSymbolInset(symbol_); + boost::scoped_ptr sym(new MathSymbolInset(symbol_)); //if (hasScripts()) // mathmlize(sym, os); - //else + //else sym->mathmlize(os); - delete sym; os << cell(0) << "" << MTag("mrow") << "" << cell(1) << ETag("mrow"); @@ -91,4 +92,3 @@ void MathExIntInset::write(WriteStream &) const { lyxerr << "should not happen" << endl; } -