X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_numberinset.C;h=d93cdbc3197afcc96366729db8a597d94eb7b049;hb=cd03e2b7db8379a91f3d31eac2c5bc25b159c541;hp=3051703c4a7d42ae0a4c84c072dff5beb4f49e9f;hpb=53274e31ec1cc715c0b48921ee67818790c2e99a;p=lyx.git diff --git a/src/mathed/math_numberinset.C b/src/mathed/math_numberinset.C index 3051703c4a..d93cdbc319 100644 --- a/src/mathed/math_numberinset.C +++ b/src/mathed/math_numberinset.C @@ -1,14 +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. + */ -#ifdef __GNUG__ -#pragma implementation -#endif +#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) @@ -16,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_); @@ -41,13 +48,13 @@ void MathNumberInset::normalize(NormalStream & os) const } -void MathNumberInset::maplize(MapleStream & os) const +void MathNumberInset::maple(MapleStream & os) const { os << str_; } -void MathNumberInset::octavize(OctaveStream & os) const +void MathNumberInset::octave(OctaveStream & os) const { os << str_; }