StaticIsEnabledBroadcasting can only be true
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
@@ -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 )
|
||||
|
Reference in New Issue
Block a user