diff options
Diffstat (limited to 'sfx2/source/control')
-rw-r--r-- | sfx2/source/control/ctrlitem.cxx | 59 | ||||
-rw-r--r-- | sfx2/source/control/msgpool.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/control/request.cxx | 23 | ||||
-rw-r--r-- | sfx2/source/control/shell.cxx | 53 |
4 files changed, 0 insertions, 145 deletions
diff --git a/sfx2/source/control/ctrlitem.cxx b/sfx2/source/control/ctrlitem.cxx index d6dda852fa89..905c9dd4976b 100644 --- a/sfx2/source/control/ctrlitem.cxx +++ b/sfx2/source/control/ctrlitem.cxx @@ -168,26 +168,6 @@ DBG_CHKTHIS(SfxControllerItem, 0); pBindings->Register(*this); } -//==================================================================== - -void SfxControllerItem::UpdateSlot() - -/* [Description] - - Get the Status again. - - [Cross-reference] - - <SfxControllerItem::ClearCache()> -*/ - -{ - DBG_CHKTHIS(SfxControllerItem, 0); - DBG_ASSERT(pBindings, "No Bindings"); - - pBindings->Update( GetId() ); -} - //-------------------------------------------------------------------- void SfxControllerItem::ClearCache() @@ -382,45 +362,6 @@ SfxItemState SfxControllerItem::GetItemState : SFX_ITEM_AVAILABLE; } -//-------------------------------------------------------------------- - -SfxMapUnit SfxControllerItem::GetCoreMetric() const - -/* [Description] - - Gets the measurement unit from the competent pool, in which the Status - item exist. -*/ - -{ - SfxStateCache *pCache = pBindings->GetStateCache( nId ); - SfxDispatcher *pDispat = pBindings->GetDispatcher_Impl(); - - if ( !pDispat ) - { - SfxViewFrame* pViewFrame = SfxViewFrame::Current(); - if ( !pViewFrame ) - SfxViewFrame::GetFirst(); - if ( pViewFrame ) - pDispat = pViewFrame->GetDispatcher(); - } - - if ( pDispat && pCache ) - { - const SfxSlotServer *pServer = pCache->GetSlotServer( *pDispat ); - if ( pServer ) - { - SfxShell *pSh = pDispat->GetShell( pServer->GetShellLevel() ); - SfxItemPool &rPool = pSh->GetPool(); - sal_uInt16 nWhich = rPool.GetWhich( nId ); - return rPool.GetMetric( nWhich ); - } - } - - DBG_WARNING( "W1: Can not find ItemPool!" ); - return SFX_MAPUNIT_100TH_MM; -} - //------------------------------------------------------------------------ #ifdef _MSC_VER diff --git a/sfx2/source/control/msgpool.cxx b/sfx2/source/control/msgpool.cxx index 8b6cee9291b5..76b0e5e14dee 100644 --- a/sfx2/source/control/msgpool.cxx +++ b/sfx2/source/control/msgpool.cxx @@ -301,16 +301,6 @@ SfxInterface* SfxSlotPool::FirstInterface() //-------------------------------------------------------------------- -SfxInterface* SfxSlotPool::NextInterface() -{ - _nCurInterface++; - sal_uInt16 nFirstInterface = _pParentPool ? _pParentPool->_pInterfaces->size() : 0; - if ( _nCurInterface < nFirstInterface ) - return (*_pParentPool->_pInterfaces)[_nCurInterface]; - sal_uInt16 nInterface = _nCurInterface - nFirstInterface; - return nInterface < _pInterfaces->size() ? (*_pInterfaces)[nInterface] : 0; -} - const SfxSlot* SfxSlotPool::GetUnoSlot( const String& rName ) { const SfxSlot *pSlot = NULL; diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx index d4a8786d32ee..2bdc5d16e3a0 100644 --- a/sfx2/source/control/request.cxx +++ b/sfx2/source/control/request.cxx @@ -870,29 +870,6 @@ sal_uInt16 SfxRequest::GetModifier() const //-------------------------------------------------------------------- -void SfxRequest::SetTarget( const String &rTarget ) - -/* [Description] - - With this method the recording of the target object can be implemented. - - [Example] - - The BASIC-Methode 'Open' is although executed by the Shell 'Application' - but recorded on the Objekt 'Documents' (global): - - rReq.SetTarget( "Documents" ); - - This then leads to: - - Documents.Open( ... ) -*/ - -{ - pImp->aTarget = rTarget; - pImp->bUseTarget = sal_True; -} - void SfxRequest::AllowRecording( sal_Bool bSet ) { pImp->bAllowRecording = bSet; 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] |