- os << getInsetName() << '\n'
- << "position " << pos_ << '\n'
- << "inner_position " << inner_pos_ << '\n'
- << "height \"" << height_.asString() << "\"\n"
- << "width \"" << width_.asString() << "\"\n";
- InsetCollapsable::write(buf, os);
+ Inset::RESULT result = UNDISPATCHED;
+
+ switch (cmd.action) {
+ case LFUN_INSET_MODIFY: {
+ InsetMinipage::Params params;
+ InsetMinipageMailer::string2params(cmd.argument, params);
+
+ params_.pos = params.pos;
+ params_.width = params.width;
+
+ // FIXME: what magical mysterious commands are actually
+ // needed here to update the bloody size of the inset !!!
+ cmd.view()->updateInset(this);
+ result = DISPATCHED;
+ }
+ break;
+
+ case LFUN_INSET_DIALOG_UPDATE: {
+ InsetMinipageMailer mailer(*this);
+ mailer.updateDialog(cmd.view());
+ }
+ break;
+
+ default:
+ result = InsetCollapsable::localDispatch(cmd);
+ }
+
+ return result;