X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_exintinset.C;h=47a44edde611ce56eea5fcf6ac226390efc40b3f;hb=d359dd8fca52c4f0100f7cf4bf636113c5c4e49f;hp=663b527856236919b43fb02dd52a9e98d51ef82a;hpb=2b8ef58dc021912b2862328b9000cfe37578ea37;p=lyx.git diff --git a/src/mathed/math_exintinset.C b/src/mathed/math_exintinset.C index 663b527856..47a44edde6 100644 --- a/src/mathed/math_exintinset.C +++ b/src/mathed/math_exintinset.C @@ -7,7 +7,7 @@ #include "math_symbolinset.h" #include "debug.h" -#include +#include using std::endl; @@ -49,13 +49,13 @@ void MathExIntInset::normalize(NormalStream & os) const } -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; } @@ -74,6 +74,26 @@ void MathExIntInset::maplize(MapleStream & os) const os << ')'; } +void MathExIntInset::mathematicize(MathematicaStream & os) const +{ + if ( symbol_ == "int" ) + os << "Integrate["; + else + if (symbol_ == "sum") + os << "Sum["; + else + os << symbol_ << '['; + + if (cell(0).size()) + os << cell(0) << ','; + else + os << '1' << ','; + if (hasScripts()) + os << '{' << cell(1) << ',' << cell(2) << ',' << cell(3) << "}]"; + else + os << cell(1) << ']'; +} + void MathExIntInset::mathmlize(MathMLStream & os) const {