* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "InsetMathFontOld.h"
-#include "MathArray.h"
+
+#include "MathData.h"
#include "MathStream.h"
#include "MathParser.h"
-#include "MathStream.h"
-#include "support/std_ostream.h"
+#include "MetricsInfo.h"
+#include <ostream>
-namespace lyx {
-
-using std::auto_ptr;
+namespace lyx {
-InsetMathFontOld::InsetMathFontOld(latexkeys const * key)
- : InsetMathNest(1), key_(key)
+InsetMathFontOld::InsetMathFontOld(Buffer * buf, latexkeys const * key)
+ : InsetMathNest(buf, 1), key_(key)
{
//lock(true);
}
-auto_ptr<InsetBase> InsetMathFontOld::doClone() const
+Inset * InsetMathFontOld::clone() const
{
- return auto_ptr<InsetBase>(new InsetMathFontOld(*this));
+ return new InsetMathFontOld(*this);
}
-bool InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const
{
FontSetChanger dummy(mi.base, key_->name.c_str());
cell(0).metrics(mi, dim);
metricsMarkers(dim);
- if (dim_ == dim)
- return false;
- dim_ = dim;
- return true;
}