2 * \file InsetMathDiff.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 "InsetMathDiff.h"
15 #include "MathMLStream.h"
22 InsetMathDiff::InsetMathDiff()
27 auto_ptr<InsetBase> InsetMathDiff::doClone() const
29 return auto_ptr<InsetBase>(new InsetMathDiff(*this));
33 void InsetMathDiff::addDer(MathArray const & der)
35 cells_.push_back(der);
39 void InsetMathDiff::normalize(NormalStream & os) const
42 for (idx_type idx = 0; idx < nargs(); ++idx)
43 os << ' ' << cell(idx);
48 void InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
50 lyxerr << "should not happen" << endl;
54 void InsetMathDiff::draw(PainterInfo &, int, int) const
56 lyxerr << "should not happen" << endl;
60 void InsetMathDiff::maple(MapleStream & os) const
63 for (idx_type idx = 0; idx < nargs(); ++idx) {
72 void InsetMathDiff::maxima(MaximaStream & os) const
75 for (idx_type idx = 0; idx < nargs(); ++idx) {
86 void InsetMathDiff::mathematica(MathematicaStream & os) const
89 for (idx_type idx = 0; idx < nargs(); ++idx) {
98 void InsetMathDiff::mathmlize(MathMLStream & os) const
101 for (idx_type idx = 0; idx < nargs(); ++idx) {
110 void InsetMathDiff::write(WriteStream &) const
112 lyxerr << "should not happen" << endl;