X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathLim.cpp;h=9c042beba8cc41c48b5e87fccb59e3c18cadd85f;hb=4c724a6072013247ac178f0acec06825585c6c55;hp=ccde5013e1c411e4bfadc91abe5a9dd230b97ee9;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/mathed/InsetMathLim.cpp b/src/mathed/InsetMathLim.cpp index ccde5013e1..9c042beba8 100644 --- a/src/mathed/InsetMathLim.cpp +++ b/src/mathed/InsetMathLim.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,18 +13,15 @@ #include "InsetMathLim.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 { -InsetMathLim::InsetMathLim - (MathData const & f, MathData const & x, MathData const & x0) - : InsetMathNest(3) +InsetMathLim::InsetMathLim(Buffer * buf, MathData const & f, MathData const & x, + MathData const & x0) + : InsetMathNest(buf, 3) { cell(0) = f; cell(1) = x; @@ -32,9 +29,9 @@ InsetMathLim::InsetMathLim } -auto_ptr InsetMathLim::doClone() const +Inset * InsetMathLim::clone() const { - return auto_ptr(new InsetMathLim(*this)); + return new InsetMathLim(*this); } @@ -44,16 +41,15 @@ void InsetMathLim::normalize(NormalStream & os) const } -bool InsetMathLim::metrics(MetricsInfo &, Dimension &) const +void InsetMathLim::metrics(MetricsInfo &, Dimension &) const { - lyxerr << "should not happen" << endl; - return true; + LYXERR0("should not happen"); } void InsetMathLim::draw(PainterInfo &, int, int) const { - lyxerr << "should not happen" << endl; + LYXERR0("should not happen"); } @@ -75,15 +71,9 @@ void InsetMathLim::mathematica(MathematicaStream & os) const } -void InsetMathLim::mathmlize(MathStream & os) const -{ - os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')'; -} - - void InsetMathLim::write(WriteStream &) const { - lyxerr << "should not happen" << endl; + LYXERR0("should not happen"); }