13#include <com/sun/star/datatransfer/dnd/XDragSource.hpp>
14#include <com/sun/star/datatransfer/dnd/XDropTarget.hpp>
15#include <com/sun/star/lang/XInitialization.hpp>
16#include <com/sun/star/lang/XServiceInfo.hpp>
22 :
public cppu::WeakComponentImplHelper<css::datatransfer::dnd::XDragSource,
23 css::lang::XInitialization, css::lang::XServiceInfo>
27 css::uno::Reference<css::datatransfer::dnd::XDragSourceListener>
m_xListener;
42 const css::datatransfer::dnd::DragGestureEvent& trigger,
sal_Int8 sourceActions,
43 sal_Int32 cursor, sal_Int32 image,
44 const css::uno::Reference<css::datatransfer::XTransferable>& transferable,
45 const css::uno::Reference<css::datatransfer::dnd::XDragSourceListener>& listener)
override;
48 virtual void SAL_CALL
initialize(
const css::uno::Sequence<css::uno::Any>& rArguments)
override;
61 :
public cppu::WeakComponentImplHelper<css::datatransfer::dnd::XDropTarget,
62 css::datatransfer::dnd::XDropTargetDragContext,
63 css::datatransfer::dnd::XDropTargetDropContext,
64 css::lang::XInitialization, css::lang::XServiceInfo>
71 std::vector<css::uno::Reference<css::datatransfer::dnd::XDropTargetListener>>
m_aListeners;
79 virtual void SAL_CALL
initialize(
const css::uno::Sequence<css::uno::Any>& rArgs)
override;
84 const css::uno::Reference<css::datatransfer::dnd::XDropTargetListener>&)
override;
86 const css::uno::Reference<css::datatransfer::dnd::XDropTargetListener>&)
override;
106 void fire_dragEnter(
const css::datatransfer::dnd::DropTargetDragEnterEvent& dtde);
108 void fire_dragOver(
const css::datatransfer::dnd::DropTargetDragEnterEvent& dtde);
109 void fire_drop(
const css::datatransfer::dnd::DropTargetDropEvent& dtde);
virtual ~QtDragSource() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArguments) override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
OUString SAL_CALL getImplementationName() override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL startDrag(const css::datatransfer::dnd::DragGestureEvent &trigger, sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image, const css::uno::Reference< css::datatransfer::XTransferable > &transferable, const css::uno::Reference< css::datatransfer::dnd::XDragSourceListener > &listener) override
virtual sal_Bool SAL_CALL isDragImageSupported() override
css::uno::Reference< css::datatransfer::dnd::XDragSourceListener > m_xListener
void fire_dragEnd(sal_Int8 nAction, bool bSuccessful)
virtual sal_Int32 SAL_CALL getDefaultCursor(sal_Int8 dragAction) override
virtual void SAL_CALL acceptDrop(sal_Int8 dropOperation) override
virtual void SAL_CALL dropComplete(sal_Bool success) override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArgs) override
virtual void SAL_CALL acceptDrag(sal_Int8 dragOperation) override
bool dropSuccessful() const
virtual void SAL_CALL removeDropTargetListener(const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &) override
virtual void SAL_CALL setActive(sal_Bool active) override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~QtDropTarget() override
void fire_drop(const css::datatransfer::dnd::DropTargetDropEvent &dtde)
virtual void SAL_CALL addDropTargetListener(const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &) override
OUString SAL_CALL getImplementationName() override
void fire_dragEnter(const css::datatransfer::dnd::DropTargetDragEnterEvent &dtde)
virtual void SAL_CALL setDefaultActions(sal_Int8 actions) override
std::vector< css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > > m_aListeners
void fire_dragExit(const css::datatransfer::dnd::DropTargetEvent &dte)
virtual sal_Bool SAL_CALL isActive() override
virtual void SAL_CALL rejectDrop() override
sal_Int8 proposedDropAction() const
sal_Int8 m_nDefaultActions
virtual sal_Int8 SAL_CALL getDefaultActions() override
void fire_dragOver(const css::datatransfer::dnd::DropTargetDragEnterEvent &dtde)
virtual void SAL_CALL rejectDrag() override