diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/objface.cxx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sfx2/source/control/objface.cxx b/sfx2/source/control/objface.cxx index fe5248375bb3..32c7e8e78a4e 100644 --- a/sfx2/source/control/objface.cxx +++ b/sfx2/source/control/objface.cxx @@ -619,28 +619,4 @@ bool SfxInterface::IsObjectBarVisible(sal_uInt16 nNo) const return pImpData->aObjectBars[nNo]->bVisible; } -const SfxInterface* SfxInterface::GetRealInterfaceForSlot( const SfxSlot *pRealSlot ) const -{ - SAL_WARN_IF( !pImpData->bRegistered, "sfx.control", "Interface not registered" ); - - const SfxInterface* pInterface = this; - - // The slot could also originate from the interface of a shell base class. - do - { - const SfxSlot *pLastSlot = (*pInterface)[pInterface->Count()-1]; - const SfxSlot *pFirstSlot = (*pInterface)[0]; - - // Is pInterface the Owner of pRealSlot ? - if ( pFirstSlot <= pRealSlot && pRealSlot <= pLastSlot ) - break; - - // Otherwise try the Interface of Super class - pInterface = pInterface->pGenoType; - } - while ( pInterface ); - - return pInterface; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |