#include <config.h>
#include "InsetMathEnv.h"
-#include "MathArray.h"
+
+#include "MathData.h"
#include "MathStream.h"
#include "MathStream.h"
-#include "support/std_ostream.h"
-
-namespace lyx {
+#include <ostream>
-using std::string;
-using std::auto_ptr;
-
+namespace lyx {
InsetMathEnv::InsetMathEnv(docstring const & name)
: InsetMathNest(1), name_(name)
{}
-auto_ptr<InsetBase> InsetMathEnv::doClone() const
+Inset * InsetMathEnv::clone() const
{
- return auto_ptr<InsetBase>(new InsetMathEnv(*this));
+ return new InsetMathEnv(*this);
}
-bool InsetMathEnv::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathEnv::metrics(MetricsInfo & mi, Dimension & dim) const
{
cell(0).metrics(mi, dim);
metricsMarkers(dim);
- if (dim_ == dim)
- return false;
- dim_ = dim;
- return true;
}