-
#include <config.h>
#include "ref_inset.h"
#include "support/LOstream.h"
+using std::auto_ptr;
+using std::endl;
+
RefInset::RefInset()
: CommandInset("ref")
{}
-MathInset * RefInset::clone() const
+auto_ptr<InsetBase> RefInset::clone() const
{
- return new RefInset(*this);
+ return auto_ptr<InsetBase>(new RefInset(*this));
}
switch (cmd.action) {
case LFUN_MOUSE_RELEASE:
if (cmd.button() == mouse_button::button3) {
- lyxerr << "trying to goto ref" << cell(0) << "\n";
+ lyxerr << "trying to goto ref" << cell(0) << endl;
cmd.view()->dispatch(FuncRequest(LFUN_REF_GOTO, asString(cell(0))));
return DISPATCHED;
}
return UNDISPATCHED;
*this = *ar[0].nucleus()->asRefInset();
-// if (cmd.view())
+// if (cmd.view())
// // This does not compile because updateInset expects
// // an Inset* and 'this' isn't.
-// cmd.view()->updateInset(this);
+// cmd.view()->updateInset(this);
return DISPATCHED;
}