LibreOffice Module extensions (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
bib::OComponentAdapterBase Class Referenceabstract

#include <loadlisteneradapter.hxx>

Inheritance diagram for bib::OComponentAdapterBase:
[legend]
Collaboration diagram for bib::OComponentAdapterBase:
[legend]

Public Member Functions

 OComponentAdapterBase (const css::uno::Reference< css::lang::XComponent > &_rxComp)
 
void Init (OComponentListener *_pListener)
 
virtual void SAL_CALL acquire () noexcept=0
 
virtual void SAL_CALL release () noexcept=0
 
void dispose ()
 dispose the object - stop listening and such More...
 

Protected Member Functions

const css::uno::Reference< css::lang::XComponent > & getComponent () const
 
OComponentListenergetListener ()
 
virtual void startComponentListening ()=0
 
virtual ~OComponentAdapterBase ()
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source)
 

Private Member Functions

virtual void disposing ()=0
 

Private Attributes

css::uno::Reference< css::lang::XComponent > m_xComponent
 
OComponentListenerm_pListener
 
bool m_bListening: 1
 

Friends

class OComponentListener
 

Detailed Description

Definition at line 54 of file loadlisteneradapter.hxx.

Constructor & Destructor Documentation

◆ ~OComponentAdapterBase()

bib::OComponentAdapterBase::~OComponentAdapterBase ( )
protectedvirtual

Definition at line 70 of file loadlisteneradapter.cxx.

◆ OComponentAdapterBase()

bib::OComponentAdapterBase::OComponentAdapterBase ( const css::uno::Reference< css::lang::XComponent > &  _rxComp)
explicit

Definition at line 47 of file loadlisteneradapter.cxx.

References m_xComponent.

Member Function Documentation

◆ acquire()

virtual void SAL_CALL bib::OComponentAdapterBase::acquire ( )
pure virtualnoexcept

Implemented in bib::OLoadListenerAdapter.

◆ dispose()

void bib::OComponentAdapterBase::dispose ( void  )

dispose the object - stop listening and such

Definition at line 75 of file loadlisteneradapter.cxx.

References disposing(), m_bListening, m_pListener, m_xComponent, and bib::OComponentListener::setAdapter().

◆ disposing() [1/2]

virtual void bib::OComponentAdapterBase::disposing ( )
privatepure virtual

Implemented in bib::OLoadListenerAdapter.

Referenced by dispose().

◆ disposing() [2/2]

virtual void SAL_CALL bib::OComponentAdapterBase::disposing ( const css::lang::EventObject &  Source)
protectedvirtual
Exceptions
css::uno::RuntimeException

Reimplemented in bib::OLoadListenerAdapter.

◆ getComponent()

const css::uno::Reference< css::lang::XComponent > & bib::OComponentAdapterBase::getComponent ( ) const
inlineprotected

◆ getListener()

OComponentListener * bib::OComponentAdapterBase::getListener ( )
inlineprotected

Definition at line 70 of file loadlisteneradapter.hxx.

References m_pListener.

Referenced by bib::OLoadListenerAdapter::getLoadListener().

◆ Init()

void bib::OComponentAdapterBase::Init ( OComponentListener _pListener)

◆ release()

virtual void SAL_CALL bib::OComponentAdapterBase::release ( )
pure virtualnoexcept

Implemented in bib::OLoadListenerAdapter.

◆ startComponentListening()

virtual void bib::OComponentAdapterBase::startComponentListening ( )
protectedpure virtual

Implemented in bib::OLoadListenerAdapter.

Referenced by Init().

Friends And Related Function Documentation

◆ OComponentListener

friend class OComponentListener
friend

Definition at line 56 of file loadlisteneradapter.hxx.

Member Data Documentation

◆ m_bListening

bool bib::OComponentAdapterBase::m_bListening
private

Definition at line 61 of file loadlisteneradapter.hxx.

Referenced by dispose(), and Init().

◆ m_pListener

OComponentListener* bib::OComponentAdapterBase::m_pListener
private

Definition at line 60 of file loadlisteneradapter.hxx.

Referenced by dispose(), getListener(), and Init().

◆ m_xComponent

css::uno::Reference< css::lang::XComponent > bib::OComponentAdapterBase::m_xComponent
private

Definition at line 59 of file loadlisteneradapter.hxx.

Referenced by dispose(), getComponent(), and OComponentAdapterBase().


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