LibreOffice Module comphelper (master) 1
Public Member Functions | Private Attributes | List of all members
comphelper::internal::PropertyForwarder Class Reference
Collaboration diagram for comphelper::internal::PropertyForwarder:
[legend]

Public Member Functions

 PropertyForwarder (OPropertySetAggregationHelper &_rAggregationHelper)
 
void takeResponsibilityFor (sal_Int32 _nHandle)
 declares that the forwarder should be responsible for the given property More...
 
bool isResponsibleFor (sal_Int32 _nHandle) const
 checks whether the forwarder is responsible for the given property More...
 
void doForward (sal_Int32 _nHandle, const Any &_rValue)
 actually forwards a property value to the aggregate More...
 
sal_Int32 getCurrentlyForwardedProperty () const
 

Private Attributes

OPropertySetAggregationHelper & m_rAggregationHelper
 
o3tl::sorted_vector< sal_Int32 > m_aProperties
 
sal_Int32 m_nCurrentlyForwarding
 

Detailed Description

Definition at line 251 of file propagg.cxx.

Constructor & Destructor Documentation

◆ PropertyForwarder()

comphelper::internal::PropertyForwarder::PropertyForwarder ( OPropertySetAggregationHelper &  _rAggregationHelper)
explicit

Definition at line 281 of file propagg.cxx.

Member Function Documentation

◆ doForward()

void comphelper::internal::PropertyForwarder::doForward ( sal_Int32  _nHandle,
const Any &  _rValue 
)

actually forwards a property value to the aggregate

Exceptions
Exception

Definition at line 300 of file propagg.cxx.

References Exception, m_nCurrentlyForwarding, and m_rAggregationHelper.

◆ getCurrentlyForwardedProperty()

sal_Int32 comphelper::internal::PropertyForwarder::getCurrentlyForwardedProperty ( ) const
inline

Definition at line 277 of file propagg.cxx.

References m_nCurrentlyForwarding.

◆ isResponsibleFor()

bool comphelper::internal::PropertyForwarder::isResponsibleFor ( sal_Int32  _nHandle) const

◆ takeResponsibilityFor()

void comphelper::internal::PropertyForwarder::takeResponsibilityFor ( sal_Int32  _nHandle)

declares that the forwarder should be responsible for the given property

Parameters
_nHandlethe public handle (not the original handle!) of the property

Definition at line 288 of file propagg.cxx.

References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), and m_aProperties.

Member Data Documentation

◆ m_aProperties

o3tl::sorted_vector< sal_Int32 > comphelper::internal::PropertyForwarder::m_aProperties
private

Definition at line 255 of file propagg.cxx.

Referenced by isResponsibleFor(), and takeResponsibilityFor().

◆ m_nCurrentlyForwarding

sal_Int32 comphelper::internal::PropertyForwarder::m_nCurrentlyForwarding
private

Definition at line 256 of file propagg.cxx.

Referenced by doForward(), and getCurrentlyForwardedProperty().

◆ m_rAggregationHelper

OPropertySetAggregationHelper& comphelper::internal::PropertyForwarder::m_rAggregationHelper
private

Definition at line 254 of file propagg.cxx.

Referenced by doForward().


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