+2003-10-29 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * dispatchresult.h: remove FINISHED_POP as FINISHED has the same
+ meaning.
+
2003-10-29 Lars Gullik Bjønnes <larsbj@gullik.net>
* dispatchresult.h: rename DISPATCHED_POP to FINISHED_POP, remove
FINISHED,
FINISHED_RIGHT,
FINISHED_UP,
- FINISHED_DOWN,
- FINISHED_POP
+ FINISHED_DOWN
};
/** \c DispatchResult is a wrapper for dispatch_result_t.
* math_hullinset.C (priv_dispatch):
* math_gridinset.C (priv_dispatch):
+ * math_cursor.C (dispatch): FINISHED_POP -> FINISHED
+
+2003-10-29 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * math_hullinset.C (priv_dispatch):
+ * math_gridinset.C (priv_dispatch):
* math_cursor.C (dispatch): DISPATCHED_POP -> FINISHED_POP
+ (dispatch):
* math_scriptinset.h: change dispatch to priv_dispatch and make it
protected
CursorPos & pos = Cursor_[i];
DispatchResult res = pos.inset_->dispatch(cmd, pos.idx_, pos.pos_);
if (res != UNDISPATCHED) {
- if (res == FINISHED_POP) {
+ if (res == FINISHED) {
Cursor_.shrink(i + 1);
selClear();
}
idx = nargs() - 1;
if (pos > cell(idx).size())
pos = cell(idx).size();
- return FINISHED_POP;
+ return FINISHED;
case LFUN_CELL_SPLIT:
//recordUndo(bv, Undo::ATOMIC);
splitCell(idx, pos);
- return FINISHED_POP;
+ return FINISHED;
case LFUN_BREAKLINE: {
//recordUndo(bv, Undo::INSERT);
pos = cell(idx).size();
//mathcursor->normalize();
- return FINISHED_POP;
+ return FINISHED;
}
case LFUN_TABULAR_FEATURE: {
swapCol(col(idx));
else
return UNDISPATCHED;
- lyxerr << "returning DISPATCHED_POP" << endl;
- return FINISHED_POP;
+ lyxerr << "returning FINISHED" << endl;
+ return FINISHED;
}
case LFUN_PASTE: {
for (col_type c = 0; c < grid.ncols(); ++c)
cell(i).append(grid.cell(grid.index(r, c)));
}
- return FINISHED_POP;
+ return FINISHED;
}
default:
mutate("eqnarray");
idx = 1;
pos = 0;
- return FINISHED_POP;
+ return FINISHED;
}
return MathGridInset::priv_dispatch(cmd, idx, pos);
case LFUN_MATH_EXTERN:
doExtern(cmd, idx, pos);
- return FINISHED_POP;
+ return FINISHED;
case LFUN_MATH_MUTATE: {
lyxerr << "Hull: MUTATE: " << cmd.argument << endl;
idx = nargs() - 1;
if (pos > cell(idx).size())
pos = cell(idx).size();
- return FINISHED_POP;
+ return FINISHED;
}
case LFUN_MATH_DISPLAY: {
mutate(type_ == "simple" ? "equation" : "simple");
idx = 0;
pos = cell(idx).size();
- return FINISHED_POP;
+ return FINISHED;
}
default: