sfx2: bGlobalOnly is always false
Change-Id: Iaba1a77ae0ac7537f1dbf05fa097b3235b36f64d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167921 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
parent
554c06b2f6
commit
343ca5c8ae
2 changed files with 3 additions and 7 deletions
|
@ -101,7 +101,7 @@ friend class SfxBindings_Impl;
|
|||
|
||||
private:
|
||||
SAL_DLLPRIVATE SfxPoolItemHolder Execute_Impl( sal_uInt16 nSlot, const SfxPoolItem **pArgs, sal_uInt16 nModi,
|
||||
SfxCallMode nCall, const SfxPoolItem **pInternalArgs, bool bGlobalOnly=false);
|
||||
SfxCallMode nCall, const SfxPoolItem **pInternalArgs);
|
||||
SAL_DLLPRIVATE void SetSubBindings_Impl( SfxBindings* );
|
||||
SAL_DLLPRIVATE void UpdateSlotServer_Impl(); // Update SlotServer
|
||||
SAL_DLLPRIVATE std::optional<SfxItemSet> CreateSet_Impl(SfxStateCache& rCache, const SfxSlot* &pRealSlot,
|
||||
|
|
|
@ -876,7 +876,7 @@ bool SfxBindings::Execute( sal_uInt16 nId, const SfxPoolItem** ppItems, SfxCallM
|
|||
}
|
||||
|
||||
SfxPoolItemHolder SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem** ppItems, sal_uInt16 nModi, SfxCallMode nCallMode,
|
||||
const SfxPoolItem **ppInternalArgs, bool bGlobalOnly )
|
||||
const SfxPoolItem **ppInternalArgs )
|
||||
{
|
||||
SfxStateCache *pCache = GetStateCache( nId );
|
||||
if ( !pCache )
|
||||
|
@ -885,7 +885,7 @@ SfxPoolItemHolder SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem**
|
|||
while ( pBind )
|
||||
{
|
||||
if ( pBind->GetStateCache( nId ) )
|
||||
return pBind->Execute_Impl( nId, ppItems, nModi, nCallMode, ppInternalArgs, bGlobalOnly );
|
||||
return pBind->Execute_Impl( nId, ppItems, nModi, nCallMode, ppInternalArgs );
|
||||
pBind = pBind->pImpl->pSubBindings;
|
||||
}
|
||||
}
|
||||
|
@ -944,10 +944,6 @@ SfxPoolItemHolder SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem**
|
|||
pSlot = pServer->GetSlot();
|
||||
}
|
||||
|
||||
if ( bGlobalOnly )
|
||||
if ( dynamic_cast< const SfxModule *>( pShell ) == nullptr && dynamic_cast< const SfxApplication *>( pShell ) == nullptr && dynamic_cast< const SfxViewFrame *>( pShell ) == nullptr )
|
||||
return SfxPoolItemHolder();
|
||||
|
||||
SfxItemPool &rPool = pShell->GetPool();
|
||||
SfxRequest aReq( nId, nCallMode, rPool );
|
||||
aReq.SetModifier( nModi );
|
||||
|
|
Loading…
Reference in a new issue