void Inset.heorem::write(Buffer const * buf, ostream & os) const
{
- os << insetName() << "\n";
+ os << name() << "\n";
InsetCollapsable::write(buf, os);
}
-auto_ptr<Inset> Inset.heorem::doClone() const
+Inset * InsetTheorem::clone() const
{
-#ifdef WITH_WARNINGS
-#warning Is this inset used? If YES this is WRONG!!! (Jug)
-#endif
- auto_ptr<Inset.heorem> result(new InsetTheorem);
+ // FIXME: Is this inset used? If YES this is WRONG!!! (Jug)
+ InsetTheorem * result = new InsetTheorem;
result->setCollapsed(!isOpen());
-
return result;
}
+
bool Inset.heorem::metrics(MetricsInfo & mi, Dimension & dim) const
{
InsetCollapsable::metrics(mi, dim);