StaticIsEnabledBroadcasting can only be true

This commit is contained in:
Caolán McNamara
2011-11-04 21:54:43 +00:00
parent 97f2f76452
commit f017740f50
4 changed files with 3 additions and 12 deletions

View File

@@ -134,8 +134,6 @@ public:
static SbxBase* Create( sal_uInt16, sal_uInt32=SBXCR_SBX );
static SbxObject* CreateObject( const String& );
// Sbx solution as replacement for SfxBroadcaster::Enable()
static sal_Bool StaticIsEnabledBroadcasting( void );
};
#ifndef SBX_BASE_DECL_DEFINED

View File

@@ -2157,7 +2157,7 @@ ErrCode SbMethod::Call( SbxValue* pRet, SbxVariable* pCaller )
// #100883 Own Broadcast for SbMethod
void SbMethod::Broadcast( sal_uIntPtr nHintId )
{
if( pCst && !IsSet( SBX_NO_BROADCAST ) && StaticIsEnabledBroadcasting() )
if( pCst && !IsSet( SBX_NO_BROADCAST ) )
{
// Because the method could be called from outside, test here once again
// the authorisation

View File

@@ -246,13 +246,6 @@ SbxObject* SbxBase::CreateObject( const XubString& rClass )
return pNew;
}
static sal_Bool bStaticEnableBroadcasting = sal_True;
sal_Bool SbxBase::StaticIsEnabledBroadcasting( void )
{
return bStaticEnableBroadcasting;
}
SbxBase* SbxBase::Load( SvStream& rStrm )
{
sal_uInt16 nSbxId, nFlags, nVer;

View File

@@ -174,7 +174,7 @@ SbxObject* SbxVariable::GetParent()
void SbxVariable::Broadcast( sal_uIntPtr nHintId )
{
if( pCst && !IsSet( SBX_NO_BROADCAST ) && StaticIsEnabledBroadcasting() )
if( pCst && !IsSet( SBX_NO_BROADCAST ) )
{
// Because the method could be called from outside, check the Da die Methode von aussen aufrufbar ist, hier noch einmal
// rights here again
@@ -619,7 +619,7 @@ SbxAlias::~SbxAlias()
void SbxAlias::Broadcast( sal_uIntPtr nHt )
{
if( xAlias.Is() && StaticIsEnabledBroadcasting() )
if( xAlias.Is() )
{
xAlias->SetParameters( GetParameters() );
if( nHt == SBX_HINT_DATAWANTED )