]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_ertinset.C
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_ertinset.C
index 7bc02997767b2cf0e1ccebdee8c5d0e0f6123921..79a8e76c52eb6205a79da07eadb2ff72df378363 100644 (file)
@@ -1,23 +1,35 @@
+/**
+ * \file math_ertinset.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
 #include <config.h>
 
 #include "math_ertinset.h"
 #include "math_mathmlstream.h"
-#include "support/LOstream.h"
+#include "support/std_ostream.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(MetricsInfo & mi) const
+void MathErtInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, "lyxert");
-       MathTextInset::metrics(mi);
-       cache_.colinfo_[0].align = 'l';
-       metricsMarkers2();
+       MathTextInset::metrics(mi, dim);
+       cache_.colinfo_[0].align_ = 'l';
+       metricsMarkers(dim);
+       dim_ = dim;
 }
 
 
@@ -25,7 +37,7 @@ void MathErtInset::draw(PainterInfo & pi, int x, int y) const
 {
        FontSetChanger dummy(pi.base, "lyxert");
        MathTextInset::draw(pi, x + 1, y);
-       drawMarkers2(pi, x, y);
+       drawMarkers(pi, x, y);
 }