dispatch -> priv_dispatch where necessary

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7962 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-10-23 10:53:41 +00:00
parent 0011b84a16
commit 8265bed267
6 changed files with 14 additions and 11 deletions

View File

@ -1041,8 +1041,8 @@ void MathGridInset::splitCell(idx_type & idx, pos_type & pos)
}
dispatch_result MathGridInset::dispatch
(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
dispatch_result MathGridInset::priv_dispatch(FuncRequest const & cmd,
idx_type & idx, pos_type & pos)
{
switch (cmd.action) {

View File

@ -136,7 +136,8 @@ public:
/// identifies GridInset
MathGridInset const * asGridInset() const { return this; }
/// local dispatcher
dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
dispatch_result priv_dispatch(FuncRequest const & cmd,
idx_type & idx, pos_type & pos);
///
col_type ncols() const;

View File

@ -510,7 +510,7 @@ void MathHullInset::setType(string const & type)
void MathHullInset::mutate(string const & newtype)
{
//lyxerr << "mutating from '" << type_ << "' to '" << newtype << "'" << endl;
lyxerr << "mutating from '" << type_ << "' to '" << newtype << "'" << endl;
// we try to move along the chain
// none <-> simple <-> equation <-> eqnarray
@ -771,7 +771,7 @@ void MathHullInset::doExtern
}
dispatch_result MathHullInset::dispatch
dispatch_result MathHullInset::priv_dispatch
(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
{
switch (cmd.action) {
@ -839,6 +839,7 @@ dispatch_result MathHullInset::dispatch
return DISPATCHED_POP;
case LFUN_MATH_MUTATE: {
lyxerr << "Hull: MUTATE: " << cmd.argument << endl;
row_type r = row(idx);
col_type c = col(idx);
mutate(cmd.argument);

View File

@ -51,7 +51,8 @@ public:
///
bool ams() const;
/// local dispatcher
dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
dispatch_result priv_dispatch(FuncRequest const & cmd,
idx_type & idx, pos_type & pos);
/// Appends \c list with all labels found within this inset.
void getLabelList(Buffer const &,
std::vector<std::string> & list) const;

View File

@ -285,8 +285,8 @@ void MathNestInset::notifyCursorLeaves(idx_type idx)
}
dispatch_result MathNestInset::dispatch
(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
dispatch_result MathNestInset::priv_dispatch(FuncRequest const & cmd,
idx_type & idx, pos_type & pos)
{
BufferView * bv = cmd.view();
@ -307,7 +307,7 @@ dispatch_result MathNestInset::dispatch
case LFUN_MOUSE_PRESS:
if (cmd.button() == mouse_button::button2)
return dispatch(FuncRequest(bv, LFUN_PASTESELECTION), idx, pos);
return priv_dispatch(FuncRequest(bv, LFUN_PASTESELECTION), idx, pos);
return UNDISPATCHED;
default:

View File

@ -103,8 +103,8 @@ public:
void normalize(NormalStream & os) const;
/// local dispatcher
dispatch_result
dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
dispatch_result priv_dispatch(FuncRequest const & cmd,
idx_type & idx, pos_type & pos);
protected:
/// we store the cells in a vector