22#include <com/sun/star/beans/XMultiPropertySet.hpp>
23#include <com/sun/star/beans/XPropertySet.hpp>
24#include <osl/diagnose.h>
77 OSL_ENSURE( rPropNames.getLength() == rValues.getLength(),
78 "PropertySet::setProperties - length of sequences different" );
87 SAL_WARN(
"oox",
"PropertySet::setProperties - cannot set all property values, fallback to single mode" );
92 const Any* pValue = rValues.getConstArray();
93 for(
const OUString& rPropName : rPropNames )
100 if( !rPropertyMap.
empty() )
103 Sequence< Any > aValues;
115 orValue =
mxPropSet->getPropertyValue( rPropName );
130 mxPropSet->setPropertyValue( rPropName, rValue );
A helper that maps property identifiers to property values.
void fillSequences(css::uno::Sequence< OUString > &rNames, css::uno::Sequence< css::uno::Any > &rValues) const
Fills the passed sequences of names and anys with all contained properties.
static const OUString & getPropertyName(sal_Int32 nPropId)
Returns the name of the passed property identifier.
static void dump(const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
css::uno::Reference< css::beans::XPropertySet > mxPropSet
The mandatory property set interface.
void set(const css::uno::Reference< css::beans::XPropertySet > &rxPropSet)
Sets the passed UNO property set and releases the old UNO property set.
bool implSetPropertyValue(const OUString &rPropName, const css::uno::Any &rValue)
Puts the passed any into the property set.
css::uno::Any getAnyProperty(sal_Int32 nPropId) const
Gets the specified property from the property set.
css::uno::Reference< css::beans::XPropertySetInfo > mxPropSetInfo
Property information.
void setProperties(const css::uno::Sequence< OUString > &rPropNames, const css::uno::Sequence< css::uno::Any > &rValues)
Puts the passed properties into the property set.
bool setAnyProperty(sal_Int32 nPropId, const css::uno::Any &rValue)
Puts the passed any into the property set.
bool implGetPropertyValue(css::uno::Any &orValue, const OUString &rPropName) const
Gets the specified property from the property set.
bool hasProperty(sal_Int32 nPropId) const
Returns true, if the specified property is supported by the property set.
css::uno::Reference< css::beans::XMultiPropertySet > mxMultiPropSet
The optional multi property set interface.
#define TOOLS_WARN_EXCEPTION(area, stream)
#define SAL_WARN(area, stream)
const PropertyStruct aPropNames[]