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

#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
 

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
 

Additional Inherited Members

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

Detailed Description

Definition at line 56 of file dndlistenercontainer.hxx.

Constructor & Destructor Documentation

◆ DNDListenerContainer()

DNDListenerContainer::DNDListenerContainer ( sal_Int8  nDefaultActions)

Definition at line 27 of file dndlistenercontainer.cxx.

References m_aMutex, m_bActive, and m_nDefaultActions.

◆ ~DNDListenerContainer()

DNDListenerContainer::~DNDListenerContainer ( )
overridevirtual

Definition at line 34 of file dndlistenercontainer.cxx.

Member Function Documentation

◆ acceptDrag()

void SAL_CALL DNDListenerContainer::acceptDrag ( sal_Int8  dragOperation)
overridevirtual

Definition at line 417 of file dndlistenercontainer.cxx.

References m_xDropTargetDragContext.

◆ acceptDrop()

void SAL_CALL DNDListenerContainer::acceptDrop ( sal_Int8  dropOperation)
overridevirtual

Definition at line 431 of file dndlistenercontainer.cxx.

References m_xDropTargetDropContext.

◆ addDragGestureListener()

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

Definition at line 38 of file dndlistenercontainer.cxx.

◆ addDropTargetListener()

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

Definition at line 52 of file dndlistenercontainer.cxx.

◆ dropComplete()

void SAL_CALL DNDListenerContainer::dropComplete ( sal_Bool  success)
overridevirtual

Definition at line 442 of file dndlistenercontainer.cxx.

References m_xDropTargetDropContext.

◆ fireDragEnterEvent()

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 aEvent, m_bActive, and m_xDropTargetDragContext.

◆ fireDragExitEvent()

sal_uInt32 DNDListenerContainer::fireDragExitEvent ( )

Definition at line 151 of file dndlistenercontainer.cxx.

References aEvent, and m_bActive.

◆ fireDragGestureEvent()

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.

References aEvent.

◆ fireDragOverEvent()

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 aEvent, m_bActive, and m_xDropTargetDragContext.

◆ fireDropActionChangedEvent()

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 aEvent, m_bActive, and m_xDropTargetDragContext.

◆ fireDropEvent()

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 aEvent, m_bActive, and m_xDropTargetDropContext.

◆ getDefaultActions()

sal_Int8 SAL_CALL DNDListenerContainer::getDefaultActions ( )
overridevirtual

Definition at line 72 of file dndlistenercontainer.cxx.

References m_nDefaultActions.

◆ isActive()

sal_Bool SAL_CALL DNDListenerContainer::isActive ( )
overridevirtual

Definition at line 62 of file dndlistenercontainer.cxx.

References m_bActive.

◆ rejectDrag()

void SAL_CALL DNDListenerContainer::rejectDrag ( )
overridevirtual

Definition at line 426 of file dndlistenercontainer.cxx.

◆ rejectDrop()

void SAL_CALL DNDListenerContainer::rejectDrop ( )
overridevirtual

Definition at line 437 of file dndlistenercontainer.cxx.

◆ removeDragGestureListener()

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

Definition at line 43 of file dndlistenercontainer.cxx.

◆ removeDropTargetListener()

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

Definition at line 57 of file dndlistenercontainer.cxx.

◆ resetRecognizer()

void SAL_CALL DNDListenerContainer::resetRecognizer ( )
overridevirtual

Definition at line 48 of file dndlistenercontainer.cxx.

◆ setActive()

void SAL_CALL DNDListenerContainer::setActive ( sal_Bool  active)
overridevirtual

Definition at line 67 of file dndlistenercontainer.cxx.

References m_bActive.

◆ setDefaultActions()

void SAL_CALL DNDListenerContainer::setDefaultActions ( sal_Int8  actions)
overridevirtual

Definition at line 77 of file dndlistenercontainer.cxx.

References m_nDefaultActions.

Member Data Documentation

◆ m_bActive

bool DNDListenerContainer::m_bActive
private

◆ m_nDefaultActions

sal_Int8 DNDListenerContainer::m_nDefaultActions
private

◆ m_xDropTargetDragContext

css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > DNDListenerContainer::m_xDropTargetDragContext
private

◆ m_xDropTargetDropContext

css::uno::Reference< css::datatransfer::dnd::XDropTargetDropContext > DNDListenerContainer::m_xDropTargetDropContext
private

Definition at line 67 of file dndlistenercontainer.hxx.

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


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