diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-18 15:07:35 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-18 15:07:35 +0000 |
commit | 43e5c6ccf4eeaa21a74d4870c096fca3134b4a9d (patch) | |
tree | 393d4883b09aa9a667b8ec48bbc803352a1ea6f1 /sfx2 | |
parent | bd6e0fcf0262c2dbb224c92d34f35d0d5e52b788 (diff) |
INTEGRATION: CWS fwkbugfix04 (1.5.194); FILE MERGED
2004/12/02 16:39:42 mba 1.5.194.1: #118655#: support for internal dispatching in StateCache
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/ctrlitem.cxx | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/sfx2/source/control/ctrlitem.cxx b/sfx2/source/control/ctrlitem.cxx index 00739ee0fd3a..a0e2b02146ef 100644 --- a/sfx2/source/control/ctrlitem.cxx +++ b/sfx2/source/control/ctrlitem.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ctrlitem.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: obo $ $Date: 2004-07-06 13:33:26 $ + * last change: $Author: kz $ $Date: 2005-01-18 16:07:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -150,6 +150,25 @@ void SfxControllerItem::Bind( USHORT nNewId, SfxBindings *pBindinx ) pBindings->Register(*this); } +void SfxControllerItem::BindInternal_Impl( USHORT nNewId, SfxBindings *pBindinx ) +{ + DBG_MEMTEST(); + DBG_CHKTHIS(SfxControllerItem, 0); + DBG_ASSERT(pBindings || pBindinx, "Keine Bindings"); + + if ( IsBound() ) { + DBG_ASSERT(pBindings, "Keine Bindings"); + pBindings->Release(*this); + } + + nId = nNewId; + pNext = 0; + + if (pBindinx) + pBindings = pBindinx; + pBindings->RegisterInternal_Impl(*this); +} + //==================================================================== |