LibreOffice Module comphelper (master) 1
|
#include <opropertybag.hxx>
Public Member Functions | |
OPropertyBag (const OPropertyBag &)=delete | |
const OPropertyBag & | operator= (const OPropertyBag &)=delete |
OPropertyBag () | |
virtual | ~OPropertyBag () override |
Public Member Functions inherited from comphelper::OMutexAndBroadcastHelper | |
OMutexAndBroadcastHelper () | |
::osl::Mutex & | GetMutex () |
::cppu::OBroadcastHelper & | GetBroadcastHelper () |
const ::cppu::OBroadcastHelper & | GetBroadcastHelper () const |
virtual void | fireEvents (sal_Int32 *pnHandles, sal_Int32 nCount, sal_Bool bVetoable, bool bIgnoreRuntimeExceptionsWhileFiring)=0 |
Private Member Functions | |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
=== begin UNO interface implementations == More... | |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual sal_Bool SAL_CALL | isModified () override |
virtual void SAL_CALL | setModified (sal_Bool bModified) override |
virtual void SAL_CALL | addModifyListener (const css::uno::Reference< css::util::XModifyListener > &xListener) override |
virtual void SAL_CALL | removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &xListener) override |
virtual void SAL_CALL | addProperty (const OUString &Name, ::sal_Int16 Attributes, const css::uno::Any &DefaultValue) override |
virtual void SAL_CALL | removeProperty (const OUString &Name) override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | getPropertyValues () override |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &aProps) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &p1, const css::uno::Any &p2) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &p1) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &p1, const css::uno::Reference< css::beans::XPropertyChangeListener > &p2) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &p1, const css::uno::Reference< css::beans::XPropertyChangeListener > &p2) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &p1, const css::uno::Reference< css::beans::XVetoableChangeListener > &p2) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &p1, const css::uno::Reference< css::beans::XVetoableChangeListener > &p2) override |
virtual sal_Bool SAL_CALL | has (const css::uno::Any &aElement) override |
virtual void SAL_CALL | insert (const css::uno::Any &aElement) override |
virtual void SAL_CALL | remove (const css::uno::Any &aElement) override |
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL | createEnumeration () override |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual css::uno::Any | getPropertyDefaultByHandle (sal_Int32 _nHandle) const override |
virtual css::beans::PropertyState | getPropertyStateByHandle (sal_Int32 _nHandle) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
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 ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual void | fireEvents (sal_Int32 *pnHandles, sal_Int32 nCount, sal_Bool bVetoable, bool bIgnoreRuntimeExceptionsWhileFiring) override |
void | setModifiedImpl (bool bModified, bool bIgnoreRuntimeExceptionsWhileFiring) |
sal_Int32 | findFreeHandle () const |
finds a free property handle @precond our mutex is locked More... | |
void | impl_setPropertyValues_throw (const css::uno::Sequence< css::beans::PropertyValue > &_rProps) |
implements the setPropertyValues method More... | |
Private Attributes | |
std::unique_ptr< ::cppu::OPropertyArrayHelper > | m_pArrayHelper |
our IPropertyArrayHelper implementation More... | |
::comphelper::PropertyBag | m_aDynamicProperties |
TypeBag | m_aAllowedTypes |
set of allowed property types More... | |
bool | m_bAutoAddProperties |
should we automatically add properties which are tried to set, if they don't exist previously? More... | |
::comphelper::OInterfaceContainerHelper3< css::util::XModifyListener > | m_NotifyListeners |
for notification More... | |
bool | m_isModified |
modify flag More... | |
Additional Inherited Members | |
Protected Member Functions inherited from cppu::IEventNotificationHook | |
~IEventNotificationHook () | |
Protected Attributes inherited from comphelper::OMutexAndBroadcastHelper | |
::osl::Mutex | m_aMutex |
::cppu::OBroadcastHelper | m_aBHelper |
Definition at line 66 of file opropertybag.hxx.
|
delete |
comphelper::OPropertyBag::OPropertyBag | ( | ) |
Definition at line 56 of file opropertybag.cxx.
|
overridevirtual |
Definition at line 67 of file opropertybag.cxx.
|
overrideprivatevirtual |
Definition at line 167 of file opropertybag.cxx.
References comphelper::OInterfaceContainerHelper3< ListenerT >::addInterface(), and m_NotifyListeners.
|
overrideprivatevirtual |
Definition at line 304 of file opropertybag.cxx.
References findFreeHandle(), m_aAllowedTypes, m_aDynamicProperties, comphelper::OMutexAndBroadcastHelper::m_aMutex, m_pArrayHelper, and setModified().
Referenced by impl_setPropertyValues_throw().
|
inlineoverrideprivatevirtual |
Definition at line 133 of file opropertybag.hxx.
|
inlineoverrideprivatevirtual |
Definition at line 137 of file opropertybag.hxx.
|
overrideprivatevirtual |
Definition at line 258 of file opropertybag.cxx.
References m_aDynamicProperties.
|
overrideprivatevirtual |
Definition at line 229 of file opropertybag.cxx.
|
private |
finds a free property handle @precond our mutex is locked
Definition at line 282 of file opropertybag.cxx.
References m_aDynamicProperties.
Referenced by addProperty(), and insert().
|
overrideprivatevirtual |
Implements cppu::IEventNotificationHook.
Definition at line 120 of file opropertybag.cxx.
References nCount, and setModifiedImpl().
|
overrideprivatevirtual |
Definition at line 237 of file opropertybag.cxx.
|
overrideprivatevirtual |
Definition at line 253 of file opropertybag.cxx.
References m_aDynamicProperties.
|
overrideprivatevirtual |
Definition at line 105 of file opropertybag.cxx.
|
overrideprivate |
Definition at line 269 of file opropertybag.cxx.
References aProperties, m_aDynamicProperties, and m_pArrayHelper.
Referenced by getPropertySetInfo(), getPropertyStateByHandle(), getPropertyValues(), and impl_setPropertyValues_throw().
|
overrideprivatevirtual |
Definition at line 529 of file opropertybag.cxx.
References Any, and m_aDynamicProperties.
|
overrideprivatevirtual |
Definition at line 180 of file opropertybag.cxx.
References getInfoHelper().
|
overrideprivatevirtual |
Definition at line 510 of file opropertybag.cxx.
References cppu::IPropertyArrayHelper::fillPropertyMembersByHandle(), getInfoHelper(), and nAttributes.
Referenced by getPropertyValues().
|
inlineoverrideprivatevirtual |
Definition at line 131 of file opropertybag.hxx.
|
overrideprivatevirtual |
Definition at line 369 of file opropertybag.cxx.
References Any, aProperties, aPropertyValues, Exception, cppu::IPropertyArrayHelper::getHandleByName(), getInfoHelper(), getPropertyStateByHandle(), m_aDynamicProperties, comphelper::OMutexAndBroadcastHelper::m_aMutex, and pName.
|
overrideprivatevirtual |
Definition at line 115 of file opropertybag.cxx.
|
overrideprivatevirtual |
Definition at line 186 of file opropertybag.cxx.
|
overrideprivatevirtual |
Definition at line 245 of file opropertybag.cxx.
|
private |
implements the setPropertyValues method
_rProps | the property values to set |
PropertyVetoException | if the XMultiPropertySet::setPropertyValues call does so |
css::lang::IllegalArgumentException | if the XMultiPropertySet::setPropertyValues call does so |
css::lang::WrappedTargetException | if the XMultiPropertySet::setPropertyValues call does so |
css::uno::RuntimeException | if the XMultiPropertySet::setPropertyValues call does so |
css::beans::UnknownPropertyException | if the XMultiPropertySet::setPropertyValues call does so, and <arg>_bTolerateUnknownProperties</arg> was set to <FALSE> |
css::lang::WrappedTargetException | if the XMultiPropertySet::setPropertyValues call did throw an exception not listed above |
Definition at line 424 of file opropertybag.cxx.
References addProperty(), aProperties, begin, end, Exception, cppu::IPropertyArrayHelper::getHandleByName(), getInfoHelper(), m_bAutoAddProperties, nAttributes, nCount, and pName.
Referenced by setPropertyValues().
|
overrideprivatevirtual |
=== begin UNO interface implementations ==
Definition at line 75 of file opropertybag.cxx.
References aArguments, and aTypes.
|
overrideprivatevirtual |
Definition at line 194 of file opropertybag.cxx.
References findFreeHandle(), m_aAllowedTypes, m_aDynamicProperties, comphelper::OMutexAndBroadcastHelper::m_aMutex, m_pArrayHelper, Property, and setModified().
|
overrideprivatevirtual |
Definition at line 156 of file opropertybag.cxx.
References comphelper::OMutexAndBroadcastHelper::m_aMutex, and m_isModified.
|
delete |
|
overrideprivatevirtual |
Definition at line 221 of file opropertybag.cxx.
|
overrideprivatevirtual |
Definition at line 173 of file opropertybag.cxx.
References m_NotifyListeners, and comphelper::OInterfaceContainerHelper3< ListenerT >::removeInterface().
|
overrideprivatevirtual |
Definition at line 326 of file opropertybag.cxx.
References m_aDynamicProperties, comphelper::OMutexAndBroadcastHelper::m_aMutex, m_pArrayHelper, and setModified().
|
inlineoverrideprivatevirtual |
Definition at line 135 of file opropertybag.hxx.
|
inlineoverrideprivatevirtual |
Definition at line 139 of file opropertybag.hxx.
|
overrideprivatevirtual |
Definition at line 263 of file opropertybag.cxx.
References m_aDynamicProperties, and nHandle.
|
overrideprivatevirtual |
Definition at line 162 of file opropertybag.cxx.
References setModifiedImpl().
Referenced by addProperty(), insert(), and removeProperty().
|
private |
Definition at line 131 of file opropertybag.cxx.
References Exception, comphelper::OMutexAndBroadcastHelper::m_aMutex, m_isModified, m_NotifyListeners, and comphelper::OInterfaceContainerHelper3< ListenerT >::notifyEach().
Referenced by fireEvents(), and setModified().
|
inlineoverrideprivatevirtual |
Definition at line 129 of file opropertybag.hxx.
|
overrideprivatevirtual |
Definition at line 503 of file opropertybag.cxx.
References impl_setPropertyValues_throw(), and comphelper::OMutexAndBroadcastHelper::m_aMutex.
|
overrideprivatevirtual |
Definition at line 110 of file opropertybag.cxx.
References cppu::supportsService().
|
private |
set of allowed property types
Definition at line 78 of file opropertybag.hxx.
Referenced by addProperty(), and insert().
|
private |
Definition at line 76 of file opropertybag.hxx.
Referenced by addProperty(), convertFastPropertyValue(), findFreeHandle(), getFastPropertyValue(), getInfoHelper(), getPropertyDefaultByHandle(), getPropertyValues(), insert(), removeProperty(), and setFastPropertyValue_NoBroadcast().
|
private |
should we automatically add properties which are tried to set, if they don't exist previously?
Definition at line 80 of file opropertybag.hxx.
Referenced by impl_setPropertyValues_throw().
|
private |
modify flag
Definition at line 85 of file opropertybag.hxx.
Referenced by isModified(), and setModifiedImpl().
|
private |
for notification
Definition at line 83 of file opropertybag.hxx.
Referenced by addModifyListener(), removeModifyListener(), and setModifiedImpl().
|
private |
our IPropertyArrayHelper implementation
Definition at line 74 of file opropertybag.hxx.
Referenced by addProperty(), getInfoHelper(), insert(), and removeProperty().