+/**
+ * \file math_braceinset.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_braceinset.h"
-#include "math_parser.h"
-#include "math_support.h"
+#include "math_data.h"
#include "math_mathmlstream.h"
-#include "support/LOstream.h"
+#include "math_support.h"
+#include "LColor.h"
+#include "support/std_ostream.h"
using std::max;
+using std::auto_ptr;
MathBraceInset::MathBraceInset()
}
-MathInset * MathBraceInset::clone() const
+auto_ptr<InsetBase> MathBraceInset::clone() const
{
- return new MathBraceInset(*this);
+ return auto_ptr<InsetBase>(new MathBraceInset(*this));
}
-Dimension MathBraceInset::metrics(MetricsInfo & mi) const
+void MathBraceInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
cell(0).metrics(mi);
Dimension t;
dim_.asc = max(cell(0).ascent(), t.asc);
dim_.des = max(cell(0).descent(), t.des);
dim_.wid = cell(0).width() + 2 * wid_;
- return dim_;
+ dim = dim_;
}