diff options
Diffstat (limited to 'sfx2/source/notify')
-rw-r--r-- | sfx2/source/notify/eventsupplier.cxx | 36 | ||||
-rw-r--r-- | sfx2/source/notify/globalevents.cxx | 42 | ||||
-rw-r--r-- | sfx2/source/notify/hintpost.cxx | 12 |
3 files changed, 45 insertions, 45 deletions
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx index 4ed2da689951..5c49ba694b9f 100644 --- a/sfx2/source/notify/eventsupplier.cxx +++ b/sfx2/source/notify/eventsupplier.cxx @@ -47,16 +47,16 @@ #include <sfx2/frame.hxx> #include <macroloader.hxx> -//-------------------------------------------------------------------------------------------------------- + #define MACRO_PRFIX "macro://" #define MACRO_POSTFIX "()" using namespace css; -//-------------------------------------------------------------------------------------------------------- + // --- XNameReplace --- -//-------------------------------------------------------------------------------------------------------- + void SAL_CALL SfxEvents_Impl::replaceByName( const OUString & aName, const uno::Any & rElement ) throw( lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException ) @@ -112,9 +112,9 @@ void SAL_CALL SfxEvents_Impl::replaceByName( const OUString & aName, const uno:: throw container::NoSuchElementException(); } -//-------------------------------------------------------------------------------------------------------- + // --- XNameAccess --- -//-------------------------------------------------------------------------------------------------------- + uno::Any SAL_CALL SfxEvents_Impl::getByName( const OUString& aName ) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException ) @@ -134,13 +134,13 @@ uno::Any SAL_CALL SfxEvents_Impl::getByName( const OUString& aName ) throw container::NoSuchElementException(); } -//-------------------------------------------------------------------------------------------------------- + uno::Sequence< OUString > SAL_CALL SfxEvents_Impl::getElementNames() throw ( uno::RuntimeException ) { return maEventNames; } -//-------------------------------------------------------------------------------------------------------- + sal_Bool SAL_CALL SfxEvents_Impl::hasByName( const OUString& aName ) throw ( uno::RuntimeException ) { ::osl::MutexGuard aGuard( maMutex ); @@ -158,16 +158,16 @@ sal_Bool SAL_CALL SfxEvents_Impl::hasByName( const OUString& aName ) throw ( uno return sal_False; } -//-------------------------------------------------------------------------------------------------------- + // --- XElementAccess ( parent of XNameAccess ) --- -//-------------------------------------------------------------------------------------------------------- + uno::Type SAL_CALL SfxEvents_Impl::getElementType() throw ( uno::RuntimeException ) { uno::Type aElementType = ::getCppuType( (const uno::Sequence < beans::PropertyValue > *)0 ); return aElementType; } -//-------------------------------------------------------------------------------------------------------- + sal_Bool SAL_CALL SfxEvents_Impl::hasElements() throw ( uno::RuntimeException ) { ::osl::MutexGuard aGuard( maMutex ); @@ -271,9 +271,9 @@ void SfxEvents_Impl::Execute( uno::Any& aEventData, const document::DocumentEven } } -//-------------------------------------------------------------------------------------------------------- + // --- ::document::XEventListener --- -//-------------------------------------------------------------------------------------------------------- + void SAL_CALL SfxEvents_Impl::notifyEvent( const document::EventObject& aEvent ) throw( uno::RuntimeException ) { ::osl::ClearableMutexGuard aGuard( maMutex ); @@ -301,9 +301,9 @@ void SAL_CALL SfxEvents_Impl::notifyEvent( const document::EventObject& aEvent ) Execute( aEventData, document::DocumentEvent(aEvent.Source, aEvent.EventName, NULL, uno::Any()), mpObjShell ); } -//-------------------------------------------------------------------------------------------------------- + // --- ::lang::XEventListener --- -//-------------------------------------------------------------------------------------------------------- + void SAL_CALL SfxEvents_Impl::disposing( const lang::EventObject& /*Source*/ ) throw( uno::RuntimeException ) { ::osl::MutexGuard aGuard( maMutex ); @@ -315,8 +315,8 @@ void SAL_CALL SfxEvents_Impl::disposing( const lang::EventObject& /*Source*/ ) t } } -//-------------------------------------------------------------------------------------------------------- -//-------------------------------------------------------------------------------------------------------- + + SfxEvents_Impl::SfxEvents_Impl( SfxObjectShell* pShell, uno::Reference< document::XEventBroadcaster > xBroadcaster ) { @@ -335,12 +335,12 @@ SfxEvents_Impl::SfxEvents_Impl( SfxObjectShell* pShell, mxBroadcaster->addEventListener( this ); } -//-------------------------------------------------------------------------------------------------------- + SfxEvents_Impl::~SfxEvents_Impl() { } -//-------------------------------------------------------------------------------------------------------- + SvxMacro* SfxEvents_Impl::ConvertToMacro( const uno::Any& rElement, SfxObjectShell* pObjShell, sal_Bool bNormalizeMacro ) { SvxMacro* pMacro = NULL; diff --git a/sfx2/source/notify/globalevents.cxx b/sfx2/source/notify/globalevents.cxx index 367e8adf700a..c02bab054160 100644 --- a/sfx2/source/notify/globalevents.cxx +++ b/sfx2/source/notify/globalevents.cxx @@ -227,7 +227,7 @@ uno::Any SAL_CALL ModelCollectionEnumeration::nextElement() return uno::makeAny(xModel); } -//----------------------------------------------------------------------------- + SfxGlobalEvents_Impl::SfxGlobalEvents_Impl( const uno::Reference < uno::XComponentContext >& rxContext) : ModelCollectionMutexBase( ) , m_xJobExecutorListener( task::theJobExecutor::get( rxContext ), uno::UNO_QUERY_THROW ) @@ -242,12 +242,12 @@ SfxGlobalEvents_Impl::SfxGlobalEvents_Impl( const uno::Reference < uno::XCompone m_refCount--; } -//----------------------------------------------------------------------------- + SfxGlobalEvents_Impl::~SfxGlobalEvents_Impl() { } -//----------------------------------------------------------------------------- + uno::Reference< container::XNameReplace > SAL_CALL SfxGlobalEvents_Impl::getEvents() throw(uno::RuntimeException) { @@ -257,7 +257,7 @@ uno::Reference< container::XNameReplace > SAL_CALL SfxGlobalEvents_Impl::getEven // <- SAFE } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::addEventListener(const uno::Reference< document::XEventListener >& xListener) throw(uno::RuntimeException) { @@ -265,7 +265,7 @@ void SAL_CALL SfxGlobalEvents_Impl::addEventListener(const uno::Reference< docum m_aLegacyListeners.addInterface(xListener); } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::removeEventListener(const uno::Reference< document::XEventListener >& xListener) throw(uno::RuntimeException) { @@ -273,21 +273,21 @@ void SAL_CALL SfxGlobalEvents_Impl::removeEventListener(const uno::Reference< do m_aLegacyListeners.removeInterface(xListener); } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::addDocumentEventListener( const uno::Reference< document::XDocumentEventListener >& _Listener ) throw(uno::RuntimeException) { m_aDocumentListeners.addInterface( _Listener ); } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::removeDocumentEventListener( const uno::Reference< document::XDocumentEventListener >& _Listener ) throw(uno::RuntimeException) { m_aDocumentListeners.removeInterface( _Listener ); } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::notifyDocumentEvent( const OUString& /*_EventName*/, const uno::Reference< frame::XController2 >& /*_ViewController*/, const uno::Any& /*_Supplement*/ ) throw (lang::IllegalArgumentException, lang::NoSupportException, uno::RuntimeException) @@ -296,7 +296,7 @@ void SAL_CALL SfxGlobalEvents_Impl::notifyDocumentEvent( const OUString& /*_Even throw lang::NoSupportException(OUString(), *this); } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::notifyEvent(const document::EventObject& aEvent) throw(uno::RuntimeException) { @@ -306,7 +306,7 @@ void SAL_CALL SfxGlobalEvents_Impl::notifyEvent(const document::EventObject& aEv implts_notifyListener(aDocEvent); } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::documentEventOccured( const document::DocumentEvent& _Event ) throw (uno::RuntimeException) { @@ -315,7 +315,7 @@ void SAL_CALL SfxGlobalEvents_Impl::documentEventOccured( const document::Docume implts_notifyListener(_Event); } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::disposing(const lang::EventObject& aEvent) throw(uno::RuntimeException) { @@ -330,7 +330,7 @@ void SAL_CALL SfxGlobalEvents_Impl::disposing(const lang::EventObject& aEvent) // <- SAFE } -//----------------------------------------------------------------------------- + sal_Bool SAL_CALL SfxGlobalEvents_Impl::has(const uno::Any& aElement) throw (uno::RuntimeException) { @@ -350,7 +350,7 @@ sal_Bool SAL_CALL SfxGlobalEvents_Impl::has(const uno::Any& aElement) return bHas; } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::insert( const uno::Any& aElement ) throw (lang::IllegalArgumentException , container::ElementExistException, @@ -387,7 +387,7 @@ void SAL_CALL SfxGlobalEvents_Impl::insert( const uno::Any& aElement ) } } -//----------------------------------------------------------------------------- + void SAL_CALL SfxGlobalEvents_Impl::remove( const uno::Any& aElement ) throw (lang::IllegalArgumentException , container::NoSuchElementException, @@ -424,7 +424,7 @@ void SAL_CALL SfxGlobalEvents_Impl::remove( const uno::Any& aElement ) } } -//----------------------------------------------------------------------------- + uno::Reference< container::XEnumeration > SAL_CALL SfxGlobalEvents_Impl::createEnumeration() throw (uno::RuntimeException) { @@ -441,14 +441,14 @@ uno::Reference< container::XEnumeration > SAL_CALL SfxGlobalEvents_Impl::createE return xEnum; } -//----------------------------------------------------------------------------- + uno::Type SAL_CALL SfxGlobalEvents_Impl::getElementType() throw (uno::RuntimeException) { return ::getCppuType(static_cast< uno::Reference< frame::XModel >* >(NULL)); } -//----------------------------------------------------------------------------- + sal_Bool SAL_CALL SfxGlobalEvents_Impl::hasElements() throw (uno::RuntimeException) { @@ -458,7 +458,7 @@ sal_Bool SAL_CALL SfxGlobalEvents_Impl::hasElements() // <- SAFE } -//----------------------------------------------------------------------------- + void SfxGlobalEvents_Impl::implts_notifyJobExecution(const document::EventObject& aEvent) { try @@ -471,7 +471,7 @@ void SfxGlobalEvents_Impl::implts_notifyJobExecution(const document::EventObject {} } -//----------------------------------------------------------------------------- + void SfxGlobalEvents_Impl::implts_checkAndExecuteEventBindings(const document::DocumentEvent& aEvent) { try @@ -497,7 +497,7 @@ void SfxGlobalEvents_Impl::implts_checkAndExecuteEventBindings(const document::D } } -//----------------------------------------------------------------------------- + void SfxGlobalEvents_Impl::implts_notifyListener(const document::DocumentEvent& aEvent) { // containers are threadsafe @@ -507,7 +507,7 @@ void SfxGlobalEvents_Impl::implts_notifyListener(const document::DocumentEvent& m_aDocumentListeners.notifyEach( &document::XDocumentEventListener::documentEventOccured, aEvent ); } -//----------------------------------------------------------------------------- + // not threadsafe ... must be locked from outside! TModelList::iterator SfxGlobalEvents_Impl::impl_searchDoc(const uno::Reference< frame::XModel >& xModel) { diff --git a/sfx2/source/notify/hintpost.cxx b/sfx2/source/notify/hintpost.cxx index 359a8a831506..fddafb36f30c 100644 --- a/sfx2/source/notify/hintpost.cxx +++ b/sfx2/source/notify/hintpost.cxx @@ -23,7 +23,7 @@ #include <sfx2/app.hxx> #include "sfxtypes.hxx" -//-------------------------------------------------------------------- + SfxHintPoster::SfxHintPoster( const GenLink& rLink ): aLink(rLink) @@ -31,13 +31,13 @@ SfxHintPoster::SfxHintPoster( const GenLink& rLink ): } -//-------------------------------------------------------------------- + SfxHintPoster::~SfxHintPoster() { } -//-------------------------------------------------------------------- + void SfxHintPoster::Post( SfxHint* pHintToPost ) { @@ -45,7 +45,7 @@ void SfxHintPoster::Post( SfxHint* pHintToPost ) AddRef(); } -//-------------------------------------------------------------------- + IMPL_LINK_INLINE_START( SfxHintPoster, DoEvent_Impl, SfxHint *, pPostedHint ) { @@ -55,14 +55,14 @@ IMPL_LINK_INLINE_START( SfxHintPoster, DoEvent_Impl, SfxHint *, pPostedHint ) } IMPL_LINK_INLINE_END( SfxHintPoster, DoEvent_Impl, SfxHint *, pPostedHint ) -//-------------------------------------------------------------------- + void SfxHintPoster::Event( SfxHint* pPostedHint ) { aLink.Call( pPostedHint ); } -//-------------------------------------------------------------------- + void SfxHintPoster::SetEventHdl( const GenLink& rLink ) { |