2 * \file InsetMathDiff.cpp
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 "MathStream.h"
25 InsetMathDiff::InsetMathDiff()
30 auto_ptr<Inset> InsetMathDiff::doClone() const
32 return auto_ptr<Inset>(new InsetMathDiff(*this));
36 void InsetMathDiff::addDer(MathData const & der)
38 cells_.push_back(der);
42 void InsetMathDiff::normalize(NormalStream & os) const
45 for (idx_type idx = 0; idx < nargs(); ++idx)
46 os << ' ' << cell(idx);
51 bool InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
53 lyxerr << "should not happen" << endl;
58 void InsetMathDiff::draw(PainterInfo &, int, int) const
60 lyxerr << "should not happen" << endl;
64 void InsetMathDiff::maple(MapleStream & os) const
67 for (idx_type idx = 0; idx < nargs(); ++idx) {
76 void InsetMathDiff::maxima(MaximaStream & os) const
79 for (idx_type idx = 0; idx < nargs(); ++idx) {
90 void InsetMathDiff::mathematica(MathematicaStream & os) const
93 for (idx_type idx = 0; idx < nargs(); ++idx) {
102 void InsetMathDiff::mathmlize(MathStream & os) const
105 for (idx_type idx = 0; idx < nargs(); ++idx) {
114 void InsetMathDiff::write(WriteStream &) const
116 lyxerr << "should not happen" << endl;