22#include <osl/mutex.hxx>
23#include <com/sun/star/lang/XComponent.hpp>
25#include <com/sun/star/form/XLoadable.hpp>
33 class OComponentAdapterBase;
68 const css::uno::Reference< css::lang::XComponent >&
79 const css::uno::Reference< css::lang::XComponent >& _rxComp
88 virtual void SAL_CALL
acquire( ) noexcept = 0;
89 virtual
void SAL_CALL
release( ) noexcept = 0;
97 virtual
void SAL_CALL
disposing( const css::lang::EventObject& Source );
108 virtual void _loaded(
const css::lang::EventObject& aEvent ) = 0;
109 virtual void _unloading(
const css::lang::EventObject& aEvent ) = 0;
110 virtual void _reloading(
const css::lang::EventObject& aEvent ) = 0;
111 virtual void _reloaded(
const css::lang::EventObject& aEvent ) = 0;
128 const css::uno::Reference< css::form::XLoadable >& _rxLoadable
132 virtual void SAL_CALL
acquire( ) noexcept override;
133 virtual
void SAL_CALL
release( ) noexcept override;
137 virtual
void SAL_CALL
disposing( const css::lang::EventObject& _rSource ) override;
140 virtual
void SAL_CALL loaded( const css::lang::EventObject& aEvent ) override;
141 virtual
void SAL_CALL unloading( const css::lang::EventObject& aEvent ) override;
142 virtual
void SAL_CALL unloaded( const css::lang::EventObject& aEvent ) override;
143 virtual
void SAL_CALL reloading( const css::lang::EventObject& aEvent ) override;
144 virtual
void SAL_CALL reloaded( const css::lang::EventObject& aEvent ) override;
void Init(OComponentListener *_pListener)
virtual void SAL_CALL release() noexcept=0
virtual void startComponentListening()=0
void dispose()
dispose the object - stop listening and such
virtual void SAL_CALL acquire() noexcept=0
virtual ~OComponentAdapterBase()
virtual void disposing()=0
OComponentAdapterBase(const css::uno::Reference< css::lang::XComponent > &_rxComp)
const css::uno::Reference< css::lang::XComponent > & getComponent() const
OComponentListener * m_pListener
css::uno::Reference< css::lang::XComponent > m_xComponent
OComponentListener * getListener()
void setAdapter(OComponentAdapterBase *_pAdapter)
virtual ~OComponentListener()
OComponentListener(::osl::Mutex &_rMutex)
rtl::Reference< OComponentAdapterBase > m_xAdapter
OLoadListener * getLoadListener()
OLoadListener(::osl::Mutex &_rMutex)
virtual void _reloaded(const css::lang::EventObject &aEvent)=0
virtual void _reloading(const css::lang::EventObject &aEvent)=0
virtual void _unloading(const css::lang::EventObject &aEvent)=0
virtual void _loaded(const css::lang::EventObject &aEvent)=0
::cppu::WeakImplHelper< css::form::XLoadListener > OLoadListenerAdapter_Base