21 #include <svx/svxids.hrc>
28 #include <com/sun/star/lang/IllegalArgumentException.hpp>
35 LinePropertyPanel::LinePropertyPanel(
37 const uno::Reference<css::frame::XFrame>& rxFrame,
40 maStyleControl(SID_ATTR_LINE_STYLE, *pBindings, *this),
41 maDashControl (SID_ATTR_LINE_DASH, *pBindings, *this),
42 maWidthControl(SID_ATTR_LINE_WIDTH, *pBindings, *this),
43 maTransControl(SID_ATTR_LINE_TRANSPARENCE, *pBindings, *this),
44 maEdgeStyle(SID_ATTR_LINE_JOINT, *pBindings, *this),
45 maCapStyle(SID_ATTR_LINE_CAP, *pBindings, *this),
46 mpBindings(pBindings),
64 const uno::Reference<css::frame::XFrame>& rxFrame,
67 if (pParent ==
nullptr)
68 throw lang::IllegalArgumentException(
"no parent Window given to LinePropertyPanel::Create",
nullptr, 0);
70 throw lang::IllegalArgumentException(
"no XFrame given to LinePropertyPanel::Create",
nullptr, 1);
71 if (pBindings ==
nullptr)
72 throw lang::IllegalArgumentException(
"no SfxBindings given to LinePropertyPanel::Create",
nullptr, 2);
74 return std::make_unique<LinePropertyPanel>(pParent, rxFrame, pBindings);
82 const bool bDisabled(SfxItemState::DISABLED == eState);
83 const bool bSetOrDefault = eState >= SfxItemState::DEFAULT;
87 case SID_ATTR_LINE_TRANSPARENCE:
92 case SID_ATTR_LINE_WIDTH:
97 case SID_ATTR_LINE_JOINT:
102 case SID_ATTR_LINE_CAP:
121 bool bShowArrows =
false;
143 SfxCallMode::RECORD, { pItem });
149 SfxCallMode::RECORD, { pItem });
155 SfxCallMode::RECORD, { &rItem });
161 SfxCallMode::RECORD, { &rItem });
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 * >())
SlideShowContext maContext
MapUnit GetCoreMetric() const
sal_Int32 GetCombinedContext_DI() const
SfxDispatcher * GetDispatcher() const
#define CombinedEnumContext(a, e)