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

Selection change handler to listen to document selection changes. More...

#include <SelectionChangeHandler.hxx>

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

Public Member Functions

 SelectionChangeHandler (css::uno::Reference< css::frame::XController > xController, DevelopmentToolDockingWindow *pDockingWindow)
 
 ~SelectionChangeHandler ()
 
virtual void SAL_CALL selectionChanged (const css::lang::EventObject &) override
 
void stopListening ()
 
virtual void SAL_CALL disposing (const css::lang::EventObject &) override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Member Functions

 SelectionChangeHandler (const SelectionChangeHandler &)=delete
 
SelectionChangeHandleroperator= (const SelectionChangeHandler &)=delete
 

Private Attributes

css::uno::Reference< css::frame::XController > mxController
 
VclPtr< DevelopmentToolDockingWindowmpDockingWindow
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Selection change handler to listen to document selection changes.

Listens to the changes and notifies the docking window with a new selected object, when a change happens.

Definition at line 29 of file SelectionChangeHandler.hxx.

Constructor & Destructor Documentation

◆ SelectionChangeHandler() [1/2]

SelectionChangeHandler::SelectionChangeHandler ( css::uno::Reference< css::frame::XController >  xController,
DevelopmentToolDockingWindow pDockingWindow 
)
inline

Definition at line 36 of file SelectionChangeHandler.hxx.

References mxController, and xController.

◆ ~SelectionChangeHandler()

SelectionChangeHandler::~SelectionChangeHandler ( )
inline

◆ SelectionChangeHandler() [2/2]

SelectionChangeHandler::SelectionChangeHandler ( const SelectionChangeHandler )
privatedelete

Member Function Documentation

◆ disposing()

virtual void SAL_CALL SelectionChangeHandler::disposing ( const css::lang::EventObject &  )
inlineoverridevirtual

Definition at line 67 of file SelectionChangeHandler.hxx.

◆ operator=()

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

◆ selectionChanged()

virtual void SAL_CALL SelectionChangeHandler::selectionChanged ( const css::lang::EventObject &  )
inlineoverridevirtual

Definition at line 48 of file SelectionChangeHandler.hxx.

References mpDockingWindow, and mxController.

◆ stopListening()

void SelectionChangeHandler::stopListening ( )
inline

Definition at line 60 of file SelectionChangeHandler.hxx.

References mxController.

Referenced by DevelopmentToolDockingWindow::dispose().

Member Data Documentation

◆ mpDockingWindow

VclPtr<DevelopmentToolDockingWindow> SelectionChangeHandler::mpDockingWindow
private

Definition at line 33 of file SelectionChangeHandler.hxx.

Referenced by selectionChanged(), and ~SelectionChangeHandler().

◆ mxController

css::uno::Reference<css::frame::XController> SelectionChangeHandler::mxController
private

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