X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_binaryopinset.C;h=ce6dc2c5ace9dd46ae2e73d75351d4577557bdb5;hb=edbef46cd7865dab72ab6b503d62e2492479d297;hp=b8d05a6b5f500bbf207555b8618ac1555faea8a1;hpb=2a5ab60ce880dea3719832844ee857275b837019;p=lyx.git diff --git a/src/mathed/math_binaryopinset.C b/src/mathed/math_binaryopinset.C index b8d05a6b5f..ce6dc2c5ac 100644 --- a/src/mathed/math_binaryopinset.C +++ b/src/mathed/math_binaryopinset.C @@ -1,9 +1,19 @@ -#include +/** + * \file math_binaryopinset.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author Alejandro Aguilar Sierra + * \author André Pönitz + * + * Full author contact details are available in file CREDITS. + */ +#include #include "math_binaryopinset.h" #include "PainterInfo.h" -#include "support/LOstream.h" +#include "support/std_ostream.h" #include "math_support.h" #include "math_mathmlstream.h" @@ -16,9 +26,9 @@ MathBinaryOpInset::MathBinaryOpInset(char op) {} -InsetBase * MathBinaryOpInset::clone() const +auto_ptr MathBinaryOpInset::clone() const { - return new MathBinaryOpInset(*this); + return auto_ptr(new MathBinaryOpInset(*this)); } @@ -28,6 +38,12 @@ int MathBinaryOpInset::opwidth() const } +#ifdef WITH_WARNINGS +#warning Andre, have a look here. (Lgb) +#endif +#if 0 +// That this is not declared in class MathBinaryOpInset makes +// Doxygen give warnings. (Lgb) void MathBinaryOpInset::metrics(MetricsInfo & mi, Dimension & dim) const { mi_ = mi; @@ -37,6 +53,7 @@ void MathBinaryOpInset::metrics(MetricsInfo & mi, Dimension & dim) const ascent_ = max(cell(0).ascent(), cell(1).ascent()); descent_ = max(cell(0).descent(), cell(1).descent()); } +#endif void MathBinaryOpInset::draw(PainterInfo & pain, int x, int y) const