LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
weld::WidgetStatusListener Class Referencefinal

#include <weldutils.hxx>

Inheritance diagram for weld::WidgetStatusListener:
[legend]
Collaboration diagram for weld::WidgetStatusListener:
[legend]

Public Member Functions

 WidgetStatusListener (weld::Widget *widget, const OUString &rCommand)
 
SAL_DLLPRIVATE void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &rEvent) override
 
SAL_DLLPRIVATE void SAL_CALL disposing (const css::lang::EventObject &) override
 
const css::uno::Reference< css::frame::XFrame > & getFrame () const
 
void startListening ()
 
void dispose ()
 

Private Attributes

weld::WidgetmWidget
 
css::uno::Reference< css::frame::XDispatch > mxDispatch
 The widget on which actions are performed. More...
 
css::util::URL maCommandURL
 
css::uno::Reference< css::frame::XFrame > mxFrame
 

Detailed Description

Definition at line 179 of file weldutils.hxx.

Constructor & Destructor Documentation

◆ WidgetStatusListener()

weld::WidgetStatusListener::WidgetStatusListener ( weld::Widget widget,
const OUString &  rCommand 
)

Definition at line 501 of file weldutils.cxx.

References aCommand, maCommandURL, mxFrame, and xFrame.

Member Function Documentation

◆ dispose()

void weld::WidgetStatusListener::dispose ( void  )

Definition at line 545 of file weldutils.cxx.

References maCommandURL, mWidget, mxDispatch, and mxFrame.

◆ disposing()

void weld::WidgetStatusListener::disposing ( const css::lang::EventObject &  )
override

Definition at line 540 of file weldutils.cxx.

References mxDispatch.

◆ getFrame()

const css::uno::Reference< css::frame::XFrame > & weld::WidgetStatusListener::getFrame ( ) const
inline

Definition at line 198 of file weldutils.hxx.

◆ startListening()

void weld::WidgetStatusListener::startListening ( )

Definition at line 520 of file weldutils.cxx.

References maCommandURL, mxDispatch, and mxFrame.

◆ statusChanged()

void weld::WidgetStatusListener::statusChanged ( const css::frame::FeatureStateEvent &  rEvent)
override

Definition at line 535 of file weldutils.cxx.

References mWidget, and weld::Widget::set_sensitive().

Member Data Documentation

◆ maCommandURL

css::util::URL weld::WidgetStatusListener::maCommandURL
private

Definition at line 189 of file weldutils.hxx.

Referenced by dispose(), startListening(), and WidgetStatusListener().

◆ mWidget

weld::Widget* weld::WidgetStatusListener::mWidget
private

Definition at line 185 of file weldutils.hxx.

Referenced by dispose(), and statusChanged().

◆ mxDispatch

css::uno::Reference<css::frame::XDispatch> weld::WidgetStatusListener::mxDispatch
private

The widget on which actions are performed.

Dispatcher. Need to keep a reference to it as long as this StatusListener exists.

Definition at line 188 of file weldutils.hxx.

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

◆ mxFrame

css::uno::Reference<css::frame::XFrame> weld::WidgetStatusListener::mxFrame
private

Definition at line 190 of file weldutils.hxx.

Referenced by dispose(), startListening(), and WidgetStatusListener().


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