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)
 
void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &rEvent) override
 
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 174 of file weldutils.hxx.

Constructor & Destructor Documentation

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

Definition at line 499 of file weldutils.cxx.

References maCommandURL, mxFrame, and xFrame.

Member Function Documentation

void weld::WidgetStatusListener::dispose ( void  )

Definition at line 543 of file weldutils.cxx.

References maCommandURL, mWidget, mxDispatch, and mxFrame.

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

Definition at line 538 of file weldutils.cxx.

References mxDispatch.

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

Definition at line 192 of file weldutils.hxx.

void weld::WidgetStatusListener::startListening ( )

Definition at line 518 of file weldutils.cxx.

References maCommandURL, mxDispatch, and mxFrame.

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

Definition at line 533 of file weldutils.cxx.

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

Member Data Documentation

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

Definition at line 184 of file weldutils.hxx.

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

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

Definition at line 180 of file weldutils.hxx.

Referenced by dispose(), and statusChanged().

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 183 of file weldutils.hxx.

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

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

Definition at line 185 of file weldutils.hxx.

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


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