LibreOffice Module comphelper (master)
1
|
helper implementation for components which have properties with a default More...
#include <propertystatecontainer.hxx>
Protected Member Functions | |
OPropertyStateContainer (::cppu::OBroadcastHelper &_rBHelper) | |
ctor More... | |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &PropertyName) override |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override |
virtual void SAL_CALL | setPropertyToDefault (const OUString &PropertyName) override |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &aPropertyName) override |
css::beans::PropertyState | getPropertyStateByHandle (sal_Int32 _nHandle) const |
get the PropertyState of the property denoted by the given handle More... | |
void | setPropertyToDefaultByHandle (sal_Int32 _nHandle) |
set the property denoted by the given handle to its default value More... | |
virtual void | getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const =0 |
get the default value for the property denoted by the given handle More... | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &_rType) override |
sal_Int32 | getHandleForName (const OUString &_rPropertyName) |
returns the handle for the given name More... | |
![]() | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
![]() | |
void SAL_CALL | fire (sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable) |
void SAL_CALL | setFastPropertyValues (sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount) |
virtual IPropertyArrayHelper &SAL_CALL | getInfoHelper ()=0 |
void | setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value) |
~OPropertySetHelper () | |
![]() | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
register a property. More... | |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
register a property. More... | |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
register a property. More... | |
void | revokeProperty (sal_Int32 _nHandle) |
revokes a previously registered property More... | |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
checks whether a property with the given handle has been registered More... | |
bool | isRegisteredProperty (const OUString &_rName) const |
checks whether a property with the given name has been registered More... | |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
appends the descriptions of all properties which were registered 'til that moment to the given sequence, keeping the array sorted (by name) the given sequence is already sorted by name More... | |
const css::beans::Property & | getProperty (const OUString &_rName) const |
retrieves the description for a registered property More... | |
![]() | |
~ImplHelper1 () | |
Additional Inherited Members | |
![]() | |
virtual | ~OPropertyContainer () |
![]() | |
OPropertySetHelper (OBroadcastHelper &rBHelper) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false) | |
css::uno::Sequence< css::uno::Type > | getTypes () |
void SAL_CALL | disposing () |
virtual void SAL_CALL | setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
![]() | |
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 |
![]() | |
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | createPropertySetInfo (IPropertyArrayHelper &rProperties) |
![]() | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
for scripting : the types of the interfaces supported by this class More... | |
![]() | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
helper implementation for components which have properties with a default
This class is not intended for direct use, you need to derive from it.
Definition at line 45 of file propertystatecontainer.hxx.
|
protected |
ctor
_rBHelper | help to be used for broadcasting events |
Definition at line 47 of file propertystatecontainer.cxx.
|
protected |
returns the handle for the given name
UnknownPropertyException | if the given name is not a registered property |
Definition at line 65 of file propertystatecontainer.cxx.
References cppu::IPropertyArrayHelper::getHandleByName(), and nHandle.
Referenced by getPropertyDefault(), getPropertyState(), and setPropertyToDefault().
|
overrideprotectedvirtual |
Definition at line 143 of file propertystatecontainer.cxx.
References Any, getHandleForName(), and getPropertyDefaultByHandle().
|
protectedpure virtual |
get the default value for the property denoted by the given handle
<arg>_nHandle</arg> is a valid property handle
Referenced by getPropertyDefault(), getPropertyStateByHandle(), and setPropertyToDefaultByHandle().
|
overrideprotectedvirtual |
Definition at line 78 of file propertystatecontainer.cxx.
References getHandleForName(), and getPropertyStateByHandle().
Referenced by getPropertyStates().
|
protected |
get the PropertyState of the property denoted by the given handle
Already implemented by this base class, no need to override
<arg>_nHandle</arg> is a valid property handle
Definition at line 151 of file propertystatecontainer.cxx.
References Any, comphelper::OPropertyContainer::getFastPropertyValue(), getPropertyDefaultByHandle(), and uno_type_equalData().
Referenced by getPropertyState().
|
overrideprotectedvirtual |
Definition at line 84 of file propertystatecontainer.cxx.
References cppu::OPropertySetHelper::getInfoHelper(), cppu::IPropertyArrayHelper::getProperties(), getPropertyState(), nProperties, Property, cppu::OPropertySetHelper::rBHelper, and cppu::OBroadcastHelperVar< class, class >::rMutex.
|
overrideprotectedvirtual |
Reimplemented from cppu::OPropertySetHelper.
Definition at line 53 of file propertystatecontainer.cxx.
References Any, cppu::ImplHelper1< class >::queryInterface(), and cppu::OPropertySetHelper::queryInterface().
|
overrideprotectedvirtual |
Definition at line 137 of file propertystatecontainer.cxx.
References getHandleForName(), and setPropertyToDefaultByHandle().
|
protected |
set the property denoted by the given handle to its default value
Already implemented by this base class, no need to override
<arg>_nHandle</arg> is a valid property handle
Definition at line 172 of file propertystatecontainer.cxx.
References Any, getPropertyDefaultByHandle(), and cppu::OPropertySetHelper::setFastPropertyValue().
Referenced by setPropertyToDefault().