+/**
+ * \file math_sqrtinset.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 <config.h>
#include "math_sqrtinset.h"
+#include "math_data.h"
#include "math_mathmlstream.h"
+#include "textpainter.h"
#include "LColor.h"
#include "frontends/Painter.h"
-#include "textpainter.h"
+
+using std::auto_ptr;
MathSqrtInset::MathSqrtInset()
{}
-InsetBase * MathSqrtInset::clone() const
+auto_ptr<InsetBase> MathSqrtInset::clone() const
{
- return new MathSqrtInset(*this);
+ return auto_ptr<InsetBase>(new MathSqrtInset(*this));
}
void MathSqrtInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
- cell(0).metrics(mi, dim_);
- dim_.asc += 4;
- dim_.des += 2;
- dim_.wid += 12;
- metricsMarkers(1);
- dim = dim_;
+ cell(0).metrics(mi, dim);
+ dim.asc += 4;
+ dim.des += 2;
+ dim.wid += 12;
+ metricsMarkers(dim);
+ dim_ = dim;
}