32#include <com/sun/star/frame/XDispatchProvider.hpp>
33#include <com/sun/star/frame/XFrame.hpp>
43 SdrEscapeDirection::SMART,
44 SdrEscapeDirection::LEFT,
45 SdrEscapeDirection::RIGHT,
46 SdrEscapeDirection::TOP,
47 SdrEscapeDirection::BOTTOM
58 , m_xWidget(m_xBuilder->weld_combo_box("gluetype"))
67 SetSizePixel(
m_xWidget->get_preferred_size());
91 return ChildKeyInput(rKEvt);
99 sal_Int32
nPos = rBox.get_active();
108 ".uno:GlueEscapeDirection",
149 if( eState == SfxItemState::DEFAULT )
152 GetItemWindow(
GetId() ) );
css::uno::Reference< css::lang::XComponent > m_xFrame
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
std::unique_ptr< weld::ComboBox > m_xWidget
void set_active(int nPos)
void Fill()
Fills the Listbox with strings.
void set_sensitive(bool bSensitive)
virtual void dispose() override
virtual ~GlueEscDirLB() override
virtual void dispose() override
Toolbox controller for glue-point escape direction.
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
static sal_uInt16 GetEscDirPos(SdrEscapeDirection nEscDir)
Returns position in the array for EscDir (Mapping for Listbox)
SdTbxCtlGlueEscDir(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
Constructor for gluepoint escape direction toolbox control.
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSId, SfxItemState eState, const SfxPoolItem *pState) override
Represents state in the listbox of the controller.
static VclPtr< reference_type > Create(Arg &&... arg)
void Enable(bool bEnable=true, bool bChild=true)
const SdrEscapeDirection aEscDirArray[]
IMPL_LINK(GlueEscDirLB, KeyInputHdl, const KeyEvent &, rKEvt, bool)
#define LINK(Instance, Class, Member)
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
bool IsInvalidItem(const SfxPoolItem *pItem)
OUString SdResId(TranslateId aId)
SFX_IMPL_TOOLBOX_CONTROL(SwTbxAutoTextCtrl, SfxVoidItem)