]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_envinset.C
Remove mixed_content from output parameters.
[lyx.git] / src / mathed / math_envinset.C
index 04e7433dffbd1b32451ec0daa3caff0e119688fc..d0a282f1e794e75b45114fc7e6d79dbacaf80183 100644 (file)
@@ -1,10 +1,24 @@
-#include <config.h>
+/**
+ * \file math_envinset.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_envinset.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
-#include "support/LOstream.h"
+#include "support/std_ostream.h"
+
+
+using std::string;
+using std::auto_ptr;
 
 
 MathEnvInset::MathEnvInset(string const & name)
@@ -12,17 +26,17 @@ MathEnvInset::MathEnvInset(string const & name)
 {}
 
 
-MathInset * MathEnvInset::clone() const
+auto_ptr<InsetBase> MathEnvInset::clone() const
 {
-       return new MathEnvInset(*this);
+       return auto_ptr<InsetBase>(new MathEnvInset(*this));
 }
 
 
-Dimension MathEnvInset::metrics(MetricsInfo & mi) const
+void MathEnvInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       cell(0).metrics(mi, dim_);
-       metricsMarkers();
-       return dim_;
+       cell(0).metrics(mi, dim);
+       metricsMarkers(dim);
+       dim_ = dim;
 }