X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathLim.cpp;h=9c042beba8cc41c48b5e87fccb59e3c18cadd85f;hb=cdc847fd304019a19425a0d5d9d42a556a937097;hp=3fdd3b5e8abb530d93d1e6e81be22daff6d0f5b6;hpb=6e3a75969b97a5db4c80c46be49d4deb122abfe7;p=lyx.git diff --git a/src/mathed/InsetMathLim.cpp b/src/mathed/InsetMathLim.cpp index 3fdd3b5e8a..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. */ @@ -11,20 +11,17 @@ #include #include "InsetMathLim.h" -#include "MathArray.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 - (MathArray const & f, MathArray const & x, MathArray 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"); }