mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
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:
parent
0011b84a16
commit
8265bed267
@ -1041,8 +1041,8 @@ void MathGridInset::splitCell(idx_type & idx, pos_type & pos)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dispatch_result MathGridInset::dispatch
|
dispatch_result MathGridInset::priv_dispatch(FuncRequest const & cmd,
|
||||||
(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
|
idx_type & idx, pos_type & pos)
|
||||||
{
|
{
|
||||||
switch (cmd.action) {
|
switch (cmd.action) {
|
||||||
|
|
||||||
|
@ -136,7 +136,8 @@ public:
|
|||||||
/// identifies GridInset
|
/// identifies GridInset
|
||||||
MathGridInset const * asGridInset() const { return this; }
|
MathGridInset const * asGridInset() const { return this; }
|
||||||
/// local dispatcher
|
/// 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;
|
col_type ncols() const;
|
||||||
|
@ -510,7 +510,7 @@ void MathHullInset::setType(string const & type)
|
|||||||
|
|
||||||
void MathHullInset::mutate(string const & newtype)
|
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
|
// we try to move along the chain
|
||||||
// none <-> simple <-> equation <-> eqnarray
|
// 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)
|
(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
|
||||||
{
|
{
|
||||||
switch (cmd.action) {
|
switch (cmd.action) {
|
||||||
@ -839,6 +839,7 @@ dispatch_result MathHullInset::dispatch
|
|||||||
return DISPATCHED_POP;
|
return DISPATCHED_POP;
|
||||||
|
|
||||||
case LFUN_MATH_MUTATE: {
|
case LFUN_MATH_MUTATE: {
|
||||||
|
lyxerr << "Hull: MUTATE: " << cmd.argument << endl;
|
||||||
row_type r = row(idx);
|
row_type r = row(idx);
|
||||||
col_type c = col(idx);
|
col_type c = col(idx);
|
||||||
mutate(cmd.argument);
|
mutate(cmd.argument);
|
||||||
|
@ -51,7 +51,8 @@ public:
|
|||||||
///
|
///
|
||||||
bool ams() const;
|
bool ams() const;
|
||||||
/// local dispatcher
|
/// 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.
|
/// Appends \c list with all labels found within this inset.
|
||||||
void getLabelList(Buffer const &,
|
void getLabelList(Buffer const &,
|
||||||
std::vector<std::string> & list) const;
|
std::vector<std::string> & list) const;
|
||||||
|
@ -285,8 +285,8 @@ void MathNestInset::notifyCursorLeaves(idx_type idx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dispatch_result MathNestInset::dispatch
|
dispatch_result MathNestInset::priv_dispatch(FuncRequest const & cmd,
|
||||||
(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
|
idx_type & idx, pos_type & pos)
|
||||||
{
|
{
|
||||||
BufferView * bv = cmd.view();
|
BufferView * bv = cmd.view();
|
||||||
|
|
||||||
@ -307,7 +307,7 @@ dispatch_result MathNestInset::dispatch
|
|||||||
|
|
||||||
case LFUN_MOUSE_PRESS:
|
case LFUN_MOUSE_PRESS:
|
||||||
if (cmd.button() == mouse_button::button2)
|
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;
|
return UNDISPATCHED;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -103,8 +103,8 @@ public:
|
|||||||
void normalize(NormalStream & os) const;
|
void normalize(NormalStream & os) const;
|
||||||
|
|
||||||
/// local dispatcher
|
/// local dispatcher
|
||||||
dispatch_result
|
dispatch_result priv_dispatch(FuncRequest const & cmd,
|
||||||
dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
|
idx_type & idx, pos_type & pos);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// we store the cells in a vector
|
/// we store the cells in a vector
|
||||||
|
Loading…
Reference in New Issue
Block a user