LibreOffice Module dbaccess (master) 1
|
Public Member Functions | |
DocumentEventNotifier_Impl (::cppu::OWeakObject &_rBroadcasterDocument, ::osl::Mutex &_rMutex) | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
void | addLegacyEventListener (const Reference< document::XEventListener > &Listener) |
void | removeLegacyEventListener (const Reference< document::XEventListener > &Listener) |
void | addDocumentEventListener (const Reference< XDocumentEventListener > &Listener) |
void | removeDocumentEventListener (const Reference< XDocumentEventListener > &Listener) |
void | disposing () |
void | onDocumentInitialized () |
void | notifyDocumentEvent (const OUString &EventName, const Reference< XController2 > &ViewController, const Any &Supplement) |
void | notifyDocumentEventAsync (const OUString &EventName, const Reference< XController2 > &ViewController, const Any &Supplement) |
Public Member Functions inherited from comphelper::IEventProcessor | |
virtual void | processEvent (const AnyEvent &_rEvent)=0 |
virtual void SAL_CALL | acquire () noexcept=0 |
virtual void SAL_CALL | release () noexcept=0 |
Protected Member Functions | |
virtual | ~DocumentEventNotifier_Impl () |
virtual void | processEvent (const ::comphelper::AnyEvent &_rEvent) override |
Protected Member Functions inherited from comphelper::IEventProcessor | |
~IEventProcessor () | |
Private Member Functions | |
void | impl_notifyEvent_nothrow (const DocumentEvent &_rEvent) |
void | impl_notifyEventAsync_nothrow (const DocumentEvent &_rEvent) |
Private Attributes | |
oslInterlockedCount | m_refCount |
::cppu::OWeakObject & | m_rDocument |
::osl::Mutex & | m_rMutex |
bool | m_bInitialized |
bool | m_bDisposed |
std::shared_ptr<::comphelper::AsyncEventNotifierAutoJoin > | m_pEventBroadcaster |
::comphelper::OInterfaceContainerHelper3< css::document::XEventListener > | m_aLegacyEventListeners |
::comphelper::OInterfaceContainerHelper3< XDocumentEventListener > | m_aDocumentEventListeners |
Definition at line 47 of file documenteventnotifier.cxx.
|
inline |
Definition at line 59 of file documenteventnotifier.cxx.
|
inlineprotectedvirtual |
Definition at line 113 of file documenteventnotifier.cxx.
|
overridevirtualnoexcept |
Implements comphelper::IEventProcessor.
Definition at line 125 of file documenteventnotifier.cxx.
References m_refCount.
|
inline |
Definition at line 84 of file documenteventnotifier.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), and m_aDocumentEventListeners.
|
inline |
Definition at line 74 of file documenteventnotifier.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), and m_aLegacyEventListeners.
void dbaccess::DocumentEventNotifier_Impl::disposing | ( | ) |
Definition at line 136 of file documenteventnotifier.cxx.
References comphelper::SolarMutex::acquire(), aEvent, comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), Application::GetSolarMutex(), comphelper::SolarMutex::IsCurrentThread(), m_aDocumentEventListeners, m_aLegacyEventListeners, m_bDisposed, m_pEventBroadcaster, m_rDocument, m_rMutex, and comphelper::SolarMutex::release().
|
private |
Definition at line 185 of file documenteventnotifier.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_aDocumentEventListeners, m_aLegacyEventListeners, m_bInitialized, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().
Referenced by notifyDocumentEvent(), and processEvent().
|
private |
Definition at line 208 of file documenteventnotifier.cxx.
References comphelper::AsyncEventNotifierAutoJoin::launch(), m_bInitialized, m_pEventBroadcaster, and comphelper::AsyncEventNotifierAutoJoin::newAsyncEventNotifierAutoJoin().
Referenced by notifyDocumentEventAsync().
|
inline |
Definition at line 98 of file documenteventnotifier.cxx.
References impl_notifyEvent_nothrow(), and m_rDocument.
|
inline |
Definition at line 105 of file documenteventnotifier.cxx.
References impl_notifyEventAsync_nothrow(), and m_rDocument.
void dbaccess::DocumentEventNotifier_Impl::onDocumentInitialized | ( | ) |
Definition at line 172 of file documenteventnotifier.cxx.
References comphelper::AsyncEventNotifierAutoJoin::launch(), m_bInitialized, and m_pEventBroadcaster.
|
overrideprotectedvirtual |
Definition at line 224 of file documenteventnotifier.cxx.
References comphelper::EventHolder< typename EVENT_OBJECT >::getEventObject(), impl_notifyEvent_nothrow(), m_bDisposed, and m_rMutex.
|
overridevirtualnoexcept |
Implements comphelper::IEventProcessor.
Definition at line 130 of file documenteventnotifier.cxx.
References m_refCount.
|
inline |
Definition at line 89 of file documenteventnotifier.cxx.
References m_aDocumentEventListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
inline |
Definition at line 79 of file documenteventnotifier.cxx.
References m_aLegacyEventListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
private |
Definition at line 56 of file documenteventnotifier.cxx.
Referenced by addDocumentEventListener(), disposing(), impl_notifyEvent_nothrow(), and removeDocumentEventListener().
|
private |
Definition at line 55 of file documenteventnotifier.cxx.
Referenced by addLegacyEventListener(), disposing(), impl_notifyEvent_nothrow(), and removeLegacyEventListener().
|
private |
Definition at line 53 of file documenteventnotifier.cxx.
Referenced by disposing(), and processEvent().
|
private |
Definition at line 52 of file documenteventnotifier.cxx.
Referenced by impl_notifyEvent_nothrow(), impl_notifyEventAsync_nothrow(), and onDocumentInitialized().
|
private |
Definition at line 54 of file documenteventnotifier.cxx.
Referenced by disposing(), impl_notifyEventAsync_nothrow(), and onDocumentInitialized().
|
private |
Definition at line 50 of file documenteventnotifier.cxx.
Referenced by disposing(), notifyDocumentEvent(), and notifyDocumentEventAsync().
|
private |
Definition at line 49 of file documenteventnotifier.cxx.
|
private |
Definition at line 51 of file documenteventnotifier.cxx.
Referenced by disposing(), and processEvent().