LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Attributes | List of all members
sfx2::UserInputInterception Class Reference

helper class for implementing the XUserInputInterception interface for a controller implementation More...

#include <userinputinterception.hxx>

Public Member Functions

 UserInputInterception (::cppu::OWeakObject &_rControllerImpl, ::osl::Mutex &_rMutex)
 
 ~UserInputInterception ()
 
 UserInputInterception (const UserInputInterception &)=delete
 
UserInputInterceptionoperator= (const UserInputInterception &)=delete
 
void addKeyHandler (const css::uno::Reference< css::awt::XKeyHandler > &xHandler)
 
void removeKeyHandler (const css::uno::Reference< css::awt::XKeyHandler > &xHandler)
 
void addMouseClickHandler (const css::uno::Reference< css::awt::XMouseClickHandler > &xHandler)
 
void removeMouseClickHandler (const css::uno::Reference< css::awt::XMouseClickHandler > &xHandler)
 
bool hasKeyHandlers () const
 
bool hasMouseClickListeners () const
 
bool handleNotifyEvent (const NotifyEvent &_rEvent)
 

Private Attributes

::std::unique_ptr< UserInputInterception_Datam_pData
 

Detailed Description

helper class for implementing the XUserInputInterception interface for a controller implementation

Definition at line 47 of file userinputinterception.hxx.

Constructor & Destructor Documentation

◆ UserInputInterception() [1/2]

sfx2::UserInputInterception::UserInputInterception ( ::cppu::OWeakObject _rControllerImpl,
::osl::Mutex &  _rMutex 
)

Definition at line 123 of file userinputinterception.cxx.

References m_pData.

◆ ~UserInputInterception()

sfx2::UserInputInterception::~UserInputInterception ( )

Definition at line 129 of file userinputinterception.cxx.

◆ UserInputInterception() [2/2]

sfx2::UserInputInterception::UserInputInterception ( const UserInputInterception )
delete

Member Function Documentation

◆ addKeyHandler()

void sfx2::UserInputInterception::addKeyHandler ( const css::uno::Reference< css::awt::XKeyHandler > &  xHandler)
Exceptions
css::uno::RuntimeException

Definition at line 134 of file userinputinterception.cxx.

References m_pData.

◆ addMouseClickHandler()

void sfx2::UserInputInterception::addMouseClickHandler ( const css::uno::Reference< css::awt::XMouseClickHandler > &  xHandler)
Exceptions
css::uno::RuntimeException

Definition at line 147 of file userinputinterception.cxx.

References m_pData.

◆ handleNotifyEvent()

bool sfx2::UserInputInterception::handleNotifyEvent ( const NotifyEvent _rEvent)

◆ hasKeyHandlers()

bool sfx2::UserInputInterception::hasKeyHandlers ( ) const

Definition at line 160 of file userinputinterception.cxx.

References m_pData.

◆ hasMouseClickListeners()

bool sfx2::UserInputInterception::hasMouseClickListeners ( ) const

Definition at line 166 of file userinputinterception.cxx.

References m_pData.

◆ operator=()

UserInputInterception & sfx2::UserInputInterception::operator= ( const UserInputInterception )
delete

◆ removeKeyHandler()

void sfx2::UserInputInterception::removeKeyHandler ( const css::uno::Reference< css::awt::XKeyHandler > &  xHandler)
Exceptions
css::uno::RuntimeException

Definition at line 141 of file userinputinterception.cxx.

References m_pData.

◆ removeMouseClickHandler()

void sfx2::UserInputInterception::removeMouseClickHandler ( const css::uno::Reference< css::awt::XMouseClickHandler > &  xHandler)
Exceptions
css::uno::RuntimeException

Definition at line 154 of file userinputinterception.cxx.

References m_pData.

Member Data Documentation

◆ m_pData

::std::unique_ptr< UserInputInterception_Data > sfx2::UserInputInterception::m_pData
private

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