using std::ostream;
-InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf, bool)
+InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf)
: InsetCommand(p), isLatex(buf.isLatex())
{}
+InsetRef::InsetRef(InsetRef const & ir)
+ : InsetCommand(ir), isLatex(ir.isLatex)
+{
+}
+
+
InsetRef::~InsetRef()
{
InsetCommandMailer("ref", *this).hideDialog();
dispatch_result InsetRef::localDispatch(FuncRequest const & cmd)
{
switch (cmd.action) {
- case LFUN_INSET_EDIT:
+ case LFUN_INSET_EDIT:
// Eventually trigger dialog with button 3 not 1
if (cmd.button() == mouse_button::button3)
cmd.view()->owner()->
if (cmd.button() == mouse_button::button1)
InsetCommandMailer("ref", *this).showDialog(cmd.view());
return DISPATCHED;
-
+
default:
- return UNDISPATCHED;
+ return InsetCommand::localDispatch(cmd);
}
}