21#include <svx/svxids.hrc>
28#include <com/sun/star/lang/IllegalArgumentException.hpp>
31using namespace css::uno;
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),
63 const uno::Reference<css::frame::XFrame>& rxFrame,
66 if (pParent ==
nullptr)
67 throw lang::IllegalArgumentException(
"no parent Window given to LinePropertyPanel::Create",
nullptr, 0);
69 throw lang::IllegalArgumentException(
"no XFrame given to LinePropertyPanel::Create",
nullptr, 1);
70 if (pBindings ==
nullptr)
71 throw lang::IllegalArgumentException(
"no SfxBindings given to LinePropertyPanel::Create",
nullptr, 2);
73 return std::make_unique<LinePropertyPanel>(pParent, rxFrame, pBindings);
81 const bool bDisabled(SfxItemState::DISABLED == eState);
82 const bool bSetOrDefault = eState >= SfxItemState::DEFAULT;
86 case SID_ATTR_LINE_TRANSPARENCE:
91 case SID_ATTR_LINE_WIDTH:
96 case SID_ATTR_LINE_JOINT:
101 case SID_ATTR_LINE_CAP:
120 bool bShowArrows =
false;
142 SfxCallMode::RECORD, { pItem });
148 SfxCallMode::RECORD, { pItem });
154 SfxCallMode::RECORD, { &rItem });
160 SfxCallMode::RECORD, { &rItem });
#define CombinedEnumContext(a, e)
SfxDispatcher * GetDispatcher() const
MapUnit GetCoreMetric() 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 * >())
sal_Int32 GetCombinedContext_DI() const