19 #ifndef INCLUDED_XMLOFF_INC_MULTIPROPERTYSETHELPER_HXX
20 #define INCLUDED_XMLOFF_INC_MULTIPROPERTYSETHELPER_HXX
22 #include <rtl/ustring.hxx>
23 #include <com/sun/star/uno/Sequence.hxx>
30 class XMultiPropertySet;
38 class XPropertySetInfo;
80 css::uno::Sequence<css::uno::Any>
aValues;
97 void hasProperties(
const css::uno::Reference<css::beans::XPropertySetInfo>&);
111 void getValues(
const css::uno::Reference<css::beans::XMultiPropertySet>&);
121 void getValues(
const css::uno::Reference<css::beans::XPropertySet>&);
128 inline const css::uno::Any&
getValue(sal_Int16 nIndex);
147 const css::uno::Any&
getValue(sal_Int16 nIndex,
148 const css::uno::Reference<css::beans::XPropertySet>&,
149 bool bTryMulti =
false);
161 const css::uno::Any&
getValue(sal_Int16 nIndex,
162 const css::uno::Reference<css::beans::XMultiPropertySet>&);
171 assert(
pValues &&
"called getValue() without calling getValues()");
sal_Int16 nLength
length of pPropertyNames array
bool checkedProperties()
Return whether hasProperties was called (i.e.
void getValues(const css::uno::Reference< css::beans::XMultiPropertySet > &)
Get values from the XMultiPropertySet.
const css::uno::Any & getValue(sal_Int16 nIndex)
Get a value from the values array.
css::uno::Any aEmptyAny
an empty Any
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
~MultiPropertySetHelper()
const css::uno::Any * pValues
result of aValues.getConstArray()
bool hasProperty(sal_Int16 nIndex)
Find out if this property is supported.
The MultiPropertySetHelper performs the following functions:
class SAL_NO_VTABLE XPropertySet
void hasProperties(const css::uno::Reference< css::beans::XPropertySetInfo > &)
Call hasPropertiesByName for the provided XPropertySetInfo and build list of allowed properties...
MultiPropertySetHelper(const char **pNames)
exports com.sun.star. beans
std::unique_ptr< OUString[]> pPropertyNames
names of all properties
std::unique_ptr< sal_Int16[]> pSequenceIndex
an array of indices that maps from pPropertyNames indices to aPropertySequence indices ...
css::uno::Sequence< OUString > aPropertySequence
the sequence of property names that the current (multi) property set implementation supports ...
css::uno::Sequence< css::uno::Any > aValues
the last set of values retrieved by getValues