21#include <svx/svxids.hrc>
29using namespace css::uno;
35 const css::uno::Reference<css::frame::XFrame>& rxFrame,
38 maStyleControl(SID_ATTR_FILL_STYLE, *pBindings, *this),
39 maColorControl(SID_ATTR_FILL_COLOR, *pBindings, *this),
40 maGradientControl(SID_ATTR_FILL_GRADIENT, *pBindings, *this),
41 maHatchControl(SID_ATTR_FILL_HATCH, *pBindings, *this),
42 maBitmapControl(SID_ATTR_FILL_BITMAP, *pBindings, *this),
43 maGradientListControl(SID_GRADIENT_LIST, *pBindings, *this),
44 maHatchListControl(SID_HATCH_LIST, *pBindings, *this),
45 maBitmapListControl(SID_BITMAP_LIST, *pBindings, *this),
46 maPatternListControl(SID_PATTERN_LIST, *pBindings, *this),
47 maFillTransparenceController(SID_ATTR_FILL_TRANSPARENCE, *pBindings, *this),
48 maFillFloatTransparenceController(SID_ATTR_FILL_FLOATTRANSPARENCE, *pBindings, *this),
49 maFillUseSlideBackgroundController(SID_ATTR_FILL_USE_SLIDE_BACKGROUND, *pBindings, *this),
71 const css::uno::Reference<css::frame::XFrame>& rxFrame,
74 if (pParent ==
nullptr)
75 throw lang::IllegalArgumentException(
"no parent Window given to AreaPropertyPanel::Create",
nullptr, 0);
77 throw lang::IllegalArgumentException(
"no XFrame given to AreaPropertyPanel::Create",
nullptr, 1);
78 if (pBindings ==
nullptr)
79 throw lang::IllegalArgumentException(
"no SfxBindings given to AreaPropertyPanel::Create",
nullptr, 2);
81 return std::make_unique<AreaPropertyPanel>(pParent, rxFrame, pBindings);
87 SfxCallMode::RECORD, { &rItem });
95 auto state = pDispatcher->
QueryState(SID_ATTR_FILL_USE_SLIDE_BACKGROUND, pItem);
97 if (state == SfxItemState::DISABLED)
103 pDispatcher->ExecuteList(SID_ATTR_FILL_USE_SLIDE_BACKGROUND, SfxCallMode::RECORD,
104 std::initializer_list<SfxPoolItem const*>{ &rItem, pStyleItem });
111 SfxCallMode::RECORD, { &rItem });
117 SfxCallMode::RECORD, { &rItem });
124 SfxCallMode::RECORD, pStyleItem
125 ? std::initializer_list<SfxPoolItem const*>{ &rColorItem, pStyleItem }
126 : std::initializer_list<SfxPoolItem const*>{ &rColorItem });
133 SfxCallMode::RECORD, pStyleItem
134 ? std::initializer_list<SfxPoolItem const*>{ &rGradientItem, pStyleItem }
135 : std::initializer_list<SfxPoolItem const*>{ &rGradientItem });
142 SfxCallMode::RECORD, pStyleItem
143 ? std::initializer_list<SfxPoolItem const*>{ &rHatchItem, pStyleItem }
144 : std::initializer_list<SfxPoolItem const*>{ &rHatchItem });
151 SfxCallMode::RECORD, pStyleItem
152 ? std::initializer_list<SfxPoolItem const*>{ &rBitmapItem, pStyleItem }
153 : std::initializer_list<SfxPoolItem const*>{ &rBitmapItem });
SfxDispatcher * GetDispatcher() const
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
SfxItemState QueryState(sal_uInt16 nSID, const SfxPoolItem *&rpState)
Item to enable slide background for filled objects.