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 (std::function< OUString()> aSelectionChangeCallback, 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< 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

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

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

Definition at line 40 of file SelectionChangeHandler.hxx.

Constructor & Destructor Documentation

◆ SelectionChangeHandler() [1/2]

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

◆ ~SelectionChangeHandler()

SelectionChangeHandler::~SelectionChangeHandler ( )
overridevirtual

Definition at line 45 of file SelectionChangeHandler.cxx.

◆ SelectionChangeHandler() [2/2]

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

Member Function Documentation

◆ Connect()

void SelectionChangeHandler::Connect ( )

Definition at line 77 of file SelectionChangeHandler.cxx.

References SelectionChangeHandler::mxController.

◆ Disconnect()

void SelectionChangeHandler::Disconnect ( )

Definition at line 88 of file SelectionChangeHandler.cxx.

References SelectionChangeHandler::mxController.

◆ disposing() [1/2]

virtual void SAL_CALL svx::sidebar::SelectionChangeHandler::disposing ( const css::lang::EventObject &  rEvent)
overridevirtual

References Connect, and Disconnect.

◆ disposing() [2/2]

void SelectionChangeHandler::disposing ( std::unique_lock< std::mutex > &  )
overridevirtual

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 70 of file SelectionChangeHandler.cxx.

References Disconnect.

◆ operator=()

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

◆ selectionChanged()

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

Member Data Documentation

◆ maSelectionChangeCallback

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

Definition at line 63 of file SelectionChangeHandler.hxx.

◆ mbIsConnected

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

Definition at line 66 of file SelectionChangeHandler.hxx.

◆ meDefaultContext

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

Definition at line 65 of file SelectionChangeHandler.hxx.

◆ mxController

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

Definition at line 64 of file SelectionChangeHandler.hxx.


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