20#ifndef INCLUDED_OOX_HELPER_PROPERTYMAP_HXX
21#define INCLUDED_OOX_HELPER_PROPERTYMAP_HXX
27#include <com/sun/star/uno/Any.hxx>
28#include <com/sun/star/uno/Reference.hxx>
29#include <com/sun/star/uno/Sequence.hxx>
31#include <rtl/ustring.hxx>
60 static sal_Int32 getPropertyId( std::u16string_view sPropName );
67 bool setAnyProperty( sal_Int32 nPropId,
const css::uno::Any& rValue );
71 template<
typename Type >
86 void erase( sal_Int32 nPropId );
97 css::uno::Sequence< css::beans::PropertyValue >
98 makePropertyValueSequence()
const;
102 css::uno::Sequence< OUString >& rNames,
103 css::uno::Sequence< css::uno::Any >& rValues )
const;
108 css::uno::Reference< css::beans::XPropertySet >
109 makePropertySet()
const;
111#if OSL_DEBUG_LEVEL > 0
113 static void dump(
const css::uno::Reference< css::beans::XPropertySet >& rXPropSet);
115 static void dumpCode(
const css::uno::Reference< css::beans::XPropertySet >& rXPropSet);
116 static void dumpData(
const css::uno::Reference<css::beans::XPropertySet>& rXPropSet);
A helper that maps property identifiers to property values.
const std::vector< OUString > * mpPropNames
std::map< sal_Int32, css::uno::Any > maProperties
bool setProperty(sal_Int32, const css::uno::Any &)=delete
setAnyProperty should be used
bool setProperty(sal_Int32 nPropId, Type &&rValue)
Sets the specified property to the passed value.
SvGenericNameContainerMapImpl maProperties
VCL_DLLPUBLIC void dump(const SkBitmap &bitmap, const char *file)
class SAL_NO_VTABLE XPropertySet
bool hasProperty(const OUString &_rName, const Reference< XPropertySet > &_rxSet)
::std::map< OUString, css::uno::Any > PropertyNameMap
OUString getPropertyName(sal_Int32 nPropertyType)
SVX_DLLPUBLIC OUString getProperty(css::uno::Reference< css::beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rName)