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... | |
Protected Member Functions inherited from comphelper::OPropertyContainer | |
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 |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const=0 |
The same as getFastPropertyValue, but return the value through rValue and nHandle is always valid. More... | |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Throw UnknownPropertyException or PropertyVetoException if the property with the name rPropertyName does not exist or is readonly. More... | |
Protected Member Functions inherited from cppu::OPropertySetHelper | |
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 |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const=0 |
void | setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value) |
~OPropertySetHelper () | |
Protected Member Functions inherited from comphelper::OPropertyContainerHelper | |
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) @precond 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... | |
Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 > | |
~ImplHelper1 () SAL_NOEXCEPT | |
Additional Inherited Members | |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from cppu::OPropertySetHelper | |
OPropertySetHelper (OBroadcastHelper &rBHelper) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
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 |
Public Member Functions inherited from cppu::ImplHelper1< class Ifc1 > | |
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 Public Member Functions inherited from cppu::OPropertySetHelper | |
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | createPropertySetInfo (IPropertyArrayHelper &rProperties) |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
for scripting : the types of the interfaces supported by this class More... | |
Protected Attributes inherited from cppu::OPropertySetHelper | |
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
@precond <arg>_nHandle</arg> is a valid property handle
References queryInterface().
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
@precond <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 container, class keyType >::rMutex.
|
overrideprotectedvirtual |
Reimplemented from cppu::ImplHelper1< class Ifc1 >.
Definition at line 53 of file propertystatecontainer.cxx.
References Any, cppu::OPropertySetHelper::queryInterface(), and cppu::ImplHelper1< class Ifc1 >::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
@precond <arg>_nHandle</arg> is a valid property handle
Definition at line 172 of file propertystatecontainer.cxx.
References Any, getPropertyDefaultByHandle(), and comphelper::OPropertyContainer::setFastPropertyValue().
Referenced by setPropertyToDefault().