* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "InsetMathLefteqn.h"
-#include "MathArray.h"
-#include "support/std_ostream.h"
-
-namespace lyx {
+#include "support/docstream.h"
-using std::string;
-using std::auto_ptr;
-
+namespace lyx {
-InsetMathLefteqn::InsetMathLefteqn()
- : InsetMathNest(1)
+InsetMathLefteqn::InsetMathLefteqn(Buffer * buf)
+ : InsetMathNest(buf, 1)
{}
-auto_ptr<InsetBase> InsetMathLefteqn::doClone() const
+Inset * InsetMathLefteqn::clone() const
{
- return auto_ptr<InsetBase>(new InsetMathLefteqn(*this));
+ return new InsetMathLefteqn(*this);
}
-bool InsetMathLefteqn::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathLefteqn::metrics(MetricsInfo & mi, Dimension & dim) const
{
cell(0).metrics(mi, dim);
dim.asc += 2;
dim.des += 2;
dim.wid = 4;
- metricsMarkers(dim);
- if (dim_ == dim)
- return false;
- dim_ = dim;
- return true;
+ metricsMarkers(mi, dim);
}