]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diffinset.C
small up/down tweaking
[lyx.git] / src / mathed / math_diffinset.C
index c05620e98ac5e67ac8988c6056e11314b6a4de8a..15d0648ff6dcfdd33294b06b3e6bcb28a165eefd 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "math_diffinset.h"
 #include "math_support.h"
 #include "math_mathmlstream.h"
@@ -18,8 +22,7 @@ MathInset * MathDiffInset::clone() const
 
 void MathDiffInset::addDer(MathArray const & der)
 {
-       cells_.push_back(MathXArray());
-       cells_.back().data_ = der;
+       cells_.push_back(der);
 }
 
 
@@ -32,14 +35,14 @@ 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";
 }
 
@@ -56,6 +59,18 @@ void MathDiffInset::maplize(MapleStream & os) const
 }
 
 
+void MathDiffInset::mathematicize(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(";
@@ -72,4 +87,3 @@ void MathDiffInset::write(WriteStream &) const
 {
        lyxerr << "should not happen\n";
 }
-