#include "math_unknowninset.h"
#include "math_support.h"
+#include "math_atom.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
+using std::auto_ptr;
+
MathUnknownInset::MathUnknownInset(string const & nm, bool final, bool black)
: name_(nm), final_(final), black_(black)
{}
-MathInset * MathUnknownInset::clone() const
+auto_ptr<InsetBase> MathUnknownInset::clone() const
{
- return new MathUnknownInset(*this);
+ return auto_ptr<InsetBase>(new MathUnknownInset(*this));
}
}
-Dimension MathUnknownInset::metrics(MetricsInfo & mi) const
+void MathUnknownInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
- Dimension dim;
mathed_string_dim(mi.base.font, name_, dim);
- return dim;
}