14#include <com/sun/star/beans/PropertyValue.hpp>
15#include <com/sun/star/uno/Sequence.hxx>
41 uno::Sequence<beans::PropertyValue> aValue;
45 for (beans::PropertyValue
const& aPropertyValue : std::as_const(aValue))
47 m_aMap[aPropertyValue.Name] = aPropertyValue.Value;
52 SAL_WARN(
"svl",
"SfxGrabBagItem::PutValue: wrong type");
58 uno::Sequence<beans::PropertyValue> aValue(
m_aMap.size());
59 beans::PropertyValue* pValue = aValue.getArray();
62 pValue[0].Name =
i.first;
63 pValue[0].Value =
i.second;
Grab bag item provides a string-any map for keys with untyped values.
SfxGrabBagItem * Clone(SfxItemPool *pPool=nullptr) const override
bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
bool operator==(const SfxPoolItem &rItem) const override
std::map< OUString, css::uno::Any > m_aMap
~SfxGrabBagItem() override
bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Base class for providers of defaults of SfxPoolItems.
virtual bool operator==(const SfxPoolItem &) const =0
#define SAL_WARN(area, stream)