#include "Buffer.h"
#include "BufferParams.h"
#include "BufferView.h"
+#include "Counters.h"
#include "Cursor.h"
#include "debug.h"
#include "DispatchResult.h"
using std::string;
using std::endl;
-using std::auto_ptr;
using std::istringstream;
using std::ostream;
using std::ostringstream;
}
+void InsetWrap::updateLabels(Buffer const & buf, ParIterator const & it)
+{
+ Counters & cnts = buf.params().getTextClass().counters();
+ string const saveflt = cnts.current_float();
+
+ // Tell to captions what the current float is
+ cnts.current_float(params().type);
+
+ InsetCollapsable::updateLabels(buf, it);
+
+ //reset afterwards
+ cnts.current_float(saveflt);
+}
+
+
void InsetWrapParams::write(ostream & os) const
{
os << "Wrap " << type << '\n';
}
-auto_ptr<Inset> InsetWrap::doClone() const
+Inset * InsetWrap::clone() const
{
- return auto_ptr<Inset>(new InsetWrap(*this));
+ return new InsetWrap(*this);
}