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"
17 #include "support/debug.h"
22 InsetMathDiff::InsetMathDiff(Buffer
* buf
)
23 : InsetMathNest(buf
, 1)
27 Inset
* InsetMathDiff::clone() const
29 return new InsetMathDiff(*this);
33 void InsetMathDiff::addDer(MathData
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 LYXERR0("should not happen");
54 void InsetMathDiff::draw(PainterInfo
&, int, int) const
56 LYXERR0("should not happen");
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(MathStream
& os
) const
101 for (idx_type idx
= 0; idx
< nargs(); ++idx
) {
110 void InsetMathDiff::write(WriteStream
&) const
112 LYXERR0("should not happen");