LibreOffice Module svtools (master) 1
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
svt::StatusbarController Class Reference

#include <statusbarcontroller.hxx>

Inheritance diagram for svt::StatusbarController:
[legend]
Collaboration diagram for svt::StatusbarController:
[legend]

Classes

struct  Listener
 

Public Member Functions

 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
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Protected Types

typedef std::unordered_map< OUString, css::uno::Reference< css::frame::XDispatch > > URLToDispatchMap
 

Protected Member Functions

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)
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Protected Attributes

bool m_bInitialized: 1
 
bool m_bDisposed: 1
 
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
 container for ALL Listener More...
 
css::uno::Reference< css::ui::XStatusbarItem > m_xStatusbarItem
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 42 of file statusbarcontroller.hxx.

Member Typedef Documentation

◆ URLToDispatchMap

typedef std::unordered_map< OUString, css::uno::Reference< css::frame::XDispatch > > svt::StatusbarController::URLToDispatchMap
protected

Definition at line 107 of file statusbarcontroller.hxx.

Constructor & Destructor Documentation

◆ StatusbarController() [1/2]

svt::StatusbarController::StatusbarController ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::frame::XFrame > &  xFrame,
OUString  aCommandURL,
unsigned short  nID 
)

References queryInterface().

◆ StatusbarController() [2/2]

svt::StatusbarController::StatusbarController ( )

Definition at line 63 of file statusbarcontroller.cxx.

References m_aMutex, and m_bDisposed.

◆ ~StatusbarController()

svt::StatusbarController::~StatusbarController ( )
overridevirtual

Definition at line 72 of file statusbarcontroller.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL svt::StatusbarController::acquire ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 111 of file statusbarcontroller.cxx.

◆ addEventListener()

void SAL_CALL svt::StatusbarController::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

◆ addStatusListener()

void svt::StatusbarController::addStatusListener ( const OUString &  aCommandURL)
protected

◆ bindListener()

void svt::StatusbarController::bindListener ( )
protected

◆ click()

void SAL_CALL svt::StatusbarController::click ( const css::awt::Point &  aPos)
overridevirtual

Definition at line 314 of file statusbarcontroller.cxx.

◆ command()

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

Definition at line 299 of file statusbarcontroller.cxx.

◆ dispose()

void SAL_CALL svt::StatusbarController::dispose ( void  )
overridevirtual

◆ disposing()

void SAL_CALL svt::StatusbarController::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 232 of file statusbarcontroller.cxx.

References m_aListenerMap, m_bDisposed, m_xFrame, Source, xDispatch, and xFrame.

◆ doubleClick()

void SAL_CALL svt::StatusbarController::doubleClick ( const css::awt::Point &  aPos)
overridevirtual

Definition at line 318 of file statusbarcontroller.cxx.

References execute(), and m_bDisposed.

◆ execute() [1/2]

void svt::StatusbarController::execute ( const css::uno::Sequence< css::beans::PropertyValue > &  aArgs)
protected

◆ execute() [2/2]

void svt::StatusbarController::execute ( const OUString &  aCommand,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
protected

◆ getControlRect()

tools::Rectangle svt::StatusbarController::getControlRect ( ) const

◆ getFrameInterface()

Reference< XFrame > svt::StatusbarController::getFrameInterface ( ) const

Definition at line 76 of file statusbarcontroller.cxx.

References m_xFrame.

◆ getURLTransformer()

Reference< XURLTransformer > svt::StatusbarController::getURLTransformer ( ) const

Definition at line 82 of file statusbarcontroller.cxx.

References m_xContext, and m_xURLTransformer.

Referenced by addStatusListener(), bindListener(), dispose(), and execute().

◆ initialize()

void SAL_CALL svt::StatusbarController::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

◆ mouseButtonDown()

sal_Bool SAL_CALL svt::StatusbarController::mouseButtonDown ( const css::awt::MouseEvent &  aMouseEvent)
overridevirtual

Definition at line 281 of file statusbarcontroller.cxx.

◆ mouseButtonUp()

sal_Bool SAL_CALL svt::StatusbarController::mouseButtonUp ( const css::awt::MouseEvent &  aMouseEvent)
overridevirtual

Definition at line 293 of file statusbarcontroller.cxx.

◆ mouseMove()

sal_Bool SAL_CALL svt::StatusbarController::mouseMove ( const css::awt::MouseEvent &  aMouseEvent)
overridevirtual

Definition at line 287 of file statusbarcontroller.cxx.

◆ paint()

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

Definition at line 307 of file statusbarcontroller.cxx.

◆ queryInterface()

Any SAL_CALL svt::StatusbarController::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 94 of file statusbarcontroller.cxx.

References a, and Any.

◆ release()

void SAL_CALL svt::StatusbarController::release ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 116 of file statusbarcontroller.cxx.

◆ removeEventListener()

void SAL_CALL svt::StatusbarController::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ statusChanged()

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

◆ update()

void SAL_CALL svt::StatusbarController::update ( )
overridevirtual

Definition at line 162 of file statusbarcontroller.cxx.

References bindListener(), and m_bDisposed.

Member Data Documentation

◆ m_aCommandURL

OUString svt::StatusbarController::m_aCommandURL
protected

Definition at line 124 of file statusbarcontroller.hxx.

Referenced by bindListener(), execute(), and initialize().

◆ m_aListenerContainer

comphelper::OMultiTypeInterfaceContainerHelper2 svt::StatusbarController::m_aListenerContainer
protected

Definition at line 126 of file statusbarcontroller.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ m_aListenerMap

URLToDispatchMap svt::StatusbarController::m_aListenerMap
protected

◆ m_bDisposed

bool svt::StatusbarController::m_bDisposed
protected

◆ m_bInitialized

bool svt::StatusbarController::m_bInitialized
protected

Definition at line 118 of file statusbarcontroller.hxx.

Referenced by addStatusListener(), bindListener(), execute(), and initialize().

◆ m_nID

unsigned short svt::StatusbarController::m_nID
protected

Definition at line 120 of file statusbarcontroller.hxx.

Referenced by getControlRect(), initialize(), and statusChanged().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > svt::StatusbarController::m_xContext
protected

◆ m_xFrame

css::uno::Reference< css::frame::XFrame > svt::StatusbarController::m_xFrame
protected

◆ m_xParentWindow

css::uno::Reference< css::awt::XWindow > svt::StatusbarController::m_xParentWindow
protected

Definition at line 122 of file statusbarcontroller.hxx.

Referenced by dispose(), getControlRect(), initialize(), and statusChanged().

◆ m_xStatusbarItem

css::uno::Reference< css::ui::XStatusbarItem > svt::StatusbarController::m_xStatusbarItem
protected

Definition at line 128 of file statusbarcontroller.hxx.

Referenced by dispose(), and initialize().

◆ m_xURLTransformer

css::uno::Reference< css::util::XURLTransformer > svt::StatusbarController::m_xURLTransformer
mutableprotected

container for ALL Listener

Definition at line 127 of file statusbarcontroller.hxx.

Referenced by dispose(), and getURLTransformer().


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