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"
24 InsetMathDiff::InsetMathDiff()
29 Inset * InsetMathDiff::clone() const
31 return new InsetMathDiff(*this);
35 void InsetMathDiff::addDer(MathData const & der)
37 cells_.push_back(der);
41 void InsetMathDiff::normalize(NormalStream & os) const
44 for (idx_type idx = 0; idx < nargs(); ++idx)
45 os << ' ' << cell(idx);
50 void InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
52 lyxerr << "should not happen" << endl;
56 void InsetMathDiff::draw(PainterInfo &, int, int) const
58 lyxerr << "should not happen" << endl;
62 void InsetMathDiff::maple(MapleStream & os) const
65 for (idx_type idx = 0; idx < nargs(); ++idx) {
74 void InsetMathDiff::maxima(MaximaStream & os) const
77 for (idx_type idx = 0; idx < nargs(); ++idx) {
88 void InsetMathDiff::mathematica(MathematicaStream & os) const
91 for (idx_type idx = 0; idx < nargs(); ++idx) {
100 void InsetMathDiff::mathmlize(MathStream & os) const
103 for (idx_type idx = 0; idx < nargs(); ++idx) {
112 void InsetMathDiff::write(WriteStream &) const
114 lyxerr << "should not happen" << endl;