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

#include <stbitem.hxx>

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

Public Member Functions

virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
 SfxStatusBarControl (sal_uInt16 nSlotID, sal_uInt16 nId, StatusBar &rBar)
 
virtual ~SfxStatusBarControl () override
 
sal_uInt16 GetSlotId () const
 
sal_uInt16 GetId () const
 
StatusBarGetStatusBar () const
 
- Public Member Functions inherited from svt::StatusbarController
 StatusbarController (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &xFrame, OUString aCommandURL, unsigned short nID)
 
 StatusbarController ()
 
virtual ~StatusbarController () override
 
css::uno::Reference< css::frame::XFrame > getFrameInterface () const
 
css::uno::Reference< css::util::XURLTransformer > getURLTransformer () const
 
::tools::Rectangle getControlRect () const
 
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 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
 
virtual sal_Bool SAL_CALL mouseButtonDown (const css::awt::MouseEvent &aMouseEvent) override
 
virtual sal_Bool SAL_CALL mouseMove (const css::awt::MouseEvent &aMouseEvent) override
 
virtual sal_Bool SAL_CALL mouseButtonUp (const css::awt::MouseEvent &aMouseEvent) override
 
virtual void SAL_CALL command (const css::awt::Point &aPos, ::sal_Int32 nCommand, sal_Bool bMouseEvent, const css::uno::Any &aData) override
 
virtual void SAL_CALL paint (const css::uno::Reference< css::awt::XGraphics > &xGraphics, const css::awt::Rectangle &rOutputRectangle, ::sal_Int32 nStyle) override
 
virtual void SAL_CALL click (const css::awt::Point &aPos) override
 
virtual void SAL_CALL doubleClick (const css::awt::Point &aPos) override
 

Static Public Member Functions

static rtl::Reference< SfxStatusBarControlCreateControl (sal_uInt16 nSlotID, sal_uInt16 nId, StatusBar *pBar, SfxModule const *)
 
static void RegisterStatusBarControl (SfxModule *, const SfxStbCtrlFactory &)
 

Protected Member Functions

virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override
 
virtual sal_Bool SAL_CALL mouseButtonDown (const css::awt::MouseEvent &aMouseEvent) override
 
virtual sal_Bool SAL_CALL mouseMove (const css::awt::MouseEvent &aMouseEvent) override
 
virtual sal_Bool SAL_CALL mouseButtonUp (const css::awt::MouseEvent &aMouseEvent) override
 
virtual void SAL_CALL command (const css::awt::Point &aPos, ::sal_Int32 nCommand, sal_Bool bMouseEvent, const css::uno::Any &aData) override
 
virtual void SAL_CALL paint (const css::uno::Reference< css::awt::XGraphics > &xGraphics, const css::awt::Rectangle &rOutputRectangle, ::sal_Int32 nStyle) override
 
virtual void SAL_CALL click (const css::awt::Point &aPos) override
 
virtual void SAL_CALL doubleClick (const css::awt::Point &aPos) override
 
virtual void StateChangedAtStatusBarControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState)
 
virtual void Click ()
 
virtual void Command (const CommandEvent &rCEvt)
 
virtual bool MouseButtonDown (const MouseEvent &)
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void Paint (const UserDrawEvent &rUDEvt)
 
- Protected Member Functions inherited from svt::StatusbarController
void addStatusListener (const OUString &aCommandURL)
 
void bindListener ()
 
void execute (const css::uno::Sequence< css::beans::PropertyValue > &aArgs)
 
void execute (const OUString &aCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)
 

Static Protected Member Functions

static sal_uInt16 convertAwtToVCLMouseButtons (sal_Int16 nAwtMouseButtons)
 

Private Attributes

sal_uInt16 nSlotId
 
sal_uInt16 nId
 
VclPtr< StatusBarpBar
 

Additional Inherited Members

- Protected Types inherited from svt::StatusbarController
typedef std::unordered_map< OUString, css::uno::Reference< css::frame::XDispatch > > URLToDispatchMap
 
- Protected Attributes inherited from svt::StatusbarController
bool m_bInitialized
 
bool m_bDisposed
 
unsigned short m_nID
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
css::uno::Reference< css::awt::XWindow > m_xParentWindow
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
OUString m_aCommandURL
 
URLToDispatchMap m_aListenerMap
 
comphelper::OMultiTypeInterfaceContainerHelper2 m_aListenerContainer
 
css::uno::Reference< css::util::XURLTransformer > m_xURLTransformer
 
css::uno::Reference< css::ui::XStatusbarItem > m_xStatusbarItem
 

Detailed Description

Definition at line 58 of file stbitem.hxx.

Constructor & Destructor Documentation

◆ SfxStatusBarControl()

SfxStatusBarControl::SfxStatusBarControl ( sal_uInt16  nSlotID,
sal_uInt16  nId,
StatusBar rBar 
)

Definition at line 117 of file stbitem.cxx.

References nId.

◆ ~SfxStatusBarControl()

SfxStatusBarControl::~SfxStatusBarControl ( )
overridevirtual

Definition at line 148 of file stbitem.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL SfxStatusBarControl::acquire ( )
overridevirtualnoexcept

Reimplemented from svt::StatusbarController.

Definition at line 160 of file stbitem.cxx.

◆ Click()

void SfxStatusBarControl::Click ( )
protectedvirtual

Definition at line 477 of file stbitem.cxx.

References svt::StatusbarController::execute().

Referenced by click().

◆ click()

void SAL_CALL SfxStatusBarControl::click ( const css::awt::Point &  aPos)
overrideprotectedvirtual

Reimplemented from svt::StatusbarController.

Definition at line 339 of file stbitem.cxx.

References Click().

◆ Command()

void SfxStatusBarControl::Command ( const CommandEvent rCEvt)
protectedvirtual

Definition at line 463 of file stbitem.cxx.

Referenced by command().

◆ command()

void SAL_CALL SfxStatusBarControl::command ( const css::awt::Point &  aPos,
::sal_Int32  nCommand,
sal_Bool  bMouseEvent,
const css::uno::Any &  aData 
)
overrideprotectedvirtual

Reimplemented from svt::StatusbarController.

Definition at line 310 of file stbitem.cxx.

References Command().

◆ convertAwtToVCLMouseButtons()

sal_uInt16 SfxStatusBarControl::convertAwtToVCLMouseButtons ( sal_Int16  nAwtMouseButtons)
staticprotected

Definition at line 54 of file stbitem.cxx.

References MOUSE_LEFT, MOUSE_MIDDLE, and MOUSE_RIGHT.

Referenced by mouseButtonDown(), mouseButtonUp(), and mouseMove().

◆ CreateControl()

rtl::Reference< SfxStatusBarControl > SfxStatusBarControl::CreateControl ( sal_uInt16  nSlotID,
sal_uInt16  nId,
StatusBar pBar,
SfxModule const *  pMod 
)
static

◆ doubleClick()

void SAL_CALL SfxStatusBarControl::doubleClick ( const css::awt::Point &  aPos)
overrideprotectedvirtual

Reimplemented from svt::StatusbarController.

Definition at line 345 of file stbitem.cxx.

◆ GetId()

sal_uInt16 SfxStatusBarControl::GetId ( ) const
inline

Definition at line 111 of file stbitem.hxx.

References nId.

◆ GetSlotId()

sal_uInt16 SfxStatusBarControl::GetSlotId ( ) const
inline

Definition at line 110 of file stbitem.hxx.

◆ GetStatusBar()

StatusBar & SfxStatusBarControl::GetStatusBar ( ) const
inline

Definition at line 112 of file stbitem.hxx.

◆ mouseButtonDown()

sal_Bool SAL_CALL SfxStatusBarControl::mouseButtonDown ( const css::awt::MouseEvent &  aMouseEvent)
overrideprotectedvirtual

Reimplemented from svt::StatusbarController.

Definition at line 267 of file stbitem.cxx.

References convertAwtToVCLMouseButtons(), and MouseButtonDown().

◆ MouseButtonDown()

bool SfxStatusBarControl::MouseButtonDown ( const MouseEvent )
protectedvirtual

Definition at line 385 of file stbitem.cxx.

Referenced by mouseButtonDown().

◆ mouseButtonUp()

sal_Bool SAL_CALL SfxStatusBarControl::mouseButtonUp ( const css::awt::MouseEvent &  aMouseEvent)
overrideprotectedvirtual

Reimplemented from svt::StatusbarController.

Definition at line 296 of file stbitem.cxx.

References convertAwtToVCLMouseButtons(), and MouseButtonUp().

◆ MouseButtonUp()

bool SfxStatusBarControl::MouseButtonUp ( const MouseEvent )
protectedvirtual

Definition at line 437 of file stbitem.cxx.

Referenced by mouseButtonUp().

◆ mouseMove()

sal_Bool SAL_CALL SfxStatusBarControl::mouseMove ( const css::awt::MouseEvent &  aMouseEvent)
overrideprotectedvirtual

Reimplemented from svt::StatusbarController.

Definition at line 282 of file stbitem.cxx.

References convertAwtToVCLMouseButtons(), and MouseMove().

◆ MouseMove()

bool SfxStatusBarControl::MouseMove ( const MouseEvent )
protectedvirtual

Definition at line 411 of file stbitem.cxx.

Referenced by mouseMove().

◆ paint()

void SAL_CALL SfxStatusBarControl::paint ( const css::uno::Reference< css::awt::XGraphics > &  xGraphics,
const css::awt::Rectangle &  rOutputRectangle,
::sal_Int32  nStyle 
)
overrideprotectedvirtual

Reimplemented from svt::StatusbarController.

Definition at line 323 of file stbitem.cxx.

References VCLUnoHelper::GetOutputDevice(), Paint(), pBar, and VCLRectangle().

◆ Paint()

void SfxStatusBarControl::Paint ( const UserDrawEvent rUDEvt)
protectedvirtual

Definition at line 491 of file stbitem.cxx.

Referenced by paint().

◆ RegisterStatusBarControl()

void SfxStatusBarControl::RegisterStatusBarControl ( SfxModule pMod,
const SfxStbCtrlFactory rFact 
)
static

Definition at line 546 of file stbitem.cxx.

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

◆ release()

void SAL_CALL SfxStatusBarControl::release ( )
overridevirtualnoexcept

Reimplemented from svt::StatusbarController.

Definition at line 165 of file stbitem.cxx.

◆ StateChangedAtStatusBarControl()

void SfxStatusBarControl::StateChangedAtStatusBarControl ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState 
)
protectedvirtual

Definition at line 350 of file stbitem.cxx.

References DBG_ASSERT, CntUnencodedStringItem::GetValue(), SfxPoolItem::IsVoidItem(), and pBar.

Referenced by statusChanged().

◆ statusChanged()

void SAL_CALL SfxStatusBarControl::statusChanged ( const css::frame::FeatureStateEvent &  Event)
overrideprotectedvirtual

Member Data Documentation

◆ nId

sal_uInt16 SfxStatusBarControl::nId
private

Definition at line 61 of file stbitem.hxx.

◆ nSlotId

sal_uInt16 SfxStatusBarControl::nSlotId
private

Definition at line 60 of file stbitem.hxx.

◆ pBar

VclPtr<StatusBar> SfxStatusBarControl::pBar
private

Definition at line 62 of file stbitem.hxx.

Referenced by CreateControl(), paint(), and StateChangedAtStatusBarControl().


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