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

#include <dndlistenercontainer.hxx>

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

Public Member Functions

 DNDListenerContainer (sal_Int8 nDefaultActions)
 
virtual ~DNDListenerContainer () 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)
 
sal_uInt32 fireDragExitEvent ()
 
sal_uInt32 fireDragOverEvent (const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > &context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions)
 
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_uInt32 fireDropActionChangedEvent (const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > &context, sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions)
 
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 addDragGestureListener (const css::uno::Reference< css::datatransfer::dnd::XDragGestureListener > &dgl) override
 
virtual void SAL_CALL removeDragGestureListener (const css::uno::Reference< css::datatransfer::dnd::XDragGestureListener > &dgl) override
 
virtual void SAL_CALL resetRecognizer () 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
 
virtual void SAL_CALL addDropTargetListener (const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &dtl) override
 
virtual void SAL_CALL removeDropTargetListener (const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > &dtl) 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
 
- Public Member Functions inherited from vcl::unohelper::MutexHelper
::osl::Mutex & GetMutex ()
 

Private Attributes

bool m_bActive
 
sal_Int8 m_nDefaultActions
 
css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > m_xDropTargetDragContext
 
css::uno::Reference< css::datatransfer::dnd::XDropTargetDropContext > m_xDropTargetDropContext
 

Detailed Description

Definition at line 32 of file dndlistenercontainer.hxx.

Constructor & Destructor Documentation

DNDListenerContainer::DNDListenerContainer ( sal_Int8  nDefaultActions)

Definition at line 27 of file dndlistenercontainer.cxx.

References m_bActive, and m_nDefaultActions.

DNDListenerContainer::~DNDListenerContainer ( )
overridevirtual

Definition at line 34 of file dndlistenercontainer.cxx.

Member Function Documentation

void SAL_CALL DNDListenerContainer::acceptDrag ( sal_Int8  dragOperation)
overridevirtual

Definition at line 417 of file dndlistenercontainer.cxx.

References m_xDropTargetDragContext.

void SAL_CALL DNDListenerContainer::acceptDrop ( sal_Int8  dropOperation)
overridevirtual

Definition at line 431 of file dndlistenercontainer.cxx.

References m_xDropTargetDropContext.

void SAL_CALL DNDListenerContainer::addDragGestureListener ( const css::uno::Reference< css::datatransfer::dnd::XDragGestureListener > &  dgl)
overridevirtual

Definition at line 38 of file dndlistenercontainer.cxx.

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

Definition at line 52 of file dndlistenercontainer.cxx.

void SAL_CALL DNDListenerContainer::dropComplete ( sal_Bool  success)
overridevirtual

Definition at line 442 of file dndlistenercontainer.cxx.

References m_xDropTargetDropContext.

sal_uInt32 DNDListenerContainer::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 
)

Definition at line 252 of file dndlistenercontainer.cxx.

References m_bActive, and m_xDropTargetDragContext.

sal_uInt32 DNDListenerContainer::fireDragExitEvent ( )

Definition at line 151 of file dndlistenercontainer.cxx.

References m_bActive.

sal_uInt32 DNDListenerContainer::fireDragGestureEvent ( sal_Int8  dragAction,
sal_Int32  dragOriginX,
sal_Int32  dragOriginY,
const css::uno::Reference< css::datatransfer::dnd::XDragSource > &  dragSource,
const css::uno::Any &  triggerEvent 
)

Definition at line 375 of file dndlistenercontainer.cxx.

sal_uInt32 DNDListenerContainer::fireDragOverEvent ( const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > &  context,
sal_Int8  dropAction,
sal_Int32  locationX,
sal_Int32  locationY,
sal_Int8  sourceActions 
)

Definition at line 191 of file dndlistenercontainer.cxx.

References m_bActive, and m_xDropTargetDragContext.

sal_uInt32 DNDListenerContainer::fireDropActionChangedEvent ( const css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > &  context,
sal_Int8  dropAction,
sal_Int32  locationX,
sal_Int32  locationY,
sal_Int8  sourceActions 
)

Definition at line 314 of file dndlistenercontainer.cxx.

References m_bActive, and m_xDropTargetDragContext.

sal_uInt32 DNDListenerContainer::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 
)

Definition at line 82 of file dndlistenercontainer.cxx.

References m_bActive, and m_xDropTargetDropContext.

sal_Int8 SAL_CALL DNDListenerContainer::getDefaultActions ( )
overridevirtual

Definition at line 72 of file dndlistenercontainer.cxx.

References m_nDefaultActions.

sal_Bool SAL_CALL DNDListenerContainer::isActive ( )
overridevirtual

Definition at line 62 of file dndlistenercontainer.cxx.

References m_bActive.

void SAL_CALL DNDListenerContainer::rejectDrag ( )
overridevirtual

Definition at line 426 of file dndlistenercontainer.cxx.

void SAL_CALL DNDListenerContainer::rejectDrop ( )
overridevirtual

Definition at line 437 of file dndlistenercontainer.cxx.

void SAL_CALL DNDListenerContainer::removeDragGestureListener ( const css::uno::Reference< css::datatransfer::dnd::XDragGestureListener > &  dgl)
overridevirtual

Definition at line 43 of file dndlistenercontainer.cxx.

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

Definition at line 57 of file dndlistenercontainer.cxx.

void SAL_CALL DNDListenerContainer::resetRecognizer ( )
overridevirtual

Definition at line 48 of file dndlistenercontainer.cxx.

void SAL_CALL DNDListenerContainer::setActive ( sal_Bool  active)
overridevirtual

Definition at line 67 of file dndlistenercontainer.cxx.

References m_bActive.

void SAL_CALL DNDListenerContainer::setDefaultActions ( sal_Int8  actions)
overridevirtual

Definition at line 77 of file dndlistenercontainer.cxx.

References m_nDefaultActions.

Member Data Documentation

bool DNDListenerContainer::m_bActive
private
sal_Int8 DNDListenerContainer::m_nDefaultActions
private
css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > DNDListenerContainer::m_xDropTargetDragContext
private
css::uno::Reference< css::datatransfer::dnd::XDropTargetDropContext > DNDListenerContainer::m_xDropTargetDropContext
private

Definition at line 43 of file dndlistenercontainer.hxx.

Referenced by acceptDrop(), dropComplete(), and fireDropEvent().


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