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

#include <SelectionChangeHandler.hxx>

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

Public Member Functions

 SelectionChangeHandler (const std::function< OUString()> &rSelectionChangeCallback, const css::uno::Reference< css::frame::XController > &rxController, const vcl::EnumContext::Context eDefaultContext)
 
virtual ~SelectionChangeHandler () override
 
virtual void SAL_CALL selectionChanged (const css::lang::EventObject &rEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rEvent) override
 
virtual void disposing (std::unique_lock< std::mutex > &) override
 
void Connect ()
 
void Disconnect ()
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< Ifc >
virtual void SAL_CALL acquire () noexcept final override
 
virtual void SAL_CALL release () noexcept final 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
 

Private Member Functions

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

Private Attributes

const std::function< OUString()> maSelectionChangeCallback
 
css::uno::Reference< css::frame::XController > mxController
 
const vcl::EnumContext::Context meDefaultContext
 
bool mbIsConnected
 

Additional Inherited Members

- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 40 of file SelectionChangeHandler.hxx.

Constructor & Destructor Documentation

svx::sidebar::SelectionChangeHandler::SelectionChangeHandler ( const std::function< OUString()> &  rSelectionChangeCallback,
const css::uno::Reference< css::frame::XController > &  rxController,
const vcl::EnumContext::Context  eDefaultContext 
)
SelectionChangeHandler::~SelectionChangeHandler ( )
overridevirtual

Definition at line 44 of file SelectionChangeHandler.cxx.

svx::sidebar::SelectionChangeHandler::SelectionChangeHandler ( const SelectionChangeHandler )
privatedelete

Member Function Documentation

void SelectionChangeHandler::Connect ( )

Definition at line 76 of file SelectionChangeHandler.cxx.

References mbIsConnected, and mxController.

void SelectionChangeHandler::Disconnect ( )

Definition at line 87 of file SelectionChangeHandler.cxx.

References mbIsConnected, and mxController.

Referenced by disposing().

virtual void SAL_CALL svx::sidebar::SelectionChangeHandler::disposing ( const css::lang::EventObject &  rEvent)
overridevirtual
void SelectionChangeHandler::disposing ( std::unique_lock< std::mutex > &  )
overridevirtual

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 69 of file SelectionChangeHandler.cxx.

References Disconnect(), and mbIsConnected.

SelectionChangeHandler& svx::sidebar::SelectionChangeHandler::operator= ( const SelectionChangeHandler )
privatedelete
virtual void SAL_CALL svx::sidebar::SelectionChangeHandler::selectionChanged ( const css::lang::EventObject &  rEvent)
overridevirtual

Member Data Documentation

const std::function<OUString ()> svx::sidebar::SelectionChangeHandler::maSelectionChangeCallback
private

Definition at line 63 of file SelectionChangeHandler.hxx.

bool svx::sidebar::SelectionChangeHandler::mbIsConnected
private

Definition at line 66 of file SelectionChangeHandler.hxx.

Referenced by Connect(), Disconnect(), and disposing().

const vcl::EnumContext::Context svx::sidebar::SelectionChangeHandler::meDefaultContext
private

Definition at line 65 of file SelectionChangeHandler.hxx.

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

Definition at line 64 of file SelectionChangeHandler.hxx.

Referenced by Connect(), and Disconnect().


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