X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_numberinset.C;h=d93cdbc3197afcc96366729db8a597d94eb7b049;hb=cd03e2b7db8379a91f3d31eac2c5bc25b159c541;hp=87bc4b05bc2344d502f657b782da41907c0db5ba;hpb=c9e78a825bd659ddb7b4b55a6adfa7f0a1a98dd6;p=lyx.git diff --git a/src/mathed/math_numberinset.C b/src/mathed/math_numberinset.C index 87bc4b05bc..d93cdbc319 100644 --- a/src/mathed/math_numberinset.C +++ b/src/mathed/math_numberinset.C @@ -1,11 +1,21 @@ -#include +/** + * \file math_numberinset.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author André Pönitz + * + * Full author contact details are available in file CREDITS. + */ +#include #include "math_numberinset.h" #include "math_mathmlstream.h" #include "math_streamstr.h" #include "math_support.h" -#include "debug.h" + +using std::auto_ptr; MathNumberInset::MathNumberInset(string const & s) @@ -13,19 +23,19 @@ MathNumberInset::MathNumberInset(string const & s) {} -MathInset * MathNumberInset::clone() const +auto_ptr MathNumberInset::clone() const { - return new MathNumberInset(*this); + return auto_ptr(new MathNumberInset(*this)); } -void MathNumberInset::metrics(MathMetricsInfo & mi) const +void MathNumberInset::metrics(MetricsInfo & mi, Dimension & dim) const { - mathed_string_dim(mi.base.font, str_, dim_); + mathed_string_dim(mi.base.font, str_, dim); } -void MathNumberInset::draw(MathPainterInfo & pi, int x, int y) const +void MathNumberInset::draw(PainterInfo & pi, int x, int y) const { //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl; drawStr(pi, pi.base.font, x, y, str_);