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