diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-24 12:06:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-24 12:06:34 +0200 |
commit | 07d85c44998f42545175ee77c192b901b52a30ca (patch) | |
tree | 81c232567c3170fb79e1032b98d6cd9e8cf2a040 /basic/source | |
parent | 1d1c0632d2de3180abaa9782404c0aea1f1b30af (diff) |
remove SFX_NOTIFY macro
it has not served any purpose since we switched to using normal C++ RTTI
for the SfxHint objects
Change-Id: Ic81353bcb7863ce892eb75296248ca14d8fd6c86
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/classes/sb.cxx | 10 | ||||
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 20 | ||||
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 8 | ||||
-rw-r--r-- | basic/source/inc/sbunoobj.hxx | 11 | ||||
-rw-r--r-- | basic/source/inc/stdobj.hxx | 3 | ||||
-rw-r--r-- | basic/source/runtime/stdobj.cxx | 5 | ||||
-rw-r--r-- | basic/source/runtime/stdobj1.cxx | 21 | ||||
-rw-r--r-- | basic/source/sbx/sbxcoll.cxx | 7 | ||||
-rw-r--r-- | basic/source/sbx/sbxobj.cxx | 3 | ||||
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 3 |
10 files changed, 37 insertions, 54 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index e1730d758dbb..f89c0884a945 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -789,8 +789,7 @@ SbClassModuleObject::~SbClassModuleObject() pBreaks = NULL; } -void SbClassModuleObject::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbClassModuleObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { handleProcedureProperties( rBC, rHint ); } @@ -2120,8 +2119,7 @@ SbxVariable* BasicCollection::Find( const OUString& rName, SbxClassType t ) return pFind; } -void BasicCollection::SFX_NOTIFY( SfxBroadcaster& rCst, const TypeId& rId1, - const SfxHint& rHint, const TypeId& rId2 ) +void BasicCollection::Notify( SfxBroadcaster& rCst, const SfxHint& rHint ) { const SbxHint* p = dynamic_cast<const SbxHint*>(&rHint); if( p ) @@ -2157,7 +2155,7 @@ void BasicCollection::SFX_NOTIFY( SfxBroadcaster& rCst, const TypeId& rId1, } else { - SbxObject::SFX_NOTIFY( rCst, rId1, rHint, rId2 ); + SbxObject::Notify( rCst, rHint ); } return; } @@ -2175,7 +2173,7 @@ void BasicCollection::SFX_NOTIFY( SfxBroadcaster& rCst, const TypeId& rId1, } } } - SbxObject::SFX_NOTIFY( rCst, rId1, rHint, rId2 ); + SbxObject::Notify( rCst, rHint ); } sal_Int32 BasicCollection::implGetIndex( SbxVariable* pIndexVar ) diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 9cd21d04b2e5..2475e28624d4 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -2026,8 +2026,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj ) TYPEINIT1(AutomationNamedArgsSbxArray,SbxArray) // Implementation SbUnoObject -void SbUnoObject::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbUnoObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { if( bNeedIntrospection ) doIntrospection(); @@ -2326,7 +2325,7 @@ void SbUnoObject::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, } } else - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); } } @@ -3612,8 +3611,7 @@ SbxVariable* SbUnoService::Find( const OUString& rName, SbxClassType ) return pRes; } -void SbUnoService::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbUnoService::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); if( pHint ) @@ -3762,7 +3760,7 @@ void SbUnoService::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, } } else - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); } } @@ -3833,8 +3831,7 @@ SbUnoSingleton::SbUnoSingleton( const OUString& aName_, QuickInsert( static_cast<SbxVariable*>(xGetMethodRef) ); } -void SbUnoSingleton::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbUnoSingleton::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); if( pHint ) @@ -3879,7 +3876,7 @@ void SbUnoSingleton::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, } else { - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); } } @@ -5005,8 +5002,7 @@ OUString SbUnoStructRefObject::Impl_DumpProperties() return aRet.makeStringAndClear(); } -void SbUnoStructRefObject::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { if ( !mbMemberCacheInit ) initMemberCache(); @@ -5077,7 +5073,7 @@ void SbUnoStructRefObject::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCTyp } } else - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); } } diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 59f40049a58c..a2b6f9aa4d42 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -741,8 +741,7 @@ void SbModule::SetParent( SbxObject* p ) pParent = p; } -void SbModule::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbModule::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); if( pHint ) @@ -861,7 +860,7 @@ void SbModule::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, } if( bForwardToSbxObject ) { - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); } } } @@ -2230,8 +2229,7 @@ SbObjModule::Find( const OUString& rName, SbxClassType t ) return pVar; } -void SbObjModule::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbObjModule::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { SbModule::handleProcedureProperties( rBC, rHint ); } diff --git a/basic/source/inc/sbunoobj.hxx b/basic/source/inc/sbunoobj.hxx index 12b9cd73ef96..879e0c08d00f 100644 --- a/basic/source/inc/sbunoobj.hxx +++ b/basic/source/inc/sbunoobj.hxx @@ -97,7 +97,7 @@ public: // give out value ::com::sun::star::uno::Any getUnoAny(); - void SFX_NOTIFY( SfxBroadcaster&, const TypeId&, const SfxHint& rHint, const TypeId& ) SAL_OVERRIDE; + void Notify( SfxBroadcaster&, const SfxHint& rHint ) SAL_OVERRIDE; }; class SbUnoObject: public SbxObject @@ -139,7 +139,7 @@ public: ::com::sun::star::uno::Reference< ::com::sun::star::beans::XIntrospectionAccess > getIntrospectionAccess() { return mxUnoAccess; } ::com::sun::star::uno::Reference< ::com::sun::star::script::XInvocation > getInvocation() { return mxInvocation; } - void SFX_NOTIFY( SfxBroadcaster&, const TypeId&, const SfxHint& rHint, const TypeId& ) SAL_OVERRIDE; + void Notify( SfxBroadcaster&, const SfxHint& rHint ) SAL_OVERRIDE; bool isNativeCOMObject() { return bNativeCOMObject; } @@ -265,7 +265,7 @@ public: virtual SbxVariable* Find( const OUString&, SbxClassType ) SAL_OVERRIDE; - void SFX_NOTIFY( SfxBroadcaster&, const TypeId&, const SfxHint& rHint, const TypeId& ) SAL_OVERRIDE; + void Notify( SfxBroadcaster&, const SfxHint& rHint ) SAL_OVERRIDE; }; SbUnoService* findUnoService( const OUString& rName ); @@ -304,7 +304,7 @@ public: SbUnoSingleton( const OUString& aName_, const ::com::sun::star::uno::Reference< ::com::sun::star::reflection::XSingletonTypeDescription >& xSingletonTypeDesc ); - void SFX_NOTIFY( SfxBroadcaster&, const TypeId&, const SfxHint& rHint, const TypeId& ) SAL_OVERRIDE; + void Notify( SfxBroadcaster&, const SfxHint& rHint ) SAL_OVERRIDE; }; SbUnoSingleton* findUnoSingleton( const OUString& rName ); @@ -374,8 +374,7 @@ class BasicCollection : public SbxObject void Initialize(); virtual ~BasicCollection(); - virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) SAL_OVERRIDE; + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE; sal_Int32 implGetIndex( SbxVariable* pIndexVar ); sal_Int32 implGetIndexForName( const OUString& rName ); void CollAdd( SbxArray* pPar_ ); diff --git a/basic/source/inc/stdobj.hxx b/basic/source/inc/stdobj.hxx index ccd4d70f4ca2..619b59c344a4 100644 --- a/basic/source/inc/stdobj.hxx +++ b/basic/source/inc/stdobj.hxx @@ -32,8 +32,7 @@ class SbiStdObject : public SbxObject virtual ~SbiStdObject(); using SbxVariable::GetInfo; static SbxInfo* GetInfo( short ); - virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) SAL_OVERRIDE; + virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE; public: SbiStdObject( const OUString&, StarBASIC* ); virtual SbxVariable* Find( const OUString&, SbxClassType ) SAL_OVERRIDE; diff --git a/basic/source/runtime/stdobj.cxx b/basic/source/runtime/stdobj.cxx index f66cb403d9bc..05700d679beb 100644 --- a/basic/source/runtime/stdobj.cxx +++ b/basic/source/runtime/stdobj.cxx @@ -816,8 +816,7 @@ void SbiStdObject::SetModified( bool ) } -void SbiStdObject::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbiStdObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); @@ -850,7 +849,7 @@ void SbiStdObject::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, } } } - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); } } diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx index e64db766572a..1042265d7f66 100644 --- a/basic/source/runtime/stdobj1.cxx +++ b/basic/source/runtime/stdobj1.cxx @@ -140,8 +140,7 @@ SbxVariable* SbStdPicture::Find( const OUString& rName, SbxClassType t ) -void SbStdPicture::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbStdPicture::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); @@ -150,7 +149,7 @@ void SbStdPicture::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, { if( pHint->GetId() == SBX_HINT_INFOWANTED ) { - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); return; } @@ -167,7 +166,7 @@ void SbStdPicture::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, case ATTR_IMP_HEIGHT: PropHeight( pVar, pPar_, bWrite ); return; } - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); } } @@ -267,8 +266,7 @@ SbxVariable* SbStdFont::Find( const OUString& rName, SbxClassType t ) return SbxObject::Find( rName, t ); } -void SbStdFont::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbStdFont::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); @@ -276,7 +274,7 @@ void SbStdFont::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, { if( pHint->GetId() == SBX_HINT_INFOWANTED ) { - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); return; } @@ -296,7 +294,7 @@ void SbStdFont::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, case ATTR_IMP_NAME: PropName( pVar, pPar_, bWrite ); return; } - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); } } @@ -436,8 +434,7 @@ SbxVariable* SbStdClipboard::Find( const OUString& rName, SbxClassType t ) -void SbStdClipboard::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, - const SfxHint& rHint, const TypeId& rHintType ) +void SbStdClipboard::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); @@ -445,7 +442,7 @@ void SbStdClipboard::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, { if( pHint->GetId() == SBX_HINT_INFOWANTED ) { - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); return; } @@ -465,7 +462,7 @@ void SbStdClipboard::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, case METH_SETTEXT: MethSetText( pVar, pPar_, bWrite ); return; } - SbxObject::SFX_NOTIFY( rBC, rBCType, rHint, rHintType ); + SbxObject::Notify( rBC, rHint ); } } diff --git a/basic/source/sbx/sbxcoll.cxx b/basic/source/sbx/sbxcoll.cxx index 09463459a84b..5b856ee36e7e 100644 --- a/basic/source/sbx/sbxcoll.cxx +++ b/basic/source/sbx/sbxcoll.cxx @@ -114,8 +114,7 @@ SbxVariable* SbxCollection::Find( const OUString& rName, SbxClassType t ) } } -void SbxCollection::SFX_NOTIFY( SfxBroadcaster& rCst, const TypeId& rId1, - const SfxHint& rHint, const TypeId& rId2 ) +void SbxCollection::Notify( SfxBroadcaster& rCst, const SfxHint& rHint ) { const SbxHint* p = dynamic_cast<const SbxHint*>(&rHint); if( p ) @@ -154,12 +153,12 @@ void SbxCollection::SFX_NOTIFY( SfxBroadcaster& rCst, const TypeId& rId1, } else { - SbxObject::SFX_NOTIFY( rCst, rId1, rHint, rId2 ); + SbxObject::Notify( rCst, rHint ); } return; } } - SbxObject::SFX_NOTIFY( rCst, rId1, rHint, rId2 ); + SbxObject::Notify( rCst, rHint ); } // Default: argument is object diff --git a/basic/source/sbx/sbxobj.cxx b/basic/source/sbx/sbxobj.cxx index 69a552cca1b4..68be53e1c3f0 100644 --- a/basic/source/sbx/sbxobj.cxx +++ b/basic/source/sbx/sbxobj.cxx @@ -135,8 +135,7 @@ void SbxObject::Clear() SetModified( false ); } -void SbxObject::SFX_NOTIFY( SfxBroadcaster&, const TypeId&, - const SfxHint& rHint, const TypeId& ) +void SbxObject::Notify( SfxBroadcaster&, const SfxHint& rHint ) { const SbxHint* p = dynamic_cast<const SbxHint*>(&rHint); if( p ) diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx index 780b817cf6b3..e01c3d41fa58 100644 --- a/basic/source/sbx/sbxvar.cxx +++ b/basic/source/sbx/sbxvar.cxx @@ -688,8 +688,7 @@ void SbxAlias::Broadcast( sal_uIntPtr nHt ) } } -void SbxAlias::SFX_NOTIFY( SfxBroadcaster&, const TypeId&, - const SfxHint& rHint, const TypeId& ) +void SbxAlias::Notify( SfxBroadcaster&, const SfxHint& rHint ) { const SbxHint* p = dynamic_cast<const SbxHint*>(&rHint); if( p && p->GetId() == SBX_HINT_DYING ) |