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

#include <dnd_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

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 52 of file dnd_target.hxx.

Constructor & Destructor Documentation

◆ DropTarget() [1/2]

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

◆ ~DropTarget()

virtual DropTarget::~DropTarget ( )
overridevirtual

◆ DropTarget() [2/2]

DropTarget::DropTarget ( DropTarget const &  )
delete

Member Function Documentation

◆ _acceptDrag()

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

◆ _acceptDrop()

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

◆ _dropComplete()

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

◆ _rejectDrag()

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

◆ _rejectDrop()

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

◆ addDropTargetListener()

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

◆ disposing()

virtual void SAL_CALL DropTarget::disposing ( )
overridevirtual

◆ DragEnter()

virtual HRESULT DropTarget::DragEnter ( IDataObject *  pDataObj,
DWORD  grfKeyState,
POINTL  pt,
DWORD *  pdwEffect 
)
virtual

◆ DragLeave()

virtual HRESULT STDMETHODCALLTYPE DropTarget::DragLeave ( )
virtual

◆ DragOver()

virtual HRESULT STDMETHODCALLTYPE DropTarget::DragOver ( DWORD  grfKeyState,
POINTL  pt,
DWORD *  pdwEffect 
)
virtual

◆ Drop()

virtual HRESULT STDMETHODCALLTYPE DropTarget::Drop ( IDataObject *  pDataObj,
DWORD  grfKeyState,
POINTL  pt,
DWORD *  pdwEffect 
)
virtual

◆ fire_dragEnter()

void DropTarget::fire_dragEnter ( const DropTargetDragEnterEvent &  dtde)
protected

◆ fire_dragExit()

void DropTarget::fire_dragExit ( const DropTargetEvent &  dte)
protected

◆ fire_dragOver()

void DropTarget::fire_dragOver ( const DropTargetDragEvent &  dtde)
protected

◆ fire_drop()

void DropTarget::fire_drop ( const DropTargetDropEvent &  dte)
protected

◆ fire_dropActionChanged()

void DropTarget::fire_dropActionChanged ( const DropTargetDragEvent &  dtde)
protected

◆ getDefaultActions()

virtual sal_Int8 SAL_CALL DropTarget::getDefaultActions ( )
overridevirtual

◆ getFilteredActions() [1/2]

sal_Int8 DropTarget::getFilteredActions ( DWORD  grfKeyState)
inlineprotected

◆ getFilteredActions() [2/2]

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

◆ getImplementationName()

virtual OUString SAL_CALL DropTarget::getImplementationName ( )
overridevirtual

◆ getSupportedServiceNames()

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

◆ initialize()

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

◆ isActive()

virtual sal_Bool SAL_CALL DropTarget::isActive ( )
overridevirtual

◆ operator=()

DropTarget & DropTarget::operator= ( DropTarget const &  )
delete

◆ removeDropTargetListener()

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

◆ setActive()

virtual void SAL_CALL DropTarget::setActive ( sal_Bool  isActive)
overridevirtual

◆ setDefaultActions()

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

◆ supportsService()

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

Friends And Related Function Documentation

◆ DndTargetOleSTAFunc

DWORD WINAPI DndTargetOleSTAFunc ( LPVOID  pParams)
friend

Member Data Documentation

◆ m_bActive

bool DropTarget::m_bActive
private

Definition at line 84 of file dnd_target.hxx.

◆ m_bDropComplete

bool DropTarget::m_bDropComplete
private

Definition at line 99 of file dnd_target.hxx.

◆ m_currentData

Reference<XTransferable> DropTarget::m_currentData
private

Definition at line 94 of file dnd_target.hxx.

◆ m_currentDragContext

Reference<XDropTargetDragContext> DropTarget::m_currentDragContext
private

Definition at line 100 of file dnd_target.hxx.

◆ m_currentDropContext

Reference<XDropTargetDropContext> DropTarget::m_currentDropContext
private

Definition at line 101 of file dnd_target.hxx.

◆ m_hOleThread

HANDLE DropTarget::m_hOleThread
private

Definition at line 71 of file dnd_target.hxx.

◆ m_hWnd

HWND DropTarget::m_hWnd
private

Definition at line 61 of file dnd_target.hxx.

◆ m_nCurrentDropAction

sal_Int8 DropTarget::m_nCurrentDropAction
private

Definition at line 90 of file dnd_target.hxx.

◆ m_nDefaultActions

sal_Int8 DropTarget::m_nDefaultActions
private

Definition at line 85 of file dnd_target.hxx.

◆ m_nLastDropAction

sal_Int8 DropTarget::m_nLastDropAction
private

Definition at line 92 of file dnd_target.hxx.

◆ m_oleThreadId

DWORD DropTarget::m_oleThreadId
private

Definition at line 75 of file dnd_target.hxx.

◆ m_pDropTarget

IDropTarget* DropTarget::m_pDropTarget
private

Definition at line 79 of file dnd_target.hxx.

◆ m_threadIdTarget

DWORD DropTarget::m_threadIdTarget
private

Definition at line 68 of file dnd_target.hxx.

◆ m_threadIdWindow

DWORD DropTarget::m_threadIdWindow
private

Definition at line 65 of file dnd_target.hxx.

◆ m_xContext

Reference<XComponentContext> DropTarget::m_xContext
private

Definition at line 81 of file dnd_target.hxx.


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