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"
16 #include "support/debug.h"
21 InsetMathDiff::InsetMathDiff()
26 Inset * InsetMathDiff::clone() const
28 return new InsetMathDiff(*this);
32 void InsetMathDiff::addDer(MathData const & der)
34 cells_.push_back(der);
38 void InsetMathDiff::normalize(NormalStream & os) const
41 for (idx_type idx = 0; idx < nargs(); ++idx)
42 os << ' ' << cell(idx);
47 void InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
49 LYXERR0("should not happen");
53 void InsetMathDiff::draw(PainterInfo &, int, int) const
55 LYXERR0("should not happen");
59 void InsetMathDiff::maple(MapleStream & os) const
62 for (idx_type idx = 0; idx < nargs(); ++idx) {
71 void InsetMathDiff::maxima(MaximaStream & os) const
74 for (idx_type idx = 0; idx < nargs(); ++idx) {
85 void InsetMathDiff::mathematica(MathematicaStream & os) const
88 for (idx_type idx = 0; idx < nargs(); ++idx) {
97 void InsetMathDiff::mathmlize(MathStream & os) const
100 for (idx_type idx = 0; idx < nargs(); ++idx) {
109 void InsetMathDiff::write(WriteStream &) const
111 LYXERR0("should not happen");