]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_ertinset.C
mathed uglyfication
[lyx.git] / src / mathed / math_ertinset.C
index 10f5f595c5a628c34b62f493374299dbdc4dd7c0..d5e5cacbb96c3c51f993a8f854b6dc24eaf25625 100644 (file)
@@ -1,24 +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));
 }
 
 
-Dimension MathErtInset::metrics(MetricsInfo & mi) const
+void MathErtInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, "lyxert");
-       MathTextInset::metrics(mi);
+       MathTextInset::metrics(mi, dim_);
        cache_.colinfo_[0].align_ = 'l';
        metricsMarkers();
-       return dim_;
+       dim = dim_;
 }