LibreOffice Module dtrans (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
DropTarget Class Reference

#include <target.hxx>

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

Public Member Functions

 DropTarget (const Reference< XComponentContext > &rxContext)
 
virtual ~DropTarget () override
 
 DropTarget (DropTarget const &)=delete
 
DropTargetoperator= (DropTarget const &)=delete
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL initialize (const Sequence< Any > &aArguments) override
 
virtual void SAL_CALL addDropTargetListener (const Reference< XDropTargetListener > &dtl) override
 
virtual void SAL_CALL removeDropTargetListener (const Reference< XDropTargetListener > &dtl) override
 
virtual sal_Bool SAL_CALL isActive () override
 
virtual void SAL_CALL setActive (sal_Bool isActive) override
 
virtual sal_Int8 SAL_CALL getDefaultActions () override
 
virtual void SAL_CALL setDefaultActions (sal_Int8 actions) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual HRESULT DragEnter (IDataObject *pDataObj, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect)
 
virtual HRESULT STDMETHODCALLTYPE DragOver (DWORD grfKeyState, POINTL pt, DWORD *pdwEffect)
 
virtual HRESULT STDMETHODCALLTYPE DragLeave ()
 
virtual HRESULT STDMETHODCALLTYPE Drop (IDataObject *pDataObj, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect)
 
void _acceptDrop (sal_Int8 dropOperation, const Reference< XDropTargetDropContext > &context)
 
void _rejectDrop (const Reference< XDropTargetDropContext > &context)
 
void _dropComplete (bool success, const Reference< XDropTargetDropContext > &context)
 
void _acceptDrag (sal_Int8 dragOperation, const Reference< XDropTargetDragContext > &context)
 
void _rejectDrag (const Reference< XDropTargetDragContext > &context)
 

Protected Member Functions

sal_Int8 getFilteredActions (DWORD grfKeyState, DWORD sourceActions)
 
sal_Int8 getFilteredActions (DWORD grfKeyState)
 
void fire_drop (const DropTargetDropEvent &dte)
 
void fire_dragEnter (const DropTargetDragEnterEvent &dtde)
 
void fire_dragExit (const DropTargetEvent &dte)
 
void fire_dragOver (const DropTargetDragEvent &dtde)
 
void fire_dropActionChanged (const DropTargetDragEvent &dtde)
 

Private Attributes

HWND m_hWnd
 
DWORD m_threadIdWindow
 
DWORD m_threadIdTarget
 
HANDLE m_hOleThread
 
DWORD m_oleThreadId
 
IDropTarget * m_pDropTarget
 
Reference< XComponentContext > m_xContext
 
bool m_bActive
 
sal_Int8 m_nDefaultActions
 
sal_Int8 m_nCurrentDropAction
 
sal_Int8 m_nLastDropAction
 
Reference< XTransferable > m_currentData
 
bool m_bDropComplete
 
Reference< XDropTargetDragContext > m_currentDragContext
 
Reference< XDropTargetDropContext > m_currentDropContext
 

Friends

DWORD WINAPI DndTargetOleSTAFunc (LPVOID pParams)
 

Additional Inherited Members

- Public Attributes inherited from MutexDummy
osl::Mutex m_mutex
 

Detailed Description

Definition at line 52 of file target.hxx.

Constructor & Destructor Documentation

DropTarget::DropTarget ( const Reference< XComponentContext > &  rxContext)
explicit

Definition at line 47 of file target.cxx.

References m_xContext.

DropTarget::~DropTarget ( )
overridevirtual

Definition at line 64 of file target.cxx.

DropTarget::DropTarget ( DropTarget const &  )
delete

Member Function Documentation

void DropTarget::_acceptDrag ( sal_Int8  dragOperation,
const Reference< XDropTargetDragContext > &  context 
)

Definition at line 599 of file target.cxx.

References m_currentDragContext, and m_nLastDropAction.

Referenced by TargetDragContext::acceptDrag().

void DropTarget::_acceptDrop ( sal_Int8  dropOperation,
const Reference< XDropTargetDropContext > &  context 
)

Definition at line 569 of file target.cxx.

References m_currentDropContext, and m_nCurrentDropAction.

Referenced by TargetDropContext::acceptDrop().

void DropTarget::_dropComplete ( bool  success,
const Reference< XDropTargetDropContext > &  context 
)

Definition at line 585 of file target.cxx.

References m_bDropComplete, and m_currentDropContext.

Referenced by TargetDropContext::dropComplete().

void DropTarget::_rejectDrag ( const Reference< XDropTargetDragContext > &  context)

Definition at line 607 of file target.cxx.

References m_currentDragContext, and m_nLastDropAction.

Referenced by TargetDragContext::rejectDrag().

void DropTarget::_rejectDrop ( const Reference< XDropTargetDropContext > &  context)

Definition at line 577 of file target.cxx.

References m_currentDropContext, and m_nCurrentDropAction.

Referenced by TargetDropContext::rejectDrop().

void SAL_CALL DropTarget::addDropTargetListener ( const Reference< XDropTargetListener > &  dtl)
overridevirtual

Definition at line 265 of file target.cxx.

void SAL_CALL DropTarget::disposing ( )
overridevirtual
HRESULT DropTarget::DragEnter ( IDataObject *  pDataObj,
DWORD  grfKeyState,
POINTL  pt,
DWORD *  pdwEffect 
)
virtual
HRESULT DropTarget::DragLeave ( )
virtual
HRESULT DropTarget::DragOver ( DWORD  grfKeyState,
POINTL  pt,
DWORD *  pdwEffect 
)
virtual
HRESULT DropTarget::Drop ( IDataObject *  pDataObj,
DWORD  grfKeyState,
POINTL  pt,
DWORD *  pdwEffect 
)
virtual
void DropTarget::fire_dragEnter ( const DropTargetDragEnterEvent &  dtde)
protected
void DropTarget::fire_dragExit ( const DropTargetEvent &  dte)
protected
void DropTarget::fire_dragOver ( const DropTargetDragEvent &  dtde)
protected
void DropTarget::fire_drop ( const DropTargetDropEvent &  dte)
protected
void DropTarget::fire_dropActionChanged ( const DropTargetDragEvent &  dtde)
protected
sal_Int8 SAL_CALL DropTarget::getDefaultActions ( )
overridevirtual

Definition at line 286 of file target.cxx.

References m_nDefaultActions.

sal_Int8 DropTarget::getFilteredActions ( DWORD  grfKeyState,
DWORD  sourceActions 
)
inlineprotected

Definition at line 622 of file target.cxx.

References dndOleDropEffectsToActions(), dndOleKeysToAction(), and m_nDefaultActions.

Referenced by DragEnter(), DragOver(), and Drop().

sal_Int8 DropTarget::getFilteredActions ( DWORD  grfKeyState)
inlineprotected
OUString SAL_CALL DropTarget::getImplementationName ( )
overridevirtual

Definition at line 249 of file target.cxx.

References DNDTARGET_IMPL_NAME.

Sequence< OUString > SAL_CALL DropTarget::getSupportedServiceNames ( )
overridevirtual

Definition at line 259 of file target.cxx.

References DNDTARGET_SERVICE_NAME.

void SAL_CALL DropTarget::initialize ( const Sequence< Any > &  aArguments)
overridevirtual
sal_Bool SAL_CALL DropTarget::isActive ( )
overridevirtual

Definition at line 275 of file target.cxx.

References m_bActive.

DropTarget& DropTarget::operator= ( DropTarget const &  )
delete
void SAL_CALL DropTarget::removeDropTargetListener ( const Reference< XDropTargetListener > &  dtl)
overridevirtual

Definition at line 270 of file target.cxx.

void SAL_CALL DropTarget::setActive ( sal_Bool  isActive)
overridevirtual

Definition at line 280 of file target.cxx.

References m_bActive, and MutexDummy::m_mutex.

void SAL_CALL DropTarget::setDefaultActions ( sal_Int8  actions)
overridevirtual

Definition at line 291 of file target.cxx.

References m_nDefaultActions.

sal_Bool SAL_CALL DropTarget::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 254 of file target.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

DWORD WINAPI DndTargetOleSTAFunc ( LPVOID  pParams)
friend

Definition at line 191 of file target.cxx.

Referenced by initialize().

Member Data Documentation

bool DropTarget::m_bActive
private

Definition at line 84 of file target.hxx.

Referenced by DragEnter(), DragLeave(), DragOver(), Drop(), isActive(), and setActive().

bool DropTarget::m_bDropComplete
private

Definition at line 99 of file target.hxx.

Referenced by _dropComplete(), and Drop().

Reference<XTransferable> DropTarget::m_currentData
private

Definition at line 94 of file target.hxx.

Referenced by DragEnter(), DragLeave(), and Drop().

Reference<XDropTargetDragContext> DropTarget::m_currentDragContext
private

Definition at line 100 of file target.hxx.

Referenced by _acceptDrag(), _rejectDrag(), DragEnter(), DragLeave(), DragOver(), and Drop().

Reference<XDropTargetDropContext> DropTarget::m_currentDropContext
private

Definition at line 101 of file target.hxx.

Referenced by _acceptDrop(), _dropComplete(), _rejectDrop(), DragLeave(), and Drop().

HANDLE DropTarget::m_hOleThread
private

Definition at line 71 of file target.hxx.

Referenced by disposing(), and initialize().

HWND DropTarget::m_hWnd
private

Definition at line 61 of file target.hxx.

Referenced by disposing(), DndTargetOleSTAFunc(), DragEnter(), DragOver(), Drop(), and initialize().

sal_Int8 DropTarget::m_nCurrentDropAction
private

Definition at line 90 of file target.hxx.

Referenced by _acceptDrop(), _rejectDrop(), DragEnter(), DragOver(), and Drop().

sal_Int8 DropTarget::m_nDefaultActions
private

Definition at line 85 of file target.hxx.

Referenced by DragLeave(), getDefaultActions(), getFilteredActions(), and setDefaultActions().

sal_Int8 DropTarget::m_nLastDropAction
private

Definition at line 92 of file target.hxx.

Referenced by _acceptDrag(), _rejectDrag(), DragEnter(), DragLeave(), DragOver(), and Drop().

DWORD DropTarget::m_oleThreadId
private

Definition at line 75 of file target.hxx.

Referenced by disposing(), and initialize().

IDropTarget* DropTarget::m_pDropTarget
private

Definition at line 79 of file target.hxx.

Referenced by disposing(), DndTargetOleSTAFunc(), and initialize().

DWORD DropTarget::m_threadIdTarget
private

Definition at line 68 of file target.hxx.

Referenced by disposing(), and initialize().

DWORD DropTarget::m_threadIdWindow
private

Definition at line 65 of file target.hxx.

Referenced by DndTargetOleSTAFunc(), and initialize().

Reference<XComponentContext> DropTarget::m_xContext
private

Definition at line 81 of file target.hxx.

Referenced by DragEnter().


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