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

#include <transfer.hxx>

Inheritance diagram for DropTargetHelper:


class  DropTargetListener

Public Member Functions

virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt)
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt)
 DropTargetHelper (vcl::Window *pWindow)
 DropTargetHelper (const css::uno::Reference< css::datatransfer::dnd::XDropTarget > &rxDropTarget)
void dispose ()
virtual ~DropTargetHelper ()
bool IsDropFormatSupported (SotClipboardFormatId nFormat) const
const DataFlavorExVectorGetDataFlavorExVector () const

Private Member Functions

 DropTargetHelper ()=delete
DropTargetHelperoperator= (const DropTargetHelper &rDropTargetHelper)=delete
bool operator== (const DropTargetHelper &rDropTargetHelper) const =delete
void ImplConstruct ()
void ImplBeginDrag (const css::uno::Sequence< css::datatransfer::DataFlavor > &rSupportedDataFlavors)
void ImplEndDrag ()

Private Attributes

std::mutex maMutex
css::uno::Reference< css::datatransfer::dnd::XDropTarget > mxDropTarget
css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > mxDropTargetListener
DataFlavorExVector maFormats


class DropTargetHelper::DropTargetListener

Detailed Description

Definition at line 422 of file transfer.hxx.

Constructor & Destructor Documentation

◆ DropTargetHelper() [1/3]

DropTargetHelper::DropTargetHelper ( )

◆ DropTargetHelper() [2/3]

DropTargetHelper::DropTargetHelper ( vcl::Window pWindow)

Definition at line 229 of file transfer2.cxx.

References ImplConstruct().

◆ DropTargetHelper() [3/3]

DropTargetHelper::DropTargetHelper ( const css::uno::Reference< css::datatransfer::dnd::XDropTarget > &  rxDropTarget)

◆ ~DropTargetHelper()

DropTargetHelper::~DropTargetHelper ( )

Definition at line 254 of file transfer2.cxx.

References dispose().

Member Function Documentation

◆ AcceptDrop()

sal_Int8 DropTargetHelper::AcceptDrop ( const AcceptDropEvent rEvt)

Reimplemented in SvTreeListBox, and weld::ReorderingDropTarget.

Definition at line 284 of file transfer2.cxx.

◆ dispose()

void DropTargetHelper::dispose ( void  )

Definition at line 243 of file transfer2.cxx.

References maMutex, mxDropTarget, and mxDropTargetListener.

Referenced by SvTreeListBox::dispose(), and ~DropTargetHelper().

◆ ExecuteDrop()

sal_Int8 DropTargetHelper::ExecuteDrop ( const ExecuteDropEvent rEvt)

Reimplemented in SvTreeListBox, and weld::ReorderingDropTarget.

Definition at line 290 of file transfer2.cxx.

◆ GetDataFlavorExVector()

const DataFlavorExVector & DropTargetHelper::GetDataFlavorExVector ( ) const

Definition at line 484 of file transfer.hxx.

References maFormats.

◆ ImplBeginDrag()

void DropTargetHelper::ImplBeginDrag ( const css::uno::Sequence< css::datatransfer::DataFlavor > &  rSupportedDataFlavors)

Definition at line 271 of file transfer2.cxx.

References TransferableDataHelper::FillDataFlavorExVector(), and maFormats.

◆ ImplConstruct()

void DropTargetHelper::ImplConstruct ( )

Definition at line 260 of file transfer2.cxx.

References mxDropTarget, and mxDropTargetListener.

Referenced by DropTargetHelper().

◆ ImplEndDrag()

void DropTargetHelper::ImplEndDrag ( )

Definition at line 278 of file transfer2.cxx.

References maFormats.

◆ IsDropFormatSupported()

bool DropTargetHelper::IsDropFormatSupported ( SotClipboardFormatId  nFormat) const

Definition at line 296 of file transfer2.cxx.

References maFormats.

Referenced by SvTreeListBox::AcceptDrop().

◆ operator=()

DropTargetHelper & DropTargetHelper::operator= ( const DropTargetHelper rDropTargetHelper)

◆ operator==()

bool DropTargetHelper::operator== ( const DropTargetHelper rDropTargetHelper) const

Friends And Related Function Documentation

◆ DropTargetHelper::DropTargetListener

Definition at line 450 of file transfer.hxx.

Member Data Documentation

◆ maFormats

DataFlavorExVector DropTargetHelper::maFormats

◆ maMutex

std::mutex DropTargetHelper::maMutex

Definition at line 453 of file transfer.hxx.

Referenced by dispose().

◆ mxDropTarget

css::uno::Reference< css::datatransfer::dnd::XDropTarget > DropTargetHelper::mxDropTarget

Definition at line 454 of file transfer.hxx.

Referenced by dispose(), and ImplConstruct().

◆ mxDropTargetListener

css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > DropTargetHelper::mxDropTargetListener

Definition at line 456 of file transfer.hxx.

Referenced by dispose(), and ImplConstruct().

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