LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
QtDropTarget Class Referencefinal

#include <QtDragAndDrop.hxx>

Inheritance diagram for QtDropTarget:
[legend]
Collaboration diagram for QtDropTarget:
[legend]

Public Member Functions

 QtDropTarget ()
 
virtual ~QtDropTarget () override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &rArgs) override
 
void deinitialize ()
 
virtual void SAL_CALL addDropTargetListener (const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &) override
 
virtual void SAL_CALL removeDropTargetListener (const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &) 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
 
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
 
OUString SAL_CALL getImplementationName () override
 
sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
void fire_dragEnter (const css::datatransfer::dnd::DropTargetDragEnterEvent &dtde)
 
void fire_dragExit (const css::datatransfer::dnd::DropTargetEvent &dte)
 
void fire_dragOver (const css::datatransfer::dnd::DropTargetDragEnterEvent &dtde)
 
void fire_drop (const css::datatransfer::dnd::DropTargetDropEvent &dtde)
 
sal_Int8 proposedDropAction () const
 
bool dropSuccessful () const
 

Private Attributes

osl::Mutex m_aMutex
 
QtFramem_pFrame
 
sal_Int8 m_nDropAction
 
bool m_bActive
 
sal_Int8 m_nDefaultActions
 
std::vector< css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > > m_aListeners
 
bool m_bDropSuccessful
 

Detailed Description

Definition at line 60 of file qt5/QtDragAndDrop.hxx.

Constructor & Destructor Documentation

◆ QtDropTarget()

QtDropTarget::QtDropTarget ( )

◆ ~QtDropTarget()

virtual QtDropTarget::~QtDropTarget ( )
overridevirtual

Member Function Documentation

◆ acceptDrag()

virtual void SAL_CALL QtDropTarget::acceptDrag ( sal_Int8  dragOperation)
overridevirtual

◆ acceptDrop()

virtual void SAL_CALL QtDropTarget::acceptDrop ( sal_Int8  dropOperation)
overridevirtual

◆ addDropTargetListener()

virtual void SAL_CALL QtDropTarget::addDropTargetListener ( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &  )
overridevirtual

◆ deinitialize()

void QtDropTarget::deinitialize ( )

◆ dropComplete()

virtual void SAL_CALL QtDropTarget::dropComplete ( sal_Bool  success)
overridevirtual

◆ dropSuccessful()

bool QtDropTarget::dropSuccessful ( ) const
inline

Definition at line 112 of file qt5/QtDragAndDrop.hxx.

References m_bDropSuccessful.

◆ fire_dragEnter()

void QtDropTarget::fire_dragEnter ( const css::datatransfer::dnd::DropTargetDragEnterEvent &  dtde)

◆ fire_dragExit()

void QtDropTarget::fire_dragExit ( const css::datatransfer::dnd::DropTargetEvent &  dte)

◆ fire_dragOver()

void QtDropTarget::fire_dragOver ( const css::datatransfer::dnd::DropTargetDragEnterEvent &  dtde)

◆ fire_drop()

void QtDropTarget::fire_drop ( const css::datatransfer::dnd::DropTargetDropEvent &  dtde)

◆ getDefaultActions()

virtual sal_Int8 SAL_CALL QtDropTarget::getDefaultActions ( )
overridevirtual

◆ getImplementationName()

OUString SAL_CALL QtDropTarget::getImplementationName ( )
override

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL QtDropTarget::getSupportedServiceNames ( )
override

◆ initialize()

virtual void SAL_CALL QtDropTarget::initialize ( const css::uno::Sequence< css::uno::Any > &  rArgs)
overridevirtual

◆ isActive()

virtual sal_Bool SAL_CALL QtDropTarget::isActive ( )
overridevirtual

◆ proposedDropAction()

sal_Int8 QtDropTarget::proposedDropAction ( ) const
inline

Definition at line 111 of file qt5/QtDragAndDrop.hxx.

References m_nDropAction.

◆ rejectDrag()

virtual void SAL_CALL QtDropTarget::rejectDrag ( )
overridevirtual

◆ rejectDrop()

virtual void SAL_CALL QtDropTarget::rejectDrop ( )
overridevirtual

◆ removeDropTargetListener()

virtual void SAL_CALL QtDropTarget::removeDropTargetListener ( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &  )
overridevirtual

◆ setActive()

virtual void SAL_CALL QtDropTarget::setActive ( sal_Bool  active)
overridevirtual

◆ setDefaultActions()

virtual void SAL_CALL QtDropTarget::setDefaultActions ( sal_Int8  actions)
overridevirtual

◆ supportsService()

sal_Bool SAL_CALL QtDropTarget::supportsService ( OUString const &  ServiceName)
override

Member Data Documentation

◆ m_aListeners

std::vector<css::uno::Reference<css::datatransfer::dnd::XDropTargetListener> > QtDropTarget::m_aListeners
private

Definition at line 71 of file qt5/QtDragAndDrop.hxx.

◆ m_aMutex

osl::Mutex QtDropTarget::m_aMutex
private

Definition at line 66 of file qt5/QtDragAndDrop.hxx.

◆ m_bActive

bool QtDropTarget::m_bActive
private

Definition at line 69 of file qt5/QtDragAndDrop.hxx.

◆ m_bDropSuccessful

bool QtDropTarget::m_bDropSuccessful
private

Definition at line 72 of file qt5/QtDragAndDrop.hxx.

Referenced by dropSuccessful().

◆ m_nDefaultActions

sal_Int8 QtDropTarget::m_nDefaultActions
private

Definition at line 70 of file qt5/QtDragAndDrop.hxx.

◆ m_nDropAction

sal_Int8 QtDropTarget::m_nDropAction
private

Definition at line 68 of file qt5/QtDragAndDrop.hxx.

Referenced by proposedDropAction().

◆ m_pFrame

QtFrame* QtDropTarget::m_pFrame
private

Definition at line 67 of file qt5/QtDragAndDrop.hxx.


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