LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
SfxToolBoxControl Class Reference

#include <tbxctrl.hxx>

Inheritance diagram for SfxToolBoxControl:
[legend]
Collaboration diagram for SfxToolBoxControl:
[legend]

Public Member Functions

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)
 
- Public Member Functions inherited from svt::ToolboxController
 ToolboxController (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &xFrame, OUString aCommandURL)
 
 ToolboxController ()
 
virtual ~ToolboxController () override
 
css::uno::Reference< css::frame::XFrame > getFrameInterface () const
 
const css::uno::Reference< css::uno::XComponentContext > & getContext () const
 
css::uno::Reference< css::frame::XLayoutManager > getLayoutManager () const
 
void updateStatus (const OUString &aCommandURL)
 
void updateStatus ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual void SAL_CALL update () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override=0
 
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 > &Parent) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
const OUString & getCommandURL () const
 
const OUString & getModuleName () const
 
void dispatchCommand (const OUString &sCommandURL, const css::uno::Sequence< css::beans::PropertyValue > &rArgs, const OUString &rTarget=OUString())
 
void enable (bool bEnable)
 
bool IsInSidebar () const
 

Static Public Member Functions

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

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)
 
- Protected Member Functions inherited from svt::ToolboxController
bool getToolboxId (ToolBoxItemId &rItemId, ToolBox **ppToolBox)
 
 DECL_DLLPRIVATE_STATIC_LINK (ToolboxController, ExecuteHdl_Impl, void *, void)
 
void addStatusListener (const OUString &aCommandURL)
 
void removeStatusListener (const OUString &aCommandURL)
 
void bindListener ()
 
void unbindListener ()
 
const css::uno::Reference< css::util::XURLTransformer > & getURLTransformer () const
 
const css::uno::Reference< css::awt::XWindow > & getParent () const
 

Private Attributes

std::unique_ptr< SfxToolBoxControl_ImplpImpl
 

Friends

struct SfxTbxCtrlFactory
 

Additional Inherited Members

- Protected Types inherited from svt::ToolboxController
typedef std::unordered_map< OUString, css::uno::Reference< css::frame::XDispatch > > URLToDispatchMap
 
- Protected Attributes inherited from svt::ToolboxController
bool m_bInitialized
 
bool m_bDisposed
 
bool m_bSidebar
 
ToolBoxItemId m_nToolBoxId
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
OUString m_aCommandURL
 
URLToDispatchMap m_aListenerMap
 
comphelper::OMultiTypeInterfaceContainerHelper2 m_aListenerContainer
 
css::uno::Reference< css::awt::XWindow > m_xParentWindow
 
css::uno::Reference< css::util::XURLTransformer > m_xUrlTransformer
 
OUString m_sModuleName
 
weld::Toolbarm_pToolbar
 
weld::Builderm_pBuilder
 

Detailed Description

Definition at line 72 of file tbxctrl.hxx.

Constructor & Destructor Documentation

◆ SfxToolBoxControl()

SfxToolBoxControl::SfxToolBoxControl ( sal_uInt16  nSlotID,
ToolBoxItemId  nId,
ToolBox rBox,
bool  bShowStrings = false 
)

Definition at line 120 of file tbxitem.cxx.

References pImpl.

◆ ~SfxToolBoxControl()

SfxToolBoxControl::~SfxToolBoxControl ( )
overridevirtual

Definition at line 134 of file tbxitem.cxx.

Member Function Documentation

◆ Click()

void SfxToolBoxControl::Click ( )
protectedvirtual

Definition at line 492 of file tbxitem.cxx.

Referenced by click().

◆ click()

void SAL_CALL SfxToolBoxControl::click ( )
overridevirtual

Reimplemented from svt::ToolboxController.

Definition at line 396 of file tbxitem.cxx.

References Click().

◆ CreateControl()

rtl::Reference< SfxToolBoxControl > SfxToolBoxControl::CreateControl ( sal_uInt16  nSlotId,
ToolBoxItemId  nTbxId,
ToolBox pBox,
SfxModule const *  pMod 
)
static

◆ createItemWindow()

Reference< css::awt::XWindow > SAL_CALL SfxToolBoxControl::createItemWindow ( const css::uno::Reference< css::awt::XWindow > &  rParent)
overridevirtual

Reimplemented from svt::ToolboxController.

Definition at line 415 of file tbxitem.cxx.

References CreateItemWindow(), VCLUnoHelper::GetInterface(), and VCLUnoHelper::GetWindow().

◆ CreateItemWindow()

VclPtr< InterimItemWindow > SfxToolBoxControl::CreateItemWindow ( vcl::Window pParent)
protectedvirtual

Reimplemented in SfxURLToolBoxControl_Impl.

Definition at line 500 of file tbxitem.cxx.

Referenced by createItemWindow().

◆ CreatePopupWindow()

void SfxToolBoxControl::CreatePopupWindow ( )
protectedvirtual

Definition at line 496 of file tbxitem.cxx.

Referenced by createPopupWindow().

◆ createPopupWindow()

Reference< css::awt::XWindow > SAL_CALL SfxToolBoxControl::createPopupWindow ( )
overridevirtual

Reimplemented from svt::ToolboxController.

Definition at line 408 of file tbxitem.cxx.

References CreatePopupWindow().

◆ Dispatch() [1/2]

static void SfxToolBoxControl::Dispatch ( const css::uno::Reference< css::frame::XDispatchProvider > &  rDispatchProvider,
const OUString &  rCommand,
css::uno::Sequence< css::beans::PropertyValue > const &  aArgs 
)
static

◆ Dispatch() [2/2]

void SfxToolBoxControl::Dispatch ( const OUString &  aCommand,
css::uno::Sequence< css::beans::PropertyValue > const &  aArgs 
)

◆ dispose()

void SAL_CALL SfxToolBoxControl::dispose ( void  )
overridevirtual

◆ DoubleClick()

void SfxToolBoxControl::DoubleClick ( )
protectedvirtual

Definition at line 487 of file tbxitem.cxx.

Referenced by doubleClick().

◆ doubleClick()

void SAL_CALL SfxToolBoxControl::doubleClick ( )
overridevirtual

Reimplemented from svt::ToolboxController.

Definition at line 402 of file tbxitem.cxx.

References DoubleClick().

◆ execute()

void SAL_CALL SfxToolBoxControl::execute ( sal_Int16  KeyModifier)
overridevirtual

Reimplemented from svt::ToolboxController.

Definition at line 390 of file tbxitem.cxx.

References Select().

◆ GetId()

ToolBoxItemId SfxToolBoxControl::GetId ( ) const

Definition at line 143 of file tbxitem.cxx.

References pImpl.

Referenced by SfxURLToolBoxControl_Impl::GetURLBoxItemWindow(), and StateChangedAtToolBoxControl().

◆ GetItemState()

SfxItemState SfxToolBoxControl::GetItemState ( const SfxPoolItem pState)
static

Definition at line 202 of file tbxitem.cxx.

References IsInvalidItem(), SfxPoolItem::IsVoidItem(), and SfxPoolItem::Which().

◆ GetSlotId()

unsigned short SfxToolBoxControl::GetSlotId ( ) const

Definition at line 147 of file tbxitem.cxx.

References pImpl.

Referenced by statusChanged().

◆ GetToolBox()

ToolBox & SfxToolBoxControl::GetToolBox ( ) const

Definition at line 139 of file tbxitem.cxx.

References pImpl.

Referenced by SfxURLToolBoxControl_Impl::GetURLBoxItemWindow().

◆ RegisterToolBoxControl()

void SfxToolBoxControl::RegisterToolBoxControl ( SfxModule pMod,
const SfxTbxCtrlFactory rFact 
)
static

Definition at line 168 of file tbxitem.cxx.

References SfxApplication::RegisterToolBoxControl_Impl(), and SfxGetpApp().

◆ Select()

void SfxToolBoxControl::Select ( sal_uInt16  nSelectModifier)
protectedvirtual

Definition at line 481 of file tbxitem.cxx.

References svt::ToolboxController::execute().

Referenced by execute().

◆ SFX_DECL_TOOLBOX_CONTROL()

SfxToolBoxControl::SFX_DECL_TOOLBOX_CONTROL ( )

References GetId().

◆ StateChangedAtToolBoxControl()

void SfxToolBoxControl::StateChangedAtToolBoxControl ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState 
)
protectedvirtual

Reimplemented in SfxURLToolBoxControl_Impl.

Definition at line 421 of file tbxitem.cxx.

References DBG_ASSERT, GetId(), pImpl, TRISTATE_FALSE, TRISTATE_INDET, and TRISTATE_TRUE.

Referenced by statusChanged().

◆ statusChanged()

void SAL_CALL SfxToolBoxControl::statusChanged ( const css::frame::FeatureStateEvent &  Event)
overridevirtual

Friends And Related Function Documentation

◆ SfxTbxCtrlFactory

friend struct SfxTbxCtrlFactory
friend

Definition at line 74 of file tbxctrl.hxx.

Member Data Documentation

◆ pImpl

std::unique_ptr< SfxToolBoxControl_Impl> SfxToolBoxControl::pImpl
private

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