20#ifndef INCLUDED_COMPHELPER_PROPERTYBAG_HXX
21#define INCLUDED_COMPHELPER_PROPERTYBAG_HXX
23#include <config_options.h>
24#include <com/sun/star/uno/Any.h>
42 class UNLESS_MERGELIBS(COMPHELPER_DLLPUBLIC)
PropertyBag final :
protected OPropertyContainerHelper
44 std::map< sal_Int32, css::uno::Any > aDefaults;
45 bool m_bAllowEmptyPropertyName;
55 void setAllowEmptyPropertyName(
bool i_isAllowed);
80 const OUString& _rName,
82 sal_Int32 _nAttributes,
83 const css::uno::Any& _rInitialValue
107 void addVoidProperty(
108 const OUString& _rName,
109 const css::uno::Type& _rType,
111 sal_Int32 _nAttributes
125 const OUString& _rName
132 void describeProperties(
133 css::uno::Sequence< css::beans::Property >& _out_rProps
147 void getFastPropertyValue(
149 css::uno::Any& _out_rValue
169 bool convertFastPropertyValue(
171 const css::uno::Any& _rNewValue,
172 css::uno::Any& _out_rConvertedValue,
173 css::uno::Any& _out_rCurrentValue
180 void setFastPropertyValue(
182 const css::uno::Any& _rValue
197 void getPropertyDefaultByHandle(
199 css::uno::Any& _out_rValue
204 bool hasPropertyByName(
const OUString& _rName )
const
206 return isRegisteredProperty( _rName );
211 bool hasPropertyByHandle( sal_Int32 _nHandle )
const
213 return isRegisteredProperty( _nHandle );
void getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const
bool convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)
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 sequen...
std::set< css::beans::Property, PropertyLessByName > PropertyBag