LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
dbaccess::DocumentEventNotifier_Impl Class Reference
Inheritance diagram for dbaccess::DocumentEventNotifier_Impl:
[legend]
Collaboration diagram for dbaccess::DocumentEventNotifier_Impl:
[legend]

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::OWeakObjectm_rDocument
 
::osl::Mutex & m_rMutex
 
bool m_bInitialized
 
bool m_bDisposed
 
std::shared_ptr<::comphelper::AsyncEventNotifierAutoJoinm_pEventBroadcaster
 
::comphelper::OInterfaceContainerHelper3< css::document::XEventListener > m_aLegacyEventListeners
 
::comphelper::OInterfaceContainerHelper3< XDocumentEventListener > m_aDocumentEventListeners
 

Detailed Description

Definition at line 47 of file documenteventnotifier.cxx.

Constructor & Destructor Documentation

◆ DocumentEventNotifier_Impl()

dbaccess::DocumentEventNotifier_Impl::DocumentEventNotifier_Impl ( ::cppu::OWeakObject _rBroadcasterDocument,
::osl::Mutex &  _rMutex 
)
inline

Definition at line 59 of file documenteventnotifier.cxx.

◆ ~DocumentEventNotifier_Impl()

virtual dbaccess::DocumentEventNotifier_Impl::~DocumentEventNotifier_Impl ( )
inlineprotectedvirtual

Definition at line 113 of file documenteventnotifier.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL dbaccess::DocumentEventNotifier_Impl::acquire ( )
overridevirtualnoexcept

Implements comphelper::IEventProcessor.

Definition at line 125 of file documenteventnotifier.cxx.

References m_refCount.

◆ addDocumentEventListener()

void dbaccess::DocumentEventNotifier_Impl::addDocumentEventListener ( const Reference< XDocumentEventListener > &  Listener)
inline

◆ addLegacyEventListener()

void dbaccess::DocumentEventNotifier_Impl::addLegacyEventListener ( const Reference< document::XEventListener > &  Listener)
inline

◆ disposing()

void dbaccess::DocumentEventNotifier_Impl::disposing ( )

◆ impl_notifyEvent_nothrow()

void dbaccess::DocumentEventNotifier_Impl::impl_notifyEvent_nothrow ( const DocumentEvent &  _rEvent)
private

◆ impl_notifyEventAsync_nothrow()

void dbaccess::DocumentEventNotifier_Impl::impl_notifyEventAsync_nothrow ( const DocumentEvent &  _rEvent)
private

◆ notifyDocumentEvent()

void dbaccess::DocumentEventNotifier_Impl::notifyDocumentEvent ( const OUString &  EventName,
const Reference< XController2 > &  ViewController,
const Any &  Supplement 
)
inline

Definition at line 98 of file documenteventnotifier.cxx.

References impl_notifyEvent_nothrow(), and m_rDocument.

◆ notifyDocumentEventAsync()

void dbaccess::DocumentEventNotifier_Impl::notifyDocumentEventAsync ( const OUString &  EventName,
const Reference< XController2 > &  ViewController,
const Any &  Supplement 
)
inline

Definition at line 105 of file documenteventnotifier.cxx.

References impl_notifyEventAsync_nothrow(), and m_rDocument.

◆ onDocumentInitialized()

void dbaccess::DocumentEventNotifier_Impl::onDocumentInitialized ( )

◆ processEvent()

void dbaccess::DocumentEventNotifier_Impl::processEvent ( const ::comphelper::AnyEvent _rEvent)
overrideprotectedvirtual

◆ release()

void SAL_CALL dbaccess::DocumentEventNotifier_Impl::release ( )
overridevirtualnoexcept

Implements comphelper::IEventProcessor.

Definition at line 130 of file documenteventnotifier.cxx.

References m_refCount.

◆ removeDocumentEventListener()

void dbaccess::DocumentEventNotifier_Impl::removeDocumentEventListener ( const Reference< XDocumentEventListener > &  Listener)
inline

◆ removeLegacyEventListener()

void dbaccess::DocumentEventNotifier_Impl::removeLegacyEventListener ( const Reference< document::XEventListener > &  Listener)
inline

Member Data Documentation

◆ m_aDocumentEventListeners

::comphelper::OInterfaceContainerHelper3<XDocumentEventListener> dbaccess::DocumentEventNotifier_Impl::m_aDocumentEventListeners
private

◆ m_aLegacyEventListeners

::comphelper::OInterfaceContainerHelper3<css::document::XEventListener> dbaccess::DocumentEventNotifier_Impl::m_aLegacyEventListeners
private

◆ m_bDisposed

bool dbaccess::DocumentEventNotifier_Impl::m_bDisposed
private

Definition at line 53 of file documenteventnotifier.cxx.

Referenced by disposing(), and processEvent().

◆ m_bInitialized

bool dbaccess::DocumentEventNotifier_Impl::m_bInitialized
private

◆ m_pEventBroadcaster

std::shared_ptr<::comphelper::AsyncEventNotifierAutoJoin> dbaccess::DocumentEventNotifier_Impl::m_pEventBroadcaster
private

◆ m_rDocument

::cppu::OWeakObject& dbaccess::DocumentEventNotifier_Impl::m_rDocument
private

◆ m_refCount

oslInterlockedCount dbaccess::DocumentEventNotifier_Impl::m_refCount
private

Definition at line 49 of file documenteventnotifier.cxx.

Referenced by acquire(), and release().

◆ m_rMutex

::osl::Mutex& dbaccess::DocumentEventNotifier_Impl::m_rMutex
private

Definition at line 51 of file documenteventnotifier.cxx.

Referenced by disposing(), and processEvent().


The documentation for this class was generated from the following file: