22using namespace ::
cppu;
86 sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY,
sal_Int8 sourceActions,
87 const Reference< XTransferable >& transferable )
101 DropTargetDropEvent
aEvent(
static_cast < XDropTarget *
> (
this), 0,
102 static_cast < XDropTargetDropContext *
> (
this), dropAction,
103 locationX, locationY, sourceActions, transferable );
107 Reference< XDropTargetListener > xListener( aIterator.
next() );
114 xListener->drop(
aEvent );
119 DropTargetEvent aDTEvent(
static_cast < XDropTarget *
> (
this), 0 );
120 xListener->dragExit( aDTEvent );
139 context->rejectDrop();
158 DropTargetEvent
aEvent(
static_cast < XDropTarget *
> (
this), 0 );
164 Reference< XDropTargetListener > xListener( aIterator.
next() );
167 xListener->dragExit(
aEvent );
182 sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY,
sal_Int8 sourceActions )
198 DropTargetDragEvent
aEvent(
static_cast < XDropTarget *
> (
this), 0,
199 static_cast < XDropTargetDragContext *
> (
this),
200 dropAction, locationX, locationY, sourceActions );
204 Reference< XDropTargetListener > xListener( aIterator.
next() );
210 xListener->dragOver(
aEvent );
228 context->rejectDrag();
239 sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY,
sal_Int8 sourceActions,
240 const Sequence< DataFlavor >& dataFlavors )
254 DropTargetDragEnterEvent
aEvent(
static_cast < XDropTarget *
> (
this), 0,
255 static_cast < XDropTargetDragContext *
> (
this),
256 dropAction, locationX, locationY, sourceActions, dataFlavors );
260 Reference< XDropTargetListener > xListener( aIterator.
next() );
266 xListener->dragEnter(
aEvent );
284 context->rejectDrag();
295 sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY,
sal_Int8 sourceActions )
311 DropTargetDragEvent
aEvent(
static_cast < XDropTarget *
> (
this), 0,
312 static_cast < XDropTargetDragContext *
> (
this),
313 dropAction, locationX, locationY, sourceActions );
317 Reference< XDropTargetListener > xListener( aIterator.
next() );
323 xListener->dropActionChanged(
aEvent );
341 context->rejectDrag();
352 sal_Int32 dragOriginY,
const Reference< XDragSource >& dragSource,
const Any& triggerEvent )
361 DragGestureEvent
aEvent(
static_cast < XDragGestureRecognizer *
> (
this), dragAction,
362 dragOriginX, dragOriginY, dragSource, triggerEvent );
368 Reference< XDragGestureListener > xListener( aIterator.
next() );
371 xListener->dragGestureRecognized(
aEvent );
sal_uInt32 fireDragOverEvent(const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > &context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions)
css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > m_xDropTargetDragContext
virtual void SAL_CALL removeDragGestureListener(const css::uno::Reference< css::datatransfer::dnd::XDragGestureListener > &dgl) override
virtual sal_Bool SAL_CALL isActive() override
virtual void SAL_CALL addDragGestureListener(const css::uno::Reference< css::datatransfer::dnd::XDragGestureListener > &dgl) override
virtual void SAL_CALL resetRecognizer() override
virtual void SAL_CALL acceptDrop(sal_Int8 dropOperation) override
comphelper::OInterfaceContainerHelper4< css::datatransfer::dnd::XDropTargetListener > maDropTargetListeners
virtual void SAL_CALL rejectDrag() override
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_Int8 m_nDefaultActions
virtual void SAL_CALL addDropTargetListener(const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &dtl) override
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 dropComplete(sal_Bool success) override
virtual void SAL_CALL setActive(sal_Bool active) override
virtual ~DNDListenerContainer() override
DNDListenerContainer(sal_Int8 nDefaultActions)
comphelper::OInterfaceContainerHelper4< css::datatransfer::dnd::XDragGestureListener > maDragGestureListeners
sal_uInt32 fireDropActionChangedEvent(const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > &context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions)
virtual void SAL_CALL removeDropTargetListener(const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &dtl) 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)
virtual void SAL_CALL acceptDrag(sal_Int8 dragOperation) override
virtual void SAL_CALL rejectDrop() override
virtual sal_Int8 SAL_CALL getDefaultActions() override
virtual void SAL_CALL setDefaultActions(sal_Int8 actions) override
css::uno::Reference< css::datatransfer::dnd::XDropTargetDropContext > m_xDropTargetDropContext
sal_uInt32 fireDragExitEvent()
virtual void SAL_CALL rejectDrag() override
GenericDropTargetDragContext()
virtual void SAL_CALL acceptDrag(sal_Int8 dragOperation) override
virtual void SAL_CALL rejectDrop() override
virtual void SAL_CALL acceptDrop(sal_Int8 dragOperation) override
GenericDropTargetDropContext()
virtual void SAL_CALL dropComplete(sal_Bool success) override
sal_Int32 addInterface(std::unique_lock< std::mutex > &rGuard, const css::uno::Reference< ListenerT > &rxIFace)
sal_Int32 getLength(std::unique_lock< std::mutex > &rGuard) const
sal_Int32 removeInterface(std::unique_lock< std::mutex > &rGuard, const css::uno::Reference< ListenerT > &rxIFace)
bool hasMoreElements() const
css::uno::Reference< ListenerT > const & next()
void remove(::std::unique_lock<::std::mutex > &rGuard)