]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exintinset.C
remove unneeded member
[lyx.git] / src / mathed / math_exintinset.C
index 212e87eecdda0be27ccb9a42864d849a9d8ccaa9..47a44edde611ce56eea5fcf6ac226390efc40b3f 100644 (file)
@@ -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
 {