LibreOffice Module comphelper (master) 1
Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | List of all members
comphelper::OComponentProxyAggregationHelper Class Referenceabstract

a helper class for aggregating a proxy to an XComponent More...

#include <proxyaggregation.hxx>

Inheritance diagram for comphelper::OComponentProxyAggregationHelper:
[legend]
Collaboration diagram for comphelper::OComponentProxyAggregationHelper:
[legend]

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::OBroadcastHelperm_rBHelper
 

Private Types

typedef ::cppu::ImplHelper1< css::lang::XEventListener > BASE
 

Private Member Functions

 OComponentProxyAggregationHelper (const OComponentProxyAggregationHelper &)=delete
 
OComponentProxyAggregationHelperoperator= (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
 

Detailed Description

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.

Member Typedef Documentation

◆ BASE

typedef ::cppu::ImplHelper1< css::lang::XEventListener > comphelper::OComponentProxyAggregationHelper::BASE
private

Definition at line 135 of file proxyaggregation.hxx.

Constructor & Destructor Documentation

◆ OComponentProxyAggregationHelper() [1/2]

comphelper::OComponentProxyAggregationHelper::OComponentProxyAggregationHelper ( const css::uno::Reference< css::uno::XComponentContext > &  _rxContext,
::cppu::OBroadcastHelper _rBHelper 
)
protected

◆ ~OComponentProxyAggregationHelper()

comphelper::OComponentProxyAggregationHelper::~OComponentProxyAggregationHelper ( )
protectedvirtual

Definition at line 137 of file proxyaggregation.cxx.

◆ OComponentProxyAggregationHelper() [2/2]

comphelper::OComponentProxyAggregationHelper::OComponentProxyAggregationHelper ( const OComponentProxyAggregationHelper )
privatedelete

Member Function Documentation

◆ componentAggregateProxyFor()

void comphelper::OComponentProxyAggregationHelper::componentAggregateProxyFor ( const css::uno::Reference< css::lang::XComponent > &  _rxComponent,
oslInterlockedCount &  _rRefCount,
::cppu::OWeakObject _rDelegator 
)
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().

◆ dispose()

void SAL_CALL comphelper::OComponentProxyAggregationHelper::dispose ( void  )
protectedpure virtual

◆ disposing()

void SAL_CALL comphelper::OComponentProxyAggregationHelper::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual

◆ getComponentContext()

const css::uno::Reference< css::uno::XComponentContext > & comphelper::OProxyAggregation::getComponentContext ( ) const
inlineprotected

◆ operator=()

OComponentProxyAggregationHelper & comphelper::OComponentProxyAggregationHelper::operator= ( const OComponentProxyAggregationHelper )
privatedelete

◆ queryInterface()

Any SAL_CALL comphelper::OComponentProxyAggregationHelper::queryInterface ( const css::uno::Type &  _rType)
overrideprotectedvirtual

Member Data Documentation

◆ m_rBHelper

::cppu::OBroadcastHelper& comphelper::OComponentProxyAggregationHelper::m_rBHelper
protected

◆ m_xInner

css::uno::Reference< css::lang::XComponent > comphelper::OComponentProxyAggregationHelper::m_xInner
protected

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