LibreOffice Module cppuhelper (master)  1
Public Member Functions | Static Public Member Functions | List of all members
cppu::IPropertyArrayHelper Class Referenceabstract

This interface is used by the OPropertyHelper, to access the property description. More...

#include <propshlp.hxx>

Inheritance diagram for cppu::IPropertyArrayHelper:
[legend]

Public Member Functions

virtual ~IPropertyArrayHelper ()
 Following the rule, the first virtual method implies a virtual destructor. More...
 
virtual sal_Bool SAL_CALL fillPropertyMembersByHandle (::rtl::OUString *pPropName, sal_Int16 *pAttributes, sal_Int32 nHandle)=0
 Return the property members Name and Attribute from the handle nHandle. More...
 
virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties ()=0
 Return the sequence of properties. More...
 
virtual css::beans::Property SAL_CALL getPropertyByName (const ::rtl::OUString &rPropertyName)=0
 Return the property with the name rPropertyName. More...
 
virtual sal_Bool SAL_CALL hasPropertyByName (const ::rtl::OUString &rPropertyName)=0
 Return true if the property with the name rPropertyName exist, otherwise false. More...
 
virtual sal_Int32 SAL_CALL getHandleByName (const ::rtl::OUString &rPropertyName)=0
 Return the handle of the property with the name rPropertyName. More...
 
virtual sal_Int32 SAL_CALL fillHandles (sal_Int32 *pHandles, const css::uno::Sequence< ::rtl::OUString > &rPropNames)=0
 Fill the array with the handles of the properties. More...
 

Static Public Member Functions

static void *SAL_CALL operator new (size_t nSize)
 
static void SAL_CALL operator delete (void *pMem)
 
static void *SAL_CALL operator new (size_t, void *pMem)
 
static void SAL_CALL operator delete (void *, void *)
 

Detailed Description

This interface is used by the OPropertyHelper, to access the property description.

Definition at line 46 of file propshlp.hxx.

Constructor & Destructor Documentation

cppu::IPropertyArrayHelper::~IPropertyArrayHelper ( )
virtual

Following the rule, the first virtual method implies a virtual destructor.

Definition at line 39 of file propshlp.cxx.

Member Function Documentation

virtual sal_Int32 SAL_CALL cppu::IPropertyArrayHelper::fillHandles ( sal_Int32 *  pHandles,
const css::uno::Sequence< ::rtl::OUString > &  rPropNames 
)
pure virtual

Fill the array with the handles of the properties.

Returns
the handles of the names from the pHandles array. -1 indicates an unknown property name.

Implemented in cppu::OPropertyArrayHelper.

Referenced by cppu::OPropertySetHelper::firePropertiesChangeEvent(), cppu::OPropertySetHelper::getPropertyValues(), and cppu::OPropertySetHelper::setPropertyValues().

virtual sal_Bool SAL_CALL cppu::IPropertyArrayHelper::fillPropertyMembersByHandle ( ::rtl::OUString *  pPropName,
sal_Int16 *  pAttributes,
sal_Int32  nHandle 
)
pure virtual

Return the property members Name and Attribute from the handle nHandle.

Parameters
nHandlethe handle of a property. If the values of the handles are sorted in the same way as the names and the highest handle value is getCount() -1, then it must be an indexed access to the property array.
pPropNameis an out parameter filled with property name of the property with the handle nHandle. May be NULL.
pAttributesis an out parameter filled with attributes of the property with the handle nHandle. May be NULL.
Returns
True, if the handle exist, otherwise false.

Implemented in cppu::OPropertyArrayHelper.

Referenced by cppu::OPropertySetHelper::addPropertyChangeListener(), cppu::OPropertySetHelper::addVetoableChangeListener(), cppu::OPropertySetHelper::fire(), cppu::OPropertySetHelper::getFastPropertyValue(), cppu::OPropertySetHelper::setDependentFastPropertyValue(), cppu::OPropertySetHelper::setFastPropertyValue(), and cppu::OPropertySetHelper::setFastPropertyValues().

virtual sal_Int32 SAL_CALL cppu::IPropertyArrayHelper::getHandleByName ( const ::rtl::OUString &  rPropertyName)
pure virtual
virtual css::uno::Sequence< css::beans::Property > SAL_CALL cppu::IPropertyArrayHelper::getProperties ( )
pure virtual

Return the sequence of properties.

The sequence is sorted by name.

Implemented in cppu::OPropertyArrayHelper.

virtual css::beans::Property SAL_CALL cppu::IPropertyArrayHelper::getPropertyByName ( const ::rtl::OUString &  rPropertyName)
pure virtual

Return the property with the name rPropertyName.

Parameters
rPropertyNamethe name of the property.
Exceptions
UnknownPropertyExceptionthrown if the property name is unknown.

Implemented in cppu::OPropertyArrayHelper.

virtual sal_Bool SAL_CALL cppu::IPropertyArrayHelper::hasPropertyByName ( const ::rtl::OUString &  rPropertyName)
pure virtual

Return true if the property with the name rPropertyName exist, otherwise false.

Parameters
rPropertyNamethe name of the property.

Implemented in cppu::OPropertyArrayHelper.

static void SAL_CALL cppu::IPropertyArrayHelper::operator delete ( void pMem)
inlinestatic

Definition at line 52 of file propshlp.hxx.

static void SAL_CALL cppu::IPropertyArrayHelper::operator delete ( void ,
void  
)
inlinestatic

Definition at line 56 of file propshlp.hxx.

static void* SAL_CALL cppu::IPropertyArrayHelper::operator new ( size_t  nSize)
inlinestatic

Definition at line 50 of file propshlp.hxx.

static void* SAL_CALL cppu::IPropertyArrayHelper::operator new ( size_t  ,
void pMem 
)
inlinestatic

Definition at line 54 of file propshlp.hxx.


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