LibreOffice Module vcl (master) 1
|
#include <dndlistenercontainer.hxx>
Public Member Functions | |
DNDListenerContainer (sal_Int8 nDefaultActions) | |
virtual | ~DNDListenerContainer () override |
sal_uInt32 | fireDropEvent (const css::uno::Reference< css::datatransfer::dnd::XDropTargetDropContext > &context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions, const css::uno::Reference< css::datatransfer::XTransferable > &transferable) |
sal_uInt32 | fireDragExitEvent () |
sal_uInt32 | fireDragOverEvent (const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > &context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions) |
sal_uInt32 | fireDragEnterEvent (const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > &context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions, const css::uno::Sequence< css::datatransfer::DataFlavor > &dataFlavor) |
sal_uInt32 | fireDropActionChangedEvent (const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > &context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions) |
sal_uInt32 | fireDragGestureEvent (sal_Int8 dragAction, sal_Int32 dragOriginX, sal_Int32 dragOriginY, const css::uno::Reference< css::datatransfer::dnd::XDragSource > &dragSource, const css::uno::Any &triggerEvent) |
virtual void SAL_CALL | addDragGestureListener (const css::uno::Reference< css::datatransfer::dnd::XDragGestureListener > &dgl) override |
virtual void SAL_CALL | removeDragGestureListener (const css::uno::Reference< css::datatransfer::dnd::XDragGestureListener > &dgl) override |
virtual void SAL_CALL | resetRecognizer () override |
virtual void SAL_CALL | acceptDrag (sal_Int8 dragOperation) override |
virtual void SAL_CALL | rejectDrag () override |
virtual void SAL_CALL | acceptDrop (sal_Int8 dropOperation) override |
virtual void SAL_CALL | rejectDrop () override |
virtual void SAL_CALL | dropComplete (sal_Bool success) override |
virtual void SAL_CALL | addDropTargetListener (const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &dtl) override |
virtual void SAL_CALL | removeDropTargetListener (const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &dtl) override |
virtual sal_Bool SAL_CALL | isActive () override |
virtual void SAL_CALL | setActive (sal_Bool active) override |
virtual sal_Int8 SAL_CALL | getDefaultActions () override |
virtual void SAL_CALL | setDefaultActions (sal_Int8 actions) override |
Public Member Functions inherited from comphelper::WeakComponentImplHelper< css::datatransfer::dnd::XDragGestureRecognizer, css::datatransfer::dnd::XDropTargetDragContext, css::datatransfer::dnd::XDropTargetDropContext, css::datatransfer::dnd::XDropTarget > | |
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 Attributes | |
bool | m_bActive |
sal_Int8 | m_nDefaultActions |
comphelper::OInterfaceContainerHelper4< css::datatransfer::dnd::XDragGestureListener > | maDragGestureListeners |
comphelper::OInterfaceContainerHelper4< css::datatransfer::dnd::XDropTargetListener > | maDropTargetListeners |
css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > | m_xDropTargetDragContext |
css::uno::Reference< css::datatransfer::dnd::XDropTargetDropContext > | m_xDropTargetDropContext |
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 |
Definition at line 57 of file dndlistenercontainer.hxx.
DNDListenerContainer::DNDListenerContainer | ( | sal_Int8 | nDefaultActions | ) |
Definition at line 27 of file dndlistenercontainer.cxx.
References m_bActive, and m_nDefaultActions.
|
overridevirtual |
Definition at line 33 of file dndlistenercontainer.cxx.
|
overridevirtual |
Definition at line 385 of file dndlistenercontainer.cxx.
References m_xDropTargetDragContext.
|
overridevirtual |
Definition at line 399 of file dndlistenercontainer.cxx.
References m_xDropTargetDropContext.
|
overridevirtual |
Definition at line 37 of file dndlistenercontainer.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), comphelper::UnoImplBase::m_aMutex, and maDragGestureListeners.
|
overridevirtual |
Definition at line 53 of file dndlistenercontainer.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), comphelper::UnoImplBase::m_aMutex, and maDropTargetListeners.
|
overridevirtual |
Definition at line 410 of file dndlistenercontainer.cxx.
References m_xDropTargetDropContext.
sal_uInt32 DNDListenerContainer::fireDragEnterEvent | ( | const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > & | context, |
sal_Int8 | dropAction, | ||
sal_Int32 | locationX, | ||
sal_Int32 | locationY, | ||
sal_Int8 | sourceActions, | ||
const css::uno::Sequence< css::datatransfer::DataFlavor > & | dataFlavor | ||
) |
Definition at line 238 of file dndlistenercontainer.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), comphelper::OInterfaceIteratorHelper4< class ListenerT >::hasMoreElements(), comphelper::UnoImplBase::m_aMutex, m_bActive, m_xDropTargetDragContext, maDropTargetListeners, comphelper::OInterfaceIteratorHelper4< class ListenerT >::next(), and comphelper::OInterfaceIteratorHelper4< class ListenerT >::remove().
sal_uInt32 DNDListenerContainer::fireDragExitEvent | ( | ) |
Definition at line 149 of file dndlistenercontainer.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), comphelper::OInterfaceIteratorHelper4< class ListenerT >::hasMoreElements(), comphelper::UnoImplBase::m_aMutex, m_bActive, maDropTargetListeners, comphelper::OInterfaceIteratorHelper4< class ListenerT >::next(), and comphelper::OInterfaceIteratorHelper4< class ListenerT >::remove().
sal_uInt32 DNDListenerContainer::fireDragGestureEvent | ( | sal_Int8 | dragAction, |
sal_Int32 | dragOriginX, | ||
sal_Int32 | dragOriginY, | ||
const css::uno::Reference< css::datatransfer::dnd::XDragSource > & | dragSource, | ||
const css::uno::Any & | triggerEvent | ||
) |
Definition at line 351 of file dndlistenercontainer.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), comphelper::OInterfaceIteratorHelper4< class ListenerT >::hasMoreElements(), comphelper::UnoImplBase::m_aMutex, maDragGestureListeners, comphelper::OInterfaceIteratorHelper4< class ListenerT >::next(), and comphelper::OInterfaceIteratorHelper4< class ListenerT >::remove().
sal_uInt32 DNDListenerContainer::fireDragOverEvent | ( | const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > & | context, |
sal_Int8 | dropAction, | ||
sal_Int32 | locationX, | ||
sal_Int32 | locationY, | ||
sal_Int8 | sourceActions | ||
) |
Definition at line 181 of file dndlistenercontainer.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), comphelper::OInterfaceIteratorHelper4< class ListenerT >::hasMoreElements(), comphelper::UnoImplBase::m_aMutex, m_bActive, m_xDropTargetDragContext, maDropTargetListeners, comphelper::OInterfaceIteratorHelper4< class ListenerT >::next(), and comphelper::OInterfaceIteratorHelper4< class ListenerT >::remove().
sal_uInt32 DNDListenerContainer::fireDropActionChangedEvent | ( | const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > & | context, |
sal_Int8 | dropAction, | ||
sal_Int32 | locationX, | ||
sal_Int32 | locationY, | ||
sal_Int8 | sourceActions | ||
) |
Definition at line 294 of file dndlistenercontainer.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), comphelper::OInterfaceIteratorHelper4< class ListenerT >::hasMoreElements(), comphelper::UnoImplBase::m_aMutex, m_bActive, m_xDropTargetDragContext, maDropTargetListeners, comphelper::OInterfaceIteratorHelper4< class ListenerT >::next(), and comphelper::OInterfaceIteratorHelper4< class ListenerT >::remove().
sal_uInt32 DNDListenerContainer::fireDropEvent | ( | const css::uno::Reference< css::datatransfer::dnd::XDropTargetDropContext > & | context, |
sal_Int8 | dropAction, | ||
sal_Int32 | locationX, | ||
sal_Int32 | locationY, | ||
sal_Int8 | sourceActions, | ||
const css::uno::Reference< css::datatransfer::XTransferable > & | transferable | ||
) |
Definition at line 85 of file dndlistenercontainer.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), comphelper::OInterfaceIteratorHelper4< class ListenerT >::hasMoreElements(), comphelper::UnoImplBase::m_aMutex, m_bActive, m_xDropTargetDropContext, maDropTargetListeners, comphelper::OInterfaceIteratorHelper4< class ListenerT >::next(), and comphelper::OInterfaceIteratorHelper4< class ListenerT >::remove().
|
overridevirtual |
Definition at line 75 of file dndlistenercontainer.cxx.
References m_nDefaultActions.
|
overridevirtual |
Definition at line 65 of file dndlistenercontainer.cxx.
References m_bActive.
|
overridevirtual |
Definition at line 394 of file dndlistenercontainer.cxx.
|
overridevirtual |
Definition at line 405 of file dndlistenercontainer.cxx.
|
overridevirtual |
Definition at line 43 of file dndlistenercontainer.cxx.
References comphelper::UnoImplBase::m_aMutex, maDragGestureListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 59 of file dndlistenercontainer.cxx.
References comphelper::UnoImplBase::m_aMutex, maDropTargetListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 49 of file dndlistenercontainer.cxx.
|
overridevirtual |
Definition at line 70 of file dndlistenercontainer.cxx.
References m_bActive.
|
overridevirtual |
Definition at line 80 of file dndlistenercontainer.cxx.
References m_nDefaultActions.
|
private |
Definition at line 64 of file dndlistenercontainer.hxx.
Referenced by DNDListenerContainer(), fireDragEnterEvent(), fireDragExitEvent(), fireDragOverEvent(), fireDropActionChangedEvent(), fireDropEvent(), isActive(), and setActive().
|
private |
Definition at line 65 of file dndlistenercontainer.hxx.
Referenced by DNDListenerContainer(), getDefaultActions(), and setDefaultActions().
|
private |
Definition at line 68 of file dndlistenercontainer.hxx.
Referenced by acceptDrag(), fireDragEnterEvent(), fireDragOverEvent(), and fireDropActionChangedEvent().
|
private |
Definition at line 69 of file dndlistenercontainer.hxx.
Referenced by acceptDrop(), dropComplete(), and fireDropEvent().
|
private |
Definition at line 66 of file dndlistenercontainer.hxx.
Referenced by addDragGestureListener(), fireDragGestureEvent(), and removeDragGestureListener().
|
private |
Definition at line 67 of file dndlistenercontainer.hxx.
Referenced by addDropTargetListener(), fireDragEnterEvent(), fireDragExitEvent(), fireDragOverEvent(), fireDropActionChangedEvent(), fireDropEvent(), and removeDropTargetListener().