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_mathmlstream.h"
21 MathDiffInset::MathDiffInset()
26 auto_ptr<InsetBase> MathDiffInset::clone() const
28 return auto_ptr<InsetBase>(new MathDiffInset(*this));
32 void MathDiffInset::addDer(MathArray const & der)
34 cells_.push_back(der);
38 void MathDiffInset::normalize(NormalStream & os) const
41 for (idx_type idx = 0; idx < nargs(); ++idx)
42 os << ' ' << cell(idx);
47 void MathDiffInset::metrics(MetricsInfo &, Dimension &) const
49 lyxerr << "should not happen" << endl;
53 void MathDiffInset::draw(PainterInfo &, int, int) const
55 lyxerr << "should not happen" << endl;
59 void MathDiffInset::maple(MapleStream & os) const
62 for (idx_type idx = 0; idx < nargs(); ++idx) {
71 void MathDiffInset::mathematica(MathematicaStream & os) const
74 for (idx_type idx = 0; idx < nargs(); ++idx) {
83 void MathDiffInset::mathmlize(MathMLStream & os) const
86 for (idx_type idx = 0; idx < nargs(); ++idx) {
95 void MathDiffInset::write(WriteStream &) const
97 lyxerr << "should not happen" << endl;