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_support.h"
15 #include "math_mathmlstream.h"
16 #include "math_symbolinset.h"
23 MathDiffInset::MathDiffInset()
28 auto_ptr<InsetBase> MathDiffInset::clone() const
30 return auto_ptr<InsetBase>(new MathDiffInset(*this));
34 void MathDiffInset::addDer(MathArray const & der)
36 cells_.push_back(der);
40 void MathDiffInset::normalize(NormalStream & os) const
43 for (idx_type idx = 0; idx < nargs(); ++idx)
44 os << ' ' << cell(idx);
49 void MathDiffInset::metrics(MetricsInfo &, Dimension &) const
51 lyxerr << "should not happen" << endl;
55 void MathDiffInset::draw(PainterInfo &, int, int) const
57 lyxerr << "should not happen" << endl;
61 void MathDiffInset::maple(MapleStream & os) const
64 for (idx_type idx = 0; idx < nargs(); ++idx) {
73 void MathDiffInset::mathematica(MathematicaStream & os) const
76 for (idx_type idx = 0; idx < nargs(); ++idx) {
85 void MathDiffInset::mathmlize(MathMLStream & os) const
88 for (idx_type idx = 0; idx < nargs(); ++idx) {
97 void MathDiffInset::write(WriteStream &) const
99 lyxerr << "should not happen" << endl;