From: André Pönitz Date: Thu, 23 Oct 2003 10:53:41 +0000 (+0000) Subject: dispatch -> priv_dispatch where necessary X-Git-Tag: 1.6.10~15907 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8265bed2676568ada64182c8d63234ebb8166994;p=features.git dispatch -> priv_dispatch where necessary git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7962 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_gridinset.C b/src/mathed/math_gridinset.C index 7dd20d53f1..89135398fa 100644 --- a/src/mathed/math_gridinset.C +++ b/src/mathed/math_gridinset.C @@ -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) { diff --git a/src/mathed/math_gridinset.h b/src/mathed/math_gridinset.h index 45c722d550..1757d245b8 100644 --- a/src/mathed/math_gridinset.h +++ b/src/mathed/math_gridinset.h @@ -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; diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index 4761fe6376..0a81fcf1a5 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -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); diff --git a/src/mathed/math_hullinset.h b/src/mathed/math_hullinset.h index 8e06ef542e..82256f7494 100644 --- a/src/mathed/math_hullinset.h +++ b/src/mathed/math_hullinset.h @@ -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 & list) const; diff --git a/src/mathed/math_nestinset.C b/src/mathed/math_nestinset.C index a603b4d0f5..3e4f3457bf 100644 --- a/src/mathed/math_nestinset.C +++ b/src/mathed/math_nestinset.C @@ -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: diff --git a/src/mathed/math_nestinset.h b/src/mathed/math_nestinset.h index 4af8f0ab19..4db158a2ba 100644 --- a/src/mathed/math_nestinset.h +++ b/src/mathed/math_nestinset.h @@ -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