This allows us to request a buffer update.
}
-void GuiToc::doDispatch(Cursor & cur, FuncRequest const & cmd)
+void GuiToc::doDispatch(Cursor & cur, FuncRequest const & cmd,
+ DispatchResult & dr)
{
- widget_->doDispatch(cur, cmd);
+ widget_->doDispatch(cur, cmd, dr);
}
///
bool isBufferDependent() const { return true; }
///
- void doDispatch(Cursor & cur, FuncRequest const & fr);
+ void doDispatch(Cursor & cur, FuncRequest const & fr, DispatchResult & dr);
///
bool getStatus(Cursor & cur, FuncRequest const & fr, FuncStatus & fs) const;
if (cmd.origin() == FuncRequest::TOC) {
GuiToc * toc = static_cast<GuiToc*>(findOrBuild("toc", false));
- // FIXME: do we need to pass a DispatchResult object here?
- toc->doDispatch(bv->cursor(), cmd);
+ toc->doDispatch(bv->cursor(), cmd, dr);
return;
}
}
-void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd)
+void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd,
+ DispatchResult & dr)
{
Inset * inset = itemInset();
case LFUN_CHANGE_REJECT:
dispatch(item.action());
cur.dispatch(tmpcmd);
+ dr.forceBufferUpdate();
break;
case LFUN_SECTION_SELECT:
/// Initialise GUI.
void init(QString const & str);
///
- void doDispatch(Cursor & cur, FuncRequest const & fr);
+ void doDispatch(Cursor & cur, FuncRequest const & fr, DispatchResult & dr);
///send request to lyx::dispatch with proper guiview handle
///(if ToC is detached current_view can be different window)
void sendDispatch(FuncRequest fr);