22#include <com/sun/star/lang/XInitialization.hpp>
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/util/XModifiable.hpp>
25#include <com/sun/star/beans/XPropertyBag.hpp>
26#include <com/sun/star/container/XSet.hpp>
46 bool operator()(
const css::uno::Type& _rLHS,
const css::uno::Type& _rRHS )
const
48 return rtl_ustr_compare(
49 _rLHS.getTypeLibType()->pTypeName->buffer,
50 _rRHS.getTypeLibType()->pTypeName->buffer
56 typedef std::set< css::uno::Type, UnoTypeLess >
TypeBag;
58 typedef ::cppu::WeakImplHelper < css::beans::XPropertyBag
59 , css::util::XModifiable
60 , css::lang::XServiceInfo
61 , css::lang::XInitialization
62 , css::container::XSet
73 std::unique_ptr< ::cppu::OPropertyArrayHelper >
75 ::comphelper::PropertyBag
100 virtual
void SAL_CALL
initialize( const css::
uno::Sequence< css::
uno::Any >& aArguments ) override;
113 const css::
uno::Reference<
114 css::util::XModifyListener > & xListener) override;
116 const css::
uno::Reference<
117 css::util::XModifyListener > & xListener) override;
120 virtual
void SAL_CALL
addProperty( const OUString& Name, ::sal_Int16 Attributes, const css::
uno::Any& DefaultValue ) override;
121 virtual
void SAL_CALL
removeProperty( const OUString& Name ) override;
125 virtual
void SAL_CALL
setPropertyValues( const css::
uno::Sequence< css::beans::PropertyValue >& aProps ) override;
130 { OPropertyBag_PBase::setPropertyValue(p1, p2); }
132 {
return OPropertyBag_PBase::getPropertyValue(p1); }
133 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& p1,
const css::uno::Reference<css::beans::XPropertyChangeListener>& p2)
override
134 { OPropertyBag_PBase::addPropertyChangeListener(p1, p2); }
136 { OPropertyBag_PBase::removePropertyChangeListener(p1, p2); }
137 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& p1,
const css::uno::Reference<css::beans::XVetoableChangeListener>& p2)
override
138 { OPropertyBag_PBase::addVetoableChangeListener(p1, p2); }
140 { OPropertyBag_PBase::removeVetoableChangeListener(p1, p2); }
143 virtual sal_Bool SAL_CALL
has(
const css::uno::Any& aElement )
override;
144 virtual void SAL_CALL
insert(
const css::uno::Any& aElement )
override;
145 virtual void SAL_CALL
remove(
const css::uno::Any& aElement )
override;
148 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
createEnumeration( )
override;
162 virtual void SAL_CALL
getFastPropertyValue( css::uno::Any& rValue, sal_Int32 nHandle )
const override;
163 virtual sal_Bool SAL_CALL
convertFastPropertyValue( css::uno::Any & rConvertedValue, css::uno::Any & rOldValue, sal_Int32 nHandle,
const css::uno::Any& rValue )
override;
165 virtual ::cppu::IPropertyArrayHelper& SAL_CALL
getInfoHelper()
override;
169 sal_Int32 * pnHandles,
172 bool bIgnoreRuntimeExceptionsWhileFiring)
override;
175 bool bIgnoreRuntimeExceptionsWhileFiring);
209 using ::cppu::OPropertySetHelper::getPropertyValues;
210 using ::cppu::OPropertySetHelper::setPropertyValues;
211 using ::cppu::OPropertySetHelper::getFastPropertyValue;
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
const OPropertyBag & operator=(const OPropertyBag &)=delete
void setModifiedImpl(bool bModified, bool bIgnoreRuntimeExceptionsWhileFiring)
virtual void SAL_CALL addPropertyChangeListener(const OUString &p1, const css::uno::Reference< css::beans::XPropertyChangeListener > &p2) override
virtual void SAL_CALL remove(const css::uno::Any &aElement) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &p1, const css::uno::Reference< css::beans::XVetoableChangeListener > &p2) override
virtual void SAL_CALL removeProperty(const OUString &Name) override
bool m_bAutoAddProperties
should we automatically add properties which are tried to set, if they don't exist previously?
::comphelper::PropertyBag m_aDynamicProperties
TypeBag m_aAllowedTypes
set of allowed property types
virtual css::uno::Any getPropertyDefaultByHandle(sal_Int32 _nHandle) const override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &xListener) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &p1, const css::uno::Reference< css::beans::XPropertyChangeListener > &p2) override
OPropertyBag(const OPropertyBag &)=delete
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< css::beans::PropertyValue > &aProps) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual void fireEvents(sal_Int32 *pnHandles, sal_Int32 nCount, sal_Bool bVetoable, bool bIgnoreRuntimeExceptionsWhileFiring) override
virtual void SAL_CALL setModified(sal_Bool bModified) override
bool m_isModified
modify flag
virtual void SAL_CALL removeVetoableChangeListener(const OUString &p1, const css::uno::Reference< css::beans::XVetoableChangeListener > &p2) override
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual css::beans::PropertyState getPropertyStateByHandle(sal_Int32 _nHandle) override
virtual void SAL_CALL setPropertyValue(const OUString &p1, const css::uno::Any &p2) override
virtual ~OPropertyBag() override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues() override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
std::unique_ptr< ::cppu::OPropertyArrayHelper > m_pArrayHelper
our IPropertyArrayHelper implementation
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &p1) override
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &xListener) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
=== begin UNO interface implementations ==
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
::comphelper::OInterfaceContainerHelper3< css::util::XModifyListener > m_NotifyListeners
for notification
virtual void SAL_CALL addProperty(const OUString &Name, ::sal_Int16 Attributes, const css::uno::Any &DefaultValue) override
virtual sal_Bool SAL_CALL isModified() override
virtual sal_Bool SAL_CALL has(const css::uno::Any &aElement) override
sal_Int32 findFreeHandle() const
finds a free property handle @precond our mutex is locked
void impl_setPropertyValues_throw(const css::uno::Sequence< css::beans::PropertyValue > &_rProps)
implements the setPropertyValues method
virtual sal_Bool SAL_CALL hasElements() override
virtual void SAL_CALL insert(const css::uno::Any &aElement) override
::cppu::WeakImplHelper< css::beans::XPropertyBag, css::util::XModifiable, css::lang::XServiceInfo, css::lang::XInitialization, css::container::XSet > OPropertyBag_Base
std::map< sal_Int32, css::uno::Any > MapInt2Any
::comphelper::OPropertyStateHelper OPropertyBag_PBase
std::set< css::uno::Type, UnoTypeLess > TypeBag
bool operator()(const css::uno::Type &_rLHS, const css::uno::Type &_rRHS) const
#define DECLARE_XTYPEPROVIDER()
#define DECLARE_XINTERFACE()