21#include <rtl/ustring.hxx>
22#include <com/sun/star/uno/Sequence.hxx>
29class XMultiPropertySet;
37class XPropertySetInfo;
79 css::uno::Sequence<css::uno::Any>
aValues;
96 void hasProperties(
const css::uno::Reference<css::beans::XPropertySetInfo>&);
110 void getValues(
const css::uno::Reference<css::beans::XMultiPropertySet>&);
120 void getValues(
const css::uno::Reference<css::beans::XPropertySet>&);
127 inline const css::uno::Any&
getValue(sal_Int16 nIndex);
147 const css::uno::Reference<css::beans::XPropertySet>&,
148 bool bTryMulti =
false);
161 const css::uno::Reference<css::beans::XMultiPropertySet>&);
170 assert(
pValues &&
"called getValue() without calling getValues()");
171 assert(
pSequenceIndex &&
"called getValue() without calling hasProperties()");
180 assert(
pSequenceIndex &&
"called hasProperty() without calling hasProperties()");
The MultiPropertySetHelper performs the following functions:
MultiPropertySetHelper(const char **pNames)
std::unique_ptr< OUString[]> pPropertyNames
names of all properties
void getValues(const css::uno::Reference< css::beans::XPropertySet > &)
Get values from the XPropertySet.
void hasProperties(const css::uno::Reference< css::beans::XPropertySetInfo > &)
Call hasPropertiesByName for the provided XPropertySetInfo and build list of allowed properties.
css::uno::Any aEmptyAny
an empty Any
const css::uno::Any & getValue(sal_Int16 nIndex)
Get a value from the values array.
bool hasProperty(sal_Int16 nIndex)
Find out if this property is supported.
void getValues(const css::uno::Reference< css::beans::XMultiPropertySet > &)
Get values from the XMultiPropertySet.
bool checkedProperties()
Return whether hasProperties was called (i.e.
const css::uno::Any * pValues
result of aValues.getConstArray()
~MultiPropertySetHelper()
css::uno::Sequence< css::uno::Any > aValues
the last set of values retrieved by getValues
css::uno::Sequence< OUString > aPropertySequence
the sequence of property names that the current (multi) property set implementation supports
sal_Int16 nLength
length of pPropertyNames array
const css::uno::Any & getValue(sal_Int16 nIndex, const css::uno::Reference< css::beans::XMultiPropertySet > &)
Get a value from the XMultiPropertySet on demand.
std::unique_ptr< sal_Int16[]> pSequenceIndex
an array of indices that maps from pPropertyNames indices to aPropertySequence indices
const css::uno::Any & getValue(sal_Int16 nIndex, const css::uno::Reference< css::beans::XPropertySet > &, bool bTryMulti=false)
Get a value from the XPropertySet on demand.
class SAL_NO_VTABLE XPropertySet