2 * \file math_diffinset.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "math_diffinset.h"
14 #include "math_data.h"
15 #include "math_mathmlstream.h"
22 MathDiffInset::MathDiffInset()
27 auto_ptr<InsetBase> MathDiffInset::doClone() const
29 return auto_ptr<InsetBase>(new MathDiffInset(*this));
33 void MathDiffInset::addDer(MathArray const & der)
35 cells_.push_back(der);
39 void MathDiffInset::normalize(NormalStream & os) const
42 for (idx_type idx = 0; idx < nargs(); ++idx)
43 os << ' ' << cell(idx);
48 void MathDiffInset::metrics(MetricsInfo &, Dimension &) const
50 lyxerr << "should not happen" << endl;
54 void MathDiffInset::draw(PainterInfo &, int, int) const
56 lyxerr << "should not happen" << endl;
60 void MathDiffInset::maple(MapleStream & os) const
63 for (idx_type idx = 0; idx < nargs(); ++idx) {
72 void MathDiffInset::mathematica(MathematicaStream & os) const
75 for (idx_type idx = 0; idx < nargs(); ++idx) {
84 void MathDiffInset::mathmlize(MathMLStream & os) const
87 for (idx_type idx = 0; idx < nargs(); ++idx) {
96 void MathDiffInset::write(WriteStream &) const
98 lyxerr << "should not happen" << endl;