4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
19 /** Dispatch result codes
20 DISPATCHED = the inset catched the action
21 DISPATCHED_NOUPDATE = the inset catched the action and no update
22 is needed here to redraw the inset
23 FINISHED = the inset must be unlocked as a result
25 FINISHED_RIGHT = FINISHED, but put the cursor to the RIGHT of
27 FINISHED_UP = FINISHED, but put the cursor UP of
29 FINISHED_DOWN = FINISHED, but put the cursor DOWN of
31 UNDISPATCHED = the action was not catched, it should be
32 dispatched by lower level insets
34 enum dispatch_result {
46 /// Common base class to all insets
49 /// type for cell indices
50 typedef size_t idx_type;
51 /// type for cursor positions
52 typedef size_t pos_type;
53 /// type for row numbers
54 typedef size_t row_type;
55 /// type for column numbers
56 typedef size_t col_type;
58 // the real dispatcher
59 virtual dispatch_result dispatch
60 (FuncRequest const & cmd, idx_type & idx, pos_type & pos);
62 /// small wrapper for the time being
63 virtual dispatch_result localDispatch(FuncRequest const & cmd);
66 virtual ~InsetBase() {}