LibreOffice Module basctl (master) 1
|
impl class for DocumentEventNotifier More...
Public Member Functions | |
Impl (const Impl &)=delete | |
Impl & | operator= (const Impl &)=delete |
Impl (DocumentEventListener &, Reference< XModel > const &rxDocument) | |
virtual | ~Impl () override |
virtual void SAL_CALL | documentEventOccured (const DocumentEvent &Event) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Event) override |
virtual void | disposing (std::unique_lock< std::mutex > &) override |
Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc > | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | dispose () noexcept final override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
Public Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
virtual | ~WeakComponentImplHelperBase () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual void | disposing (std::unique_lock< std::mutex > &) |
Public Member Functions inherited from comphelper::UnoImplBase | |
virtual | ~UnoImplBase () |
Private Member Functions | |
bool | impl_isDisposed_nothrow (std::unique_lock< std::mutex > &) const |
determines whether the instance is already disposed More... | |
void | impl_dispose_nothrow (std::unique_lock< std::mutex > &rGuard) |
disposes the instance More... | |
void | impl_listenerAction_nothrow (std::unique_lock< std::mutex > &rGuard, ListenerAction _eAction) |
registers or revokes the instance as listener at the global event broadcaster More... | |
Private Attributes | |
DocumentEventListener * | m_pListener |
Reference< XModel > | m_xModel |
Additional Inherited Members | |
Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Protected Attributes inherited from comphelper::WeakComponentImplHelperBase | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
Protected Attributes inherited from comphelper::UnoImplBase | |
std::mutex | m_aMutex |
bool | m_bDisposed |
impl class for DocumentEventNotifier
Definition at line 62 of file doceventnotifier.cxx.
|
delete |
basctl::DocumentEventNotifier::Impl::Impl | ( | DocumentEventListener & | rListener, |
Reference< XModel > const & | rxDocument | ||
) |
Definition at line 96 of file doceventnotifier.cxx.
References impl_listenerAction_nothrow(), comphelper::UnoImplBase::m_aMutex, m_refCount, and m_xModel.
|
overridevirtual |
Definition at line 106 of file doceventnotifier.cxx.
References basctl::DocumentEventNotifier::dispose(), and m_aMutex.
|
overridevirtual |
Definition at line 169 of file doceventnotifier.cxx.
References m_aMutex.
|
overridevirtual |
Reimplemented from comphelper::WeakComponentImplHelperBase.
Definition at line 178 of file doceventnotifier.cxx.
|
overridevirtual |
Definition at line 116 of file doceventnotifier.cxx.
References aDocument, aEvent, m_aMutex, basctl::DocumentEventListener::onDocumentClosed(), basctl::DocumentEventListener::onDocumentCreated(), basctl::DocumentEventListener::onDocumentModeChanged(), basctl::DocumentEventListener::onDocumentOpened(), basctl::DocumentEventListener::onDocumentSave(), basctl::DocumentEventListener::onDocumentSaveAs(), basctl::DocumentEventListener::onDocumentSaveAsDone(), basctl::DocumentEventListener::onDocumentSaveDone(), and basctl::DocumentEventListener::onDocumentTitleChanged().
|
private |
|
inlineprivate |
determines whether the instance is already disposed
Definition at line 83 of file doceventnotifier.cxx.
References m_pListener.
|
private |
registers or revokes the instance as listener at the global event broadcaster
Definition at line 190 of file doceventnotifier.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, comphelper::getProcessComponentContext(), and m_xModel.
Referenced by Impl().
|
private |
Definition at line 92 of file doceventnotifier.cxx.
Referenced by impl_isDisposed_nothrow().
|
private |
Definition at line 93 of file doceventnotifier.cxx.