diff options
Diffstat (limited to 'sfx2/source/control/shell.cxx')
-rw-r--r-- | sfx2/source/control/shell.cxx | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index ecc5fb4cc03e..ecda3acd192c 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -308,45 +308,6 @@ const SfxPoolItem* SfxShell::GetItem //-------------------------------------------------------------------- -void SfxShell::RemoveItem -( - sal_uInt16 nSlotId // Slot-Id of the deleting <SfxPoolItem>s -) - -/* [Description] - - With this method the general available subclasses instances of - <cSfxPoolItem> from the SfxShell are removed. - - The stored instance is deleted. - - [Cross-reference] - - <SfxShell::PutItem(const SfxPoolItem&)> - <SfxShell::GetItem(sal_uInt16)> -*/ - -{ - for ( sal_uInt16 nPos = 0; nPos < pImp->aItems.Count(); ++nPos ) - if ( pImp->aItems.GetObject(nPos)->Which() == nSlotId ) - { - // Remove and delete Item - SfxPoolItem *pItem = pImp->aItems.GetObject(nPos); - delete pItem; - pImp->aItems.Remove(nPos); - - // if active, notify Bindings - SfxDispatcher *pDispat = GetDispatcher(); - if ( pDispat ) - { - SfxVoidItem aVoid( nSlotId ); - pDispat->GetBindings()->Broadcast( SfxPoolItemHint( &aVoid ) ); - } - } -} - -//-------------------------------------------------------------------- - void SfxShell::PutItem ( const SfxPoolItem& rItem /* Instance, of which a copy is created, @@ -430,20 +391,6 @@ SfxInterface* SfxShell::GetInterface() const //-------------------------------------------------------------------- -SfxBroadcaster* SfxShell::GetBroadcaster() - -/* [Description] - - Returns a SfxBroadcaster for this SfxShell instance until the class of - SfxShell is derived by SfxBroadcaster. -*/ - -{ - return pImp; -} - -//-------------------------------------------------------------------- - ::svl::IUndoManager* SfxShell::GetUndoManager() /* [Description] |