LibreOffice Module basctl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
basctl::DocumentEventNotifier::Impl Class Reference

impl class for DocumentEventNotifier More...

Inheritance diagram for basctl::DocumentEventNotifier::Impl:
[legend]
Collaboration diagram for basctl::DocumentEventNotifier::Impl:
[legend]

Public Member Functions

 Impl (const Impl &)=delete
 
Imploperator= (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

DocumentEventListenerm_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
 

Detailed Description

impl class for DocumentEventNotifier

Definition at line 62 of file doceventnotifier.cxx.

Constructor & Destructor Documentation

◆ Impl() [1/2]

basctl::DocumentEventNotifier::Impl::Impl ( const Impl )
delete

◆ Impl() [2/2]

basctl::DocumentEventNotifier::Impl::Impl ( DocumentEventListener rListener,
Reference< XModel > const &  rxDocument 
)

◆ ~Impl()

basctl::DocumentEventNotifier::Impl::~Impl ( )
overridevirtual

Definition at line 106 of file doceventnotifier.cxx.

References basctl::DocumentEventNotifier::dispose(), and m_aMutex.

Member Function Documentation

◆ disposing() [1/2]

void SAL_CALL basctl::DocumentEventNotifier::Impl::disposing ( const css::lang::EventObject &  Event)
overridevirtual

Definition at line 169 of file doceventnotifier.cxx.

References m_aMutex.

◆ disposing() [2/2]

void basctl::DocumentEventNotifier::Impl::disposing ( std::unique_lock< std::mutex > &  rGuard)
overridevirtual

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 178 of file doceventnotifier.cxx.

◆ documentEventOccured()

void SAL_CALL basctl::DocumentEventNotifier::Impl::documentEventOccured ( const DocumentEvent &  Event)
overridevirtual

◆ impl_dispose_nothrow()

void basctl::DocumentEventNotifier::Impl::impl_dispose_nothrow ( std::unique_lock< std::mutex > &  rGuard)
private

disposes the instance

Definition at line 184 of file doceventnotifier.cxx.

References m_xModel.

◆ impl_isDisposed_nothrow()

bool basctl::DocumentEventNotifier::Impl::impl_isDisposed_nothrow ( std::unique_lock< std::mutex > &  ) const
inlineprivate

determines whether the instance is already disposed

Definition at line 83 of file doceventnotifier.cxx.

References m_pListener.

◆ impl_listenerAction_nothrow()

void basctl::DocumentEventNotifier::Impl::impl_listenerAction_nothrow ( std::unique_lock< std::mutex > &  rGuard,
ListenerAction  _eAction 
)
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().

◆ operator=()

Impl & basctl::DocumentEventNotifier::Impl::operator= ( const Impl )
delete

Member Data Documentation

◆ m_pListener

DocumentEventListener* basctl::DocumentEventNotifier::Impl::m_pListener
private

Definition at line 92 of file doceventnotifier.cxx.

Referenced by impl_isDisposed_nothrow().

◆ m_xModel

Reference< XModel > basctl::DocumentEventNotifier::Impl::m_xModel
private

Definition at line 93 of file doceventnotifier.cxx.


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