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

#include <sfxstatuslistener.hxx>

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

Public Member Functions

 SfxStatusListener (const css::uno::Reference< css::frame::XDispatchProvider > &rDispatchProvider, sal_uInt16 nSlotId, const OUString &aCommand)
 
virtual ~SfxStatusListener () override
 
sal_uInt16 GetId () const
 
void UnBind ()
 
void ReBind ()
 
virtual void StateChangedAtStatusListener (SfxItemState eState, const SfxPoolItem *pState)
 
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
 

Private Member Functions

 SfxStatusListener (const SfxStatusListener &)=delete
 
SfxStatusListeneroperator= (const SfxStatusListener &)=delete
 

Private Attributes

sal_uInt16 m_nSlotID
 
css::util::URL m_aCommand
 
css::uno::Reference< css::frame::XDispatchProvider > m_xDispatchProvider
 
css::uno::Reference< css::frame::XDispatch > m_xDispatch
 

Detailed Description

Definition at line 35 of file sfxstatuslistener.hxx.

Constructor & Destructor Documentation

◆ SfxStatusListener() [1/2]

SfxStatusListener::SfxStatusListener ( const css::uno::Reference< css::frame::XDispatchProvider > &  rDispatchProvider,
sal_uInt16  nSlotId,
const OUString &  aCommand 
)

◆ ~SfxStatusListener()

SfxStatusListener::~SfxStatusListener ( )
overridevirtual

Definition at line 60 of file sfxstatuslistener.cxx.

◆ SfxStatusListener() [2/2]

SfxStatusListener::SfxStatusListener ( const SfxStatusListener )
privatedelete

Member Function Documentation

◆ addEventListener()

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

Definition at line 118 of file sfxstatuslistener.cxx.

◆ dispose()

void SAL_CALL SfxStatusListener::dispose ( void  )
overridevirtual

Definition at line 100 of file sfxstatuslistener.cxx.

References Exception, m_aCommand, m_xDispatch, and m_xDispatchProvider.

◆ disposing()

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

Definition at line 128 of file sfxstatuslistener.cxx.

References m_xDispatch, m_xDispatchProvider, and Source.

◆ GetId()

sal_uInt16 SfxStatusListener::GetId ( ) const
inline

Definition at line 45 of file sfxstatuslistener.hxx.

◆ operator=()

SfxStatusListener & SfxStatusListener::operator= ( const SfxStatusListener )
privatedelete

◆ ReBind()

void SfxStatusListener::ReBind ( )

Definition at line 80 of file sfxstatuslistener.cxx.

References Exception, m_aCommand, m_xDispatch, and m_xDispatchProvider.

◆ removeEventListener()

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

Definition at line 123 of file sfxstatuslistener.cxx.

◆ StateChangedAtStatusListener()

void SfxStatusListener::StateChangedAtStatusListener ( SfxItemState  eState,
const SfxPoolItem pState 
)
virtual

Definition at line 65 of file sfxstatuslistener.cxx.

Referenced by statusChanged().

◆ statusChanged()

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

◆ UnBind()

void SfxStatusListener::UnBind ( )

Definition at line 70 of file sfxstatuslistener.cxx.

References m_aCommand, and m_xDispatch.

Member Data Documentation

◆ m_aCommand

css::util::URL SfxStatusListener::m_aCommand
private

Definition at line 67 of file sfxstatuslistener.hxx.

Referenced by dispose(), ReBind(), and UnBind().

◆ m_nSlotID

sal_uInt16 SfxStatusListener::m_nSlotID
private

Definition at line 66 of file sfxstatuslistener.hxx.

Referenced by statusChanged().

◆ m_xDispatch

css::uno::Reference< css::frame::XDispatch > SfxStatusListener::m_xDispatch
private

Definition at line 69 of file sfxstatuslistener.hxx.

Referenced by dispose(), disposing(), ReBind(), statusChanged(), and UnBind().

◆ m_xDispatchProvider

css::uno::Reference< css::frame::XDispatchProvider > SfxStatusListener::m_xDispatchProvider
private

Definition at line 68 of file sfxstatuslistener.hxx.

Referenced by dispose(), disposing(), and ReBind().


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