10#ifndef INCLUDED_COMPHELPER_PROPERTYSEQUENCE_HXX
11#define INCLUDED_COMPHELPER_PROPERTYSEQUENCE_HXX
15#include <initializer_list>
18#include <com/sun/star/uno/Any.hxx>
19#include <com/sun/star/uno/Sequence.hxx>
20#include <com/sun/star/beans/PropertyValue.hpp>
28 ::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
30 css::uno::Sequence< css::beans::PropertyValue> vResult{
static_cast<sal_Int32
>(vInit.size())};
31 std::transform(vInit.begin(), vInit.end(), vResult.getArray(),
32 [](
const std::pair<OUString, css::uno::Any>& rInit) {
33 return css::beans::PropertyValue(rInit.first, -1, rInit.second,
34 css::beans::PropertyState_DIRECT_VALUE);
44 ::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
46 css::uno::Sequence<css::uno::Any> vResult{
static_cast<sal_Int32
>(vInit.size())};
47 std::transform(vInit.begin(), vInit.end(), vResult.getArray(),
48 [](
const std::pair<OUString, css::uno::Any>& rInit) {
50 css::beans::PropertyValue(rInit.first, -1, rInit.second,
51 css::beans::PropertyState_DIRECT_VALUE));
#define COMPHELPER_DLLPUBLIC
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
Init list for property sequences that wrap the PropertyValues in Anys.
std::vector< css::beans::PropertyValue > JsonToPropertyValues(const OString &rJson)
css::uno::Sequence< css::beans::PropertyValue > InitPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
Init list for property sequences.