#include "math_commentinset.h"
#include "math_data.h"
-#include "math_support.h"
#include "math_mathmlstream.h"
-#include "LaTeXFeatures.h"
-#include "support/LOstream.h"
-#include "textpainter.h"
+#include "math_support.h"
+#include "support/std_ostream.h"
+using std::string;
using std::auto_ptr;
}
-auto_ptr<InsetBase> MathCommentInset::clone() const
+auto_ptr<InsetBase> MathCommentInset::doClone() const
{
return auto_ptr<InsetBase>(new MathCommentInset(*this));
}
void MathCommentInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
- cell(0).metrics(mi);
- metricsMarkers();
- dim = dim_;
+ cell(0).metrics(mi, dim);
+ metricsMarkers(dim);
+ dim_ = dim;
}