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 >
82 bool setProperty( sal_Int32,
const css::uno::Any& ) =
delete;
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;
105 void fillPropertyNameMap(PropertyNameMap& rMap)
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.
bool setProperty(sal_Int32 nPropId, Type &&rValue)
Sets the specified property to the passed value.
std::map< sal_Int32, css::uno::Any > maProperties
const std::vector< OUString > * mpPropNames
::std::map< OUString, css::uno::Any > PropertyNameMap
SvGenericNameContainerMapImpl maProperties
OUString getProperty(uno::Reference< beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rName)
class SAL_NO_VTABLE XPropertySet
VCL_DLLPUBLIC void dump(const SkBitmap &bitmap, const char *file)
OUString getPropertyName(sal_Int32 nPropertyType)
bool hasProperty(const OUString &_rName, const Reference< XPropertySet > &_rxSet)