-
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include <config.h>
#include "math_ertinset.h"
#include "math_mathmlstream.h"
#include "support/LOstream.h"
+using std::auto_ptr;
-MathInset * MathErtInset::clone() const
+
+auto_ptr<InsetBase> MathErtInset::clone() const
{
- return new MathErtInset(*this);
+ return auto_ptr<InsetBase>(new MathErtInset(*this));
}
-void MathErtInset::metrics(MathMetricsInfo & mi) const
+void MathErtInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
- MathFontSetChanger dummy(mi.base, "lyxert");
- MathTextInset::metrics(mi);
+ FontSetChanger dummy(mi.base, "lyxert");
+ MathTextInset::metrics(mi, dim_);
cache_.colinfo_[0].align_ = 'l';
- metricsMarkers2();
+ metricsMarkers();
+ dim = dim_;
}
-void MathErtInset::draw(MathPainterInfo & pi, int x, int y) const
+void MathErtInset::draw(PainterInfo & pi, int x, int y) const
{
- MathFontSetChanger dummy(pi.base, "lyxert");
+ FontSetChanger dummy(pi.base, "lyxert");
MathTextInset::draw(pi, x + 1, y);
- drawMarkers2(pi, x, y);
+ drawMarkers(pi, x, y);
}
{
os << "Box: Ert";
}
-