]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPar.cpp
* dynamic macros as described in http://1stein.org/download/dynmacro.pdf
[lyx.git] / src / mathed / InsetMathPar.cpp
index 8cc933e9a330fc6221aeda39b5675f67c1958b3e..38fc9bfc43be051cf2cb949a6bfa382dbc85b8f4 100644 (file)
 
 namespace lyx {
 
-
-using std::auto_ptr;
-
-
-InsetMathPar::InsetMathPar(MathArray const & ar)
+InsetMathPar::InsetMathPar(MathData const & ar)
 {
        cells_[0] = ar;
 }
 
 
-bool InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       dim = dim_;
        FontSetChanger dummy1(mi.base, "textnormal");
-       InsetMathGrid::metrics(mi);
-       if (dim_ == dim)
-               return false;
-       dim = dim_;
-       return true;
+       InsetMathGrid::metrics(mi, dim);
 }
 
 
@@ -60,9 +51,9 @@ void InsetMathPar::infoize(odocstream & os) const
 }
 
 
-auto_ptr<InsetBase> InsetMathPar::doClone() const
+Inset * InsetMathPar::clone() const
 {
-       return auto_ptr<InsetBase>(new InsetMathPar(*this));
+       return new InsetMathPar(*this);
 }