namespace lyx {
-InsetWrap::InsetWrap(BufferParams const & bp, string const & type)
- : InsetCollapsable(bp), name_(from_utf8(type))
+InsetWrap::InsetWrap(Buffer const & buf, string const & type)
+ : InsetCollapsable(buf), name_(from_utf8(type))
{
- setLabel(_("wrap: ") + floatName(type, bp));
+ setLabel(_("wrap: ") + floatName(type, buf.params()));
params_.type = type;
params_.lines = 0;
params_.placement = "o";
InsetWrapMailer(*this).updateDialog(&cur.bv());
break;
- case LFUN_MOUSE_RELEASE: {
- if (cmd.button() == mouse_button::button3 && hitButton(cmd)) {
- InsetWrapMailer(*this).showDialog(&cur.bv());
- break;
- }
- InsetCollapsable::doDispatch(cur, cmd);
- break;
- }
-
default:
InsetCollapsable::doDispatch(cur, cmd);
break;
}
-Inset * InsetWrap::clone() const
-{
- return new InsetWrap(*this);
-}
-
-
docstring InsetWrap::editMessage() const
{
return _("Opened Wrap Inset");