LibreOffice Module basctl (master) 1
Public Member Functions | List of all members
basctl::LibBoxControl Class Reference

Manage states of macro and dialog Library ComboBox. More...

#include <IDEComboBox.hxx>

Inheritance diagram for basctl::LibBoxControl:
[legend]
Collaboration diagram for basctl::LibBoxControl:
[legend]

Public Member Functions

 SFX_DECL_TOOLBOX_CONTROL ()
 
 LibBoxControl (sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
 
virtual void StateChangedAtToolBoxControl (sal_uInt16 nSlotID, SfxItemState eState, const SfxPoolItem *pState) override
 
virtual VclPtr< InterimItemWindowCreateItemWindow (vcl::Window *pParent) override
 
- Public Member Functions inherited from SfxToolBoxControl
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override
 
virtual void SAL_CALL execute (sal_Int16 KeyModifier) override
 
virtual void SAL_CALL click () override
 
virtual void SAL_CALL doubleClick () override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createPopupWindow () override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createItemWindow (const css::uno::Reference< css::awt::XWindow > &rParent) override
 
 SFX_DECL_TOOLBOX_CONTROL ()
 
 SfxToolBoxControl (sal_uInt16 nSlotID, ToolBoxItemId nId, ToolBox &rBox, bool bShowStrings=false)
 
virtual ~SfxToolBoxControl () override
 
ToolBoxGetToolBox () const
 
ToolBoxItemId GetId () const
 
unsigned short GetSlotId () const
 
void Dispatch (const OUString &aCommand, css::uno::Sequence< css::beans::PropertyValue > const &aArgs)
 

Additional Inherited Members

- Static Public Member Functions inherited from SfxToolBoxControl
static void Dispatch (const css::uno::Reference< css::frame::XDispatchProvider > &rDispatchProvider, const OUString &rCommand, css::uno::Sequence< css::beans::PropertyValue > const &aArgs)
 
static SfxItemState GetItemState (const SfxPoolItem *pState)
 
static rtl::Reference< SfxToolBoxControlCreateControl (sal_uInt16 nSlotId, ToolBoxItemId nTbxId, ToolBox *pBox, SfxModule const *pMod)
 
static void RegisterToolBoxControl (SfxModule *, const SfxTbxCtrlFactory &)
 
- Protected Member Functions inherited from SfxToolBoxControl
virtual void StateChangedAtToolBoxControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState)
 
virtual void Select (sal_uInt16 nSelectModifier)
 
virtual void DoubleClick ()
 
virtual void Click ()
 
virtual void CreatePopupWindow ()
 
virtual VclPtr< InterimItemWindowCreateItemWindow (vcl::Window *pParent)
 

Detailed Description

Manage states of macro and dialog Library ComboBox.

See also
LibBox Class

Definition at line 36 of file IDEComboBox.hxx.

Constructor & Destructor Documentation

◆ LibBoxControl()

basctl::LibBoxControl::LibBoxControl ( sal_uInt16  nSlotId,
ToolBoxItemId  nId,
ToolBox rTbx 
)
Parameters
nSlotId– the slot as internal operation number
nId– this item's unique id in ToolBox
rTbx– the ToolBox which contains this ComboBox

Definition at line 62 of file IDEComboBox.cxx.

References nId.

Member Function Documentation

◆ CreateItemWindow()

VclPtr< InterimItemWindow > basctl::LibBoxControl::CreateItemWindow ( vcl::Window pParent)
overridevirtual

Create combobox of Macro and Dialog Library

Parameters
pParent– parent window
Returns
ComboBox of macro and dialog Library

Reimplemented from SfxToolBoxControl.

Definition at line 85 of file IDEComboBox.cxx.

References VclPtr< class reference_type >::Create().

◆ SFX_DECL_TOOLBOX_CONTROL()

basctl::LibBoxControl::SFX_DECL_TOOLBOX_CONTROL ( )

Macro for registering two methods

static SfxToolBoxControl* CreateImpl(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx)
static void RegisterControl(sal_uInt16 nSlotId = 0, SfxModule* pMod=nullptr)
See also
Macro SFX_IMPL_TOOLBOX_CONTROL

◆ StateChangedAtToolBoxControl()

void basctl::LibBoxControl::StateChangedAtToolBoxControl ( sal_uInt16  nSlotID,
SfxItemState  eState,
const SfxPoolItem pState 
)
overridevirtual

Triggered if state was changed

Parameters
nSlotID– the slot as internal operation number (not used in this place)
eState– enum value which contains ComboBox state
pState

Reimplemented from SfxToolBoxControl.

Definition at line 67 of file IDEComboBox.cxx.

References DBG_ASSERT, SfxToolBoxControl::GetId(), ToolBox::GetItemWindow(), SfxToolBoxControl::GetToolBox(), basctl::DocListenerBox::set_sensitive(), and basctl::LibBox::Update().


The documentation for this class was generated from the following files: