]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_tabularinset.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_tabularinset.C
index 2e8282ec03e6a669f0db05ccf32870330263983d..e3170770d4d734cad22d333a7f8346f47704c75c 100644 (file)
@@ -14,6 +14,7 @@ using std::vector;
 using std::istringstream;
 using std::getline;
 using std::istream_iterator;
+using std::auto_ptr;
 
 
 MathTabularInset::MathTabularInset(string const & name, int m, int n)
@@ -33,16 +34,16 @@ MathTabularInset::MathTabularInset(string const & name, char valign,
 {}
 
 
-MathInset * MathTabularInset::clone() const
+auto_ptr<InsetBase> MathTabularInset::clone() const
 {
-       return new MathTabularInset(*this);
+       return auto_ptr<InsetBase>(new MathTabularInset(*this));
 }
 
 
-void MathTabularInset::metrics(MetricsInfo & mi) const
+void MathTabularInset::metrics(MetricsInfo & mi, Dimension & /*dim*/) const
 {
        FontSetChanger dummy(mi.base, "textnormal");
-       MathGridInset::metrics(mi);
+       return MathGridInset::metrics(mi);
 }