LibreOffice Module comphelper (master) 1
|
a helper class for aggregating a proxy to an XComponent More...
#include <proxyaggregation.hxx>
Protected Member Functions | |
css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &_rType) override |
OComponentProxyAggregationHelper (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, ::cppu::OBroadcastHelper &_rBHelper) | |
virtual | ~OComponentProxyAggregationHelper () |
void | componentAggregateProxyFor (const css::uno::Reference< css::lang::XComponent > &_rxComponent, oslInterlockedCount &_rRefCount, ::cppu::OWeakObject &_rDelegator) |
to be called from within your ctor More... | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | dispose ()=0 |
const css::uno::Reference< css::uno::XComponentContext > & | getComponentContext () const |
Protected Member Functions inherited from cppu::ImplHelper1< css::lang::XEventListener > | |
~ImplHelper1 () SAL_NOEXCEPT | |
Protected Attributes | |
css::uno::Reference< css::lang::XComponent > | m_xInner |
::cppu::OBroadcastHelper & | m_rBHelper |
Private Types | |
typedef ::cppu::ImplHelper1< css::lang::XEventListener > | BASE |
Private Member Functions | |
OComponentProxyAggregationHelper (const OComponentProxyAggregationHelper &)=delete | |
OComponentProxyAggregationHelper & | operator= (const OComponentProxyAggregationHelper &)=delete |
Private Member Functions inherited from comphelper::OProxyAggregation | |
const css::uno::Reference< css::uno::XComponentContext > & | getComponentContext () const |
OProxyAggregation (const css::uno::Reference< css::uno::XComponentContext > &_rxContext) | |
~OProxyAggregation () | |
void | baseAggregateProxyFor (const css::uno::Reference< css::uno::XInterface > &_rxComponent, oslInterlockedCount &_rRefCount, ::cppu::OWeakObject &_rDelegator) |
to be called from within your ctor More... | |
css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &_rType) |
css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () |
Additional Inherited Members | |
Public Member Functions inherited from cppu::ImplHelper1< css::lang::XEventListener > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
a helper class for aggregating a proxy to an XComponent
The object couples the life time of itself and the component: if one of the both dies (in a sense of being disposed), the other one dies, too.
The class itself does not implement XComponent so you need to forward any XComponent::dispose calls which your derived class gets to the dispose method of this class.
Definition at line 129 of file proxyaggregation.hxx.
|
private |
Definition at line 135 of file proxyaggregation.hxx.
|
protected |
|
protectedvirtual |
Definition at line 137 of file proxyaggregation.cxx.
|
privatedelete |
|
protected |
to be called from within your ctor
Definition at line 105 of file proxyaggregation.cxx.
References comphelper::OProxyAggregation::baseAggregateProxyFor(), and m_xInner.
Referenced by comphelper::OAccessibleContextWrapperHelper::aggregateProxy().
|
protectedpure virtual |
css::uno::RuntimeException |
Implemented in comphelper::OAccessibleContextWrapperHelper, and comphelper::OComponentProxyAggregation.
Definition at line 164 of file proxyaggregation.cxx.
References m_rBHelper, m_xInner, and cppu::OBroadcastHelperVar< class container, class keyType >::rMutex.
Referenced by comphelper::OAccessibleContextWrapperHelper::dispose(), comphelper::OComponentProxyAggregation::disposing(), and disposing().
|
overrideprotectedvirtual |
Reimplemented in comphelper::OComponentProxyAggregation, comphelper::OAccessibleContextWrapperHelper, and comphelper::OAccessibleContextWrapper.
Definition at line 152 of file proxyaggregation.cxx.
References cppu::OBroadcastHelperVar< class container, class keyType >::bDisposed, cppu::OBroadcastHelperVar< class container, class keyType >::bInDispose, dispose(), m_rBHelper, and m_xInner.
Referenced by comphelper::OAccessibleContextWrapperHelper::disposing().
|
inlineprotected |
Definition at line 90 of file proxyaggregation.hxx.
Referenced by comphelper::OAccessibleWrapper::createAccessibleContext().
|
privatedelete |
|
overrideprotectedvirtual |
Reimplemented from cppu::ImplHelper1< css::lang::XEventListener >.
Definition at line 125 of file proxyaggregation.cxx.
References Any, comphelper::OProxyAggregation::queryAggregation(), and cppu::ImplHelper1< css::lang::XEventListener >::queryInterface().
Referenced by comphelper::OAccessibleContextWrapperHelper::queryInterface().
|
protected |
Definition at line 140 of file proxyaggregation.hxx.
Referenced by comphelper::OAccessibleContextWrapperHelper::dispose(), dispose(), disposing(), comphelper::OAccessibleContextWrapperHelper::notifyEvent(), comphelper::OAccessibleContextWrapperHelper::~OAccessibleContextWrapperHelper(), and comphelper::OAccessibleWrapper::~OAccessibleWrapper().
|
protected |
Definition at line 139 of file proxyaggregation.hxx.
Referenced by comphelper::OAccessibleContextWrapperHelper::aggregateProxy(), componentAggregateProxyFor(), comphelper::OAccessibleContextWrapperHelper::dispose(), dispose(), disposing(), and comphelper::OAccessibleContextWrapperHelper::notifyEvent().