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
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< css::datatransfer::dnd::XDragGestureRecognizer, css::datatransfer::dnd::XDropTargetDragContext, css::datatransfer::dnd::XDropTargetDropContext, css::datatransfer::dnd::XDropTarget >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Attributes

bool m_bActive
 
sal_Int8 m_nDefaultActions
 
comphelper::OInterfaceContainerHelper4< css::datatransfer::dnd::XDragGestureListener > maDragGestureListeners
 
comphelper::OInterfaceContainerHelper4< css::datatransfer::dnd::XDropTargetListener > maDropTargetListeners
 
css::uno::Reference< css::datatransfer::dnd::XDropTargetDragContext > m_xDropTargetDragContext
 
css::uno::Reference< css::datatransfer::dnd::XDropTargetDropContext > m_xDropTargetDropContext
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 57 of file dndlistenercontainer.hxx.

Constructor & Destructor Documentation

◆ DNDListenerContainer()

DNDListenerContainer::DNDListenerContainer ( sal_Int8  nDefaultActions)

Definition at line 27 of file dndlistenercontainer.cxx.

References m_bActive, and m_nDefaultActions.

◆ ~DNDListenerContainer()

DNDListenerContainer::~DNDListenerContainer ( )
overridevirtual

Definition at line 33 of file dndlistenercontainer.cxx.

Member Function Documentation

◆ acceptDrag()

void SAL_CALL DNDListenerContainer::acceptDrag ( sal_Int8  dragOperation)
overridevirtual

Definition at line 385 of file dndlistenercontainer.cxx.

References m_xDropTargetDragContext.

◆ acceptDrop()

void SAL_CALL DNDListenerContainer::acceptDrop ( sal_Int8  dropOperation)
overridevirtual

Definition at line 399 of file dndlistenercontainer.cxx.

References m_xDropTargetDropContext.

◆ addDragGestureListener()

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

◆ addDropTargetListener()

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

◆ dropComplete()

void SAL_CALL DNDListenerContainer::dropComplete ( sal_Bool  success)
overridevirtual

Definition at line 410 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 
)

◆ fireDragExitEvent()

sal_uInt32 DNDListenerContainer::fireDragExitEvent ( )

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ getDefaultActions()

sal_Int8 SAL_CALL DNDListenerContainer::getDefaultActions ( )
overridevirtual

Definition at line 75 of file dndlistenercontainer.cxx.

References m_nDefaultActions.

◆ isActive()

sal_Bool SAL_CALL DNDListenerContainer::isActive ( )
overridevirtual

Definition at line 65 of file dndlistenercontainer.cxx.

References m_bActive.

◆ rejectDrag()

void SAL_CALL DNDListenerContainer::rejectDrag ( )
overridevirtual

Definition at line 394 of file dndlistenercontainer.cxx.

◆ rejectDrop()

void SAL_CALL DNDListenerContainer::rejectDrop ( )
overridevirtual

Definition at line 405 of file dndlistenercontainer.cxx.

◆ removeDragGestureListener()

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

◆ removeDropTargetListener()

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

◆ resetRecognizer()

void SAL_CALL DNDListenerContainer::resetRecognizer ( )
overridevirtual

Definition at line 49 of file dndlistenercontainer.cxx.

◆ setActive()

void SAL_CALL DNDListenerContainer::setActive ( sal_Bool  active)
overridevirtual

Definition at line 70 of file dndlistenercontainer.cxx.

References m_bActive.

◆ setDefaultActions()

void SAL_CALL DNDListenerContainer::setDefaultActions ( sal_Int8  actions)
overridevirtual

Definition at line 80 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 69 of file dndlistenercontainer.hxx.

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

◆ maDragGestureListeners

comphelper::OInterfaceContainerHelper4<css::datatransfer::dnd::XDragGestureListener> DNDListenerContainer::maDragGestureListeners
private

◆ maDropTargetListeners

comphelper::OInterfaceContainerHelper4<css::datatransfer::dnd::XDropTargetListener> DNDListenerContainer::maDropTargetListeners
private

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