- ///
- virtual bool getStatus(FuncRequest const & cmd, FuncStatus & flag) const = 0;
- /// dispatch command.
- /// \return true if the \c FuncRequest has been dispatched.
- virtual bool dispatch(FuncRequest const & cmd) = 0;
+ /// LyX dispatcher: executes lyx actions and does necessary
+ /// screen updates depending on results.
+ /// This method encapsulates all the LyX command operations.
+ /// This is the class of the LyX's "high level event handler".
+ /// Every user command is processed here, either invocated from
+ /// keyboard or from the GUI. All GUI objects, including buttons and
+ /// menus should use this class and never call kernel functions directly.
+ virtual void dispatch(FuncRequest const &) = 0;
+
+ /// LyX dispatcher: executes lyx actions and returns result.
+ virtual void dispatch(FuncRequest const &, DispatchResult & dr) = 0;