21#include <com/sun/star/gallery/GalleryItemType.hpp>
22#include <com/sun/star/graphic/XGraphic.hpp>
23#include <com/sun/star/lang/XComponent.hpp>
24#include <com/sun/star/beans/PropertyValue.hpp>
25#include <com/sun/star/uno/Sequence.hxx>
35 : m_nType( css::gallery::GalleryItemType::
EMPTY )
41 , m_nType( rItem.m_nType )
43 , m_xDrawing( rItem.m_xDrawing )
44 , m_xGraphic( rItem.m_xGraphic )
54 css::uno::Sequence< css::beans::PropertyValue >
aSeq{
70 css::uno::Sequence< css::beans::PropertyValue >
aSeq;
76 bool bAllConverted(
true );
79 OUString
aURL, aFilterName;
80 css::uno::Reference< css::lang::XComponent > xDrawing;
81 css::uno::Reference< css::graphic::XGraphic > xGraphic;
83 for (
const css::beans::PropertyValue& rProp : std::as_const(
aSeq) )
87 bAllConverted &= ( rProp.Value >>=
nType );
92 bAllConverted &= ( rProp.Value >>=
aURL );
97 bAllConverted &= ( rProp.Value >>= aFilterName );
102 bAllConverted &= ( rProp.Value >>= xDrawing );
107 bAllConverted &= ( rProp.Value >>= xGraphic );
125 assert(SfxPoolItem::operator==(rAttr));
static SfxPoolItem * CreateDefault()
css::uno::Reference< css::graphic::XGraphic > m_xGraphic
virtual ~SvxGalleryItem() override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
css::uno::Reference< css::lang::XComponent > m_xDrawing
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool operator==(const SfxPoolItem &) const override
virtual SvxGalleryItem * Clone(SfxItemPool *pPool=nullptr) const override
constexpr OUStringLiteral SVXGALLERYITEM_DRAWING
constexpr OUStringLiteral SVXGALLERYITEM_GRAPHIC
constexpr OUStringLiteral SVXGALLERYITEM_TYPE
constexpr OUStringLiteral SVXGALLERYITEM_FILTER
constexpr OUStringLiteral SVXGALLERYITEM_URL
#define SVXGALLERYITEM_PARAMS
Sequence< sal_Int8 > aSeq
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
constexpr OUStringLiteral EMPTY