X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDiff.cpp;h=9052d8999ba1541b1632ccb7be67ecadb71ee948;hb=ebe6612e2661f49dcfae6103f056c27afd47751f;hp=3ec1160bdf5bace93eebad3f8da2caa760e53282;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/mathed/InsetMathDiff.cpp b/src/mathed/InsetMathDiff.cpp index 3ec1160bdf..9052d8999b 100644 --- a/src/mathed/InsetMathDiff.cpp +++ b/src/mathed/InsetMathDiff.cpp @@ -3,7 +3,7 @@ * 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. */ @@ -13,23 +13,20 @@ #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 InsetMathDiff::doClone() const +Inset * InsetMathDiff::clone() const { - return auto_ptr(new InsetMathDiff(*this)); + return new InsetMathDiff(*this); } @@ -48,16 +45,15 @@ void InsetMathDiff::normalize(NormalStream & os) const } -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"); } @@ -99,21 +95,9 @@ void InsetMathDiff::mathematica(MathematicaStream & os) const } -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 { - lyxerr << "should not happen" << endl; + LYXERR0("should not happen"); }