23#include <com/sun/star/document/XEventListener.hpp>
24#include <com/sun/star/document/XDocumentEventListener.hpp>
36 class DocumentEventNotifier_Impl;
72 const OUString& EventName,
73 const css::uno::Reference< css::frame::XController2 >& _rxViewController,
74 const css::uno::Any& Supplement
85 const OUString& EventName,
86 const css::uno::Reference< css::frame::XController2 >& ViewController,
87 const css::uno::Any& Supplement
98 const char* _pAsciiEventName,
99 const css::uno::Reference< css::frame::XController2 >& _rxViewController =
nullptr,
100 const css::uno::Any& _rSupplement = css::uno::Any()
103 notifyDocumentEvent( OUString::createFromAscii( _pAsciiEventName ), _rxViewController, _rSupplement );
114 const char* _pAsciiEventName,
115 const css::uno::Reference< css::frame::XController2 >& _rxViewController =
nullptr,
116 const css::uno::Any& _rSupplement = css::uno::Any()
void notifyDocumentEventAsync(const char *_pAsciiEventName, const css::uno::Reference< css::frame::XController2 > &_rxViewController=nullptr, const css::uno::Any &_rSupplement=css::uno::Any())
notifies a document event to all registered listeners, asynchronously
DocumentEventNotifier(::cppu::OWeakObject &_rBroadcasterDocument, ::osl::Mutex &_rMutex)
void addDocumentEventListener(const css::uno::Reference< css::document::XDocumentEventListener > &Listener)
void onDocumentInitialized()
tells the instance that its document is completely initialized now.
void disposing()
disposes the instance @precond the mutex is not locked
void addLegacyEventListener(const css::uno::Reference< css::document::XEventListener > &Listener)
void notifyDocumentEvent(const char *_pAsciiEventName, const css::uno::Reference< css::frame::XController2 > &_rxViewController=nullptr, const css::uno::Any &_rSupplement=css::uno::Any())
notifies a document event to all registered listeners
void notifyDocumentEvent(const OUString &EventName, const css::uno::Reference< css::frame::XController2 > &_rxViewController, const css::uno::Any &Supplement)
notifies a document event described by the given parameters
::rtl::Reference< DocumentEventNotifier_Impl > m_pImpl
void removeDocumentEventListener(const css::uno::Reference< css::document::XDocumentEventListener > &Listener)
void notifyDocumentEventAsync(const OUString &EventName, const css::uno::Reference< css::frame::XController2 > &ViewController, const css::uno::Any &Supplement)
notifies a document event, described by the given parameters, asynchronously
void removeLegacyEventListener(const css::uno::Reference< css::document::XEventListener > &Listener)