]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diffinset.C
Fix.
[lyx.git] / src / mathed / math_diffinset.C
index 7708364b2db5772c22e7b753f922c0f041d94861..d872157586ccfba699b108a4b0b81cb28445946e 100644 (file)
@@ -1,3 +1,4 @@
+
 #include "math_diffinset.h"
 #include "math_support.h"
 #include "math_mathmlstream.h"
@@ -18,8 +19,7 @@ MathInset * MathDiffInset::clone() const
 
 void MathDiffInset::addDer(MathArray const & der)
 {
-       cells_.push_back(MathXArray());
-       cells_.back().data_ = der;
+       cells_.push_back(der);
 }
 
 
@@ -32,19 +32,19 @@ void MathDiffInset::normalize(NormalStream & os) const
 }
 
 
-void MathDiffInset::metrics(MathMetricsInfo const &) const
+void MathDiffInset::metrics(MathMetricsInfo &) const
 {
        lyxerr << "should not happen\n";
 }
 
 
-void MathDiffInset::draw(Painter &, int, int) const
+void MathDiffInset::draw(MathPainterInfo &, int, int) const
 {
        lyxerr << "should not happen\n";
 }
 
 
-void MathDiffInset::maplize(MapleStream & os) const
+void MathDiffInset::maple(MapleStream & os) const
 {
        os << "diff(";
        for (idx_type idx = 0; idx < nargs(); ++idx) {
@@ -56,6 +56,18 @@ void MathDiffInset::maplize(MapleStream & os) const
 }
 
 
+void MathDiffInset::mathematica(MathematicaStream & os) const
+{
+       os << "Dt[";
+       for (idx_type idx = 0; idx < nargs(); ++idx) {
+               if (idx != 0)
+                       os << ',';
+               os << cell(idx);
+       }
+       os << ']';
+}
+
+
 void MathDiffInset::mathmlize(MathMLStream & os) const
 {
        os << "diff(";