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 "MathExtern.h"
16 #include "MathStream.h"
18 #include "support/debug.h"
23 InsetMathDiff::InsetMathDiff(Buffer * buf)
24 : InsetMathNest(buf, 1)
28 Inset * InsetMathDiff::clone() const
30 return new InsetMathDiff(*this);
34 void InsetMathDiff::addDer(MathData const & der)
36 cells_.push_back(der);
40 void InsetMathDiff::normalize(NormalStream & os) const
43 for (idx_type idx = 0; idx < nargs(); ++idx)
44 os << ' ' << cell(idx);
49 void InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
51 LYXERR0("should not happen");
55 void InsetMathDiff::draw(PainterInfo &, int, int) const
57 LYXERR0("should not happen");
61 void InsetMathDiff::maple(MapleStream & os) const
64 for (idx_type idx = 0; idx < nargs(); ++idx) {
73 void InsetMathDiff::maxima(MaximaStream & os) const
76 for (idx_type idx = 0; idx < nargs(); ++idx) {
87 void InsetMathDiff::mathematica(MathematicaStream & os) const
90 for (idx_type idx = 0; idx < nargs(); ++idx) {
99 docstring InsetMathDiff::mathmlize(MathStream & os) const
103 for (idx_type idx = 0; idx < nargs(); ++idx) {
106 rv += lyx::mathmlize(cell(idx), os);
113 void InsetMathDiff::write(WriteStream &) const
115 LYXERR0("should not happen");