19#include <svx/svxids.hrc>
25 :
PanelLayout(pParent,
"EffectPropertyPanel",
"svx/ui/sidebareffect.ui")
26 , maGlowColorController(SID_ATTR_GLOW_COLOR, *pBindings, *this)
27 , maGlowRadiusController(SID_ATTR_GLOW_RADIUS, *pBindings, *this)
28 , maGlowTransparencyController(SID_ATTR_GLOW_TRANSPARENCY, *pBindings, *this)
29 , mxFTTransparency(m_xBuilder->weld_label(
"transparency"))
30 , maSoftEdgeRadiusController(SID_ATTR_SOFTEDGE_RADIUS, *pBindings, *this)
31 , mpBindings(pBindings)
32 , mxGlowRadius(m_xBuilder->weld_metric_spin_button(
"LB_GLOW_RADIUS",
FieldUnit::
POINT))
33 , mxLBGlowColor(new
ColorListBox(m_xBuilder->weld_menu_button(
"LB_GLOW_COLOR"),
36 m_xBuilder->weld_metric_spin_button(
"LB_GLOW_TRANSPARENCY", FieldUnit::PERCENT))
37 , mxFTColor(m_xBuilder->weld_label(
"glowcolorlabel"))
38 , mxSoftEdgeRadius(m_xBuilder->weld_metric_spin_button(
"SB_SOFTEDGE_RADIUS", FieldUnit::POINT))
71 mpBindings->GetDispatcher()->ExecuteList(SID_ATTR_SOFTEDGE_RADIUS, SfxCallMode::RECORD,
78 mpBindings->GetDispatcher()->ExecuteList(SID_ATTR_GLOW_COLOR, SfxCallMode::RECORD, { &aItem });
84 mpBindings->GetDispatcher()->ExecuteList(SID_ATTR_GLOW_RADIUS, SfxCallMode::RECORD, { &aItem });
90 mxGlowTransparency->get_value(FieldUnit::PERCENT));
91 mpBindings->GetDispatcher()->ExecuteList(SID_ATTR_GLOW_TRANSPARENCY, SfxCallMode::RECORD,
97 const bool bEnabled =
mxGlowRadius->get_value(FieldUnit::MM_100TH) != 0;
109 case SID_ATTR_SOFTEDGE_RADIUS:
111 if (eState >= SfxItemState::DEFAULT)
121 case SID_ATTR_GLOW_COLOR:
123 if (eState >= SfxItemState::DEFAULT)
133 case SID_ATTR_GLOW_RADIUS:
135 if (eState >= SfxItemState::DEFAULT)
145 case SID_ATTR_GLOW_TRANSPARENCY:
147 if (eState >= SfxItemState::DEFAULT)
163 if (pParent ==
nullptr)
164 throw css::lang::IllegalArgumentException(
165 "no parent Window given to EffectPropertyPanel::Create",
nullptr, 0);
166 if (pBindings ==
nullptr)
167 throw css::lang::IllegalArgumentException(
168 "no SfxBindings given to EffectPropertyPanel::Create",
nullptr, 2);
170 return std::make_unique<EffectPropertyPanel>(pParent, pBindings);
sal_Int32 GetValue() const
virtual weld::Window * GetFrameWeld() const
const Color & GetColorValue() const
#define LINK(Instance, Class, Member)
constexpr TypedWhichId< SdrPercentItem > SDRATTR_GLOW_TRANSPARENCY(SDRATTR_GLOW_FIRST+2)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_GLOW_RADIUS(SDRATTR_GLOW_FIRST+0)
constexpr TypedWhichId< XColorItem > SDRATTR_GLOW_COLOR(SDRATTR_GLOW_FIRST+1)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_SOFTEDGE_RADIUS(SDRATTR_SOFTEDGE_FIRST+0)