* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#include "InsetMathDiff.h"
#include "MathData.h"
#include "MathStream.h"
-#include "debug.h"
+#include "support/debug.h"
-namespace lyx {
-
-using std::auto_ptr;
-using std::endl;
+namespace lyx {
-InsetMathDiff::InsetMathDiff()
- : InsetMathNest(1)
+InsetMathDiff::InsetMathDiff(Buffer * buf)
+ : InsetMathNest(buf, 1)
{}
-auto_ptr<InsetBase> InsetMathDiff::doClone() const
+Inset * InsetMathDiff::clone() const
{
- return auto_ptr<InsetBase>(new InsetMathDiff(*this));
+ return new InsetMathDiff(*this);
}
}
-bool InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
+void InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
{
- lyxerr << "should not happen" << endl;
- return true;
+ LYXERR0("should not happen");
}
void InsetMathDiff::draw(PainterInfo &, int, int) const
{
- lyxerr << "should not happen" << endl;
+ LYXERR0("should not happen");
}
}
-void InsetMathDiff::mathmlize(MathStream & os) const
-{
- os << "diff(";
- for (idx_type idx = 0; idx < nargs(); ++idx) {
- if (idx != 0)
- os << ',';
- os << cell(idx);
- }
- os << ')';
-}
-
-
-void InsetMathDiff::write(WriteStream &) const
+void InsetMathDiff::write(TeXMathStream &) const
{
- lyxerr << "should not happen" << endl;
+ LYXERR0("should not happen");
}