LibreOffice Module sfx2 (master) 1
|
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 | |
UserInputInterception & | operator= (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_Data > | m_pData |
helper class for implementing the XUserInputInterception interface for a controller implementation
Definition at line 47 of file userinputinterception.hxx.
sfx2::UserInputInterception::UserInputInterception | ( | ::cppu::OWeakObject & | _rControllerImpl, |
::osl::Mutex & | _rMutex | ||
) |
Definition at line 123 of file userinputinterception.cxx.
References m_pData.
sfx2::UserInputInterception::~UserInputInterception | ( | ) |
Definition at line 129 of file userinputinterception.cxx.
|
delete |
void sfx2::UserInputInterception::addKeyHandler | ( | const css::uno::Reference< css::awt::XKeyHandler > & | xHandler | ) |
css::uno::RuntimeException |
Definition at line 134 of file userinputinterception.cxx.
References m_pData.
void sfx2::UserInputInterception::addMouseClickHandler | ( | const css::uno::Reference< css::awt::XMouseClickHandler > & | xHandler | ) |
css::uno::RuntimeException |
Definition at line 147 of file userinputinterception.cxx.
References m_pData.
bool sfx2::UserInputInterception::handleNotifyEvent | ( | const NotifyEvent & | _rEvent | ) |
Definition at line 172 of file userinputinterception.cxx.
References aEvent, Exception, vcl::Window::GetComponentInterface(), NotifyEvent::GetKeyEvent(), NotifyEvent::GetMouseEvent(), NotifyEvent::GetType(), NotifyEvent::GetWindow(), comphelper::OInterfaceIteratorHelper3< class ListenerT >::hasMoreElements(), m_pData, comphelper::OInterfaceIteratorHelper3< class ListenerT >::next(), nType, and comphelper::OInterfaceIteratorHelper3< class ListenerT >::remove().
bool sfx2::UserInputInterception::hasKeyHandlers | ( | ) | const |
Definition at line 160 of file userinputinterception.cxx.
References m_pData.
bool sfx2::UserInputInterception::hasMouseClickListeners | ( | ) | const |
Definition at line 166 of file userinputinterception.cxx.
References m_pData.
|
delete |
void sfx2::UserInputInterception::removeKeyHandler | ( | const css::uno::Reference< css::awt::XKeyHandler > & | xHandler | ) |
css::uno::RuntimeException |
Definition at line 141 of file userinputinterception.cxx.
References m_pData.
void sfx2::UserInputInterception::removeMouseClickHandler | ( | const css::uno::Reference< css::awt::XMouseClickHandler > & | xHandler | ) |
css::uno::RuntimeException |
Definition at line 154 of file userinputinterception.cxx.
References m_pData.
|
private |
Definition at line 73 of file userinputinterception.hxx.
Referenced by addKeyHandler(), addMouseClickHandler(), handleNotifyEvent(), hasKeyHandlers(), hasMouseClickListeners(), removeKeyHandler(), and removeMouseClickHandler().