]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_dotsinset.C
bug + spped fixes + small stuff
[lyx.git] / src / mathed / math_dotsinset.C
index a1ba4d2133c0309781721497a8bd8fd842bbfd1a..c08c31a443c2327066278b51e498d15fe2ad1934 100644 (file)
@@ -1,24 +1,38 @@
+/**
+ * \file math_dotsinset.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Alejandro Aguilar Sierra
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #include <config.h>
 
 #include "math_dotsinset.h"
 #include "math_mathmlstream.h"
-#include "math_streamstr.h"
 #include "math_support.h"
 #include "math_parser.h"
 
 
+using std::string;
+using std::auto_ptr;
+
+
 MathDotsInset::MathDotsInset(latexkeys const * key)
        : key_(key)
 {}
 
 
-MathInset * MathDotsInset::clone() const
+auto_ptr<InsetBase> MathDotsInset::clone() const
 {
-       return new MathDotsInset(*this);
+       return auto_ptr<InsetBase>(new MathDotsInset(*this));
 }
 
 
-Dimension MathDotsInset::metrics(MetricsInfo & mi) const
+void MathDotsInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        mathed_char_dim(mi.base.font, 'M', dim_);
        dh_ = 0;
@@ -33,7 +47,7 @@ Dimension MathDotsInset::metrics(MetricsInfo & mi) const
        }
        else if (key_->name == "ddots")
                dh_ = dim_.asc;
-       return dim_;
+       dim = dim_;
 }