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 421 of file transfer.hxx.

Constructor & Destructor Documentation

DropTargetHelper::DropTargetHelper ( )
DropTargetHelper::DropTargetHelper ( vcl::Window pWindow)

Definition at line 229 of file transfer2.cxx.

References ImplConstruct().

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

Definition at line 254 of file transfer2.cxx.

References dispose().

Member Function Documentation

sal_Int8 DropTargetHelper::AcceptDrop ( const AcceptDropEvent rEvt)

Reimplemented in weld::ReorderingDropTarget, and SvTreeListBox.

Definition at line 284 of file transfer2.cxx.

void DropTargetHelper::dispose ( void  )

Definition at line 243 of file transfer2.cxx.

References maMutex, mxDropTarget, and mxDropTargetListener.

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

sal_Int8 DropTargetHelper::ExecuteDrop ( const ExecuteDropEvent rEvt)

Reimplemented in weld::ReorderingDropTarget, and SvTreeListBox.

Definition at line 290 of file transfer2.cxx.

const DataFlavorExVector& DropTargetHelper::GetDataFlavorExVector ( ) const

Definition at line 483 of file transfer.hxx.

References maFormats.

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

Definition at line 271 of file transfer2.cxx.

References TransferableDataHelper::FillDataFlavorExVector(), and maFormats.

void DropTargetHelper::ImplConstruct ( )

Definition at line 260 of file transfer2.cxx.

References mxDropTarget, and mxDropTargetListener.

Referenced by DropTargetHelper().

void DropTargetHelper::ImplEndDrag ( )

Definition at line 278 of file transfer2.cxx.

References maFormats.

bool DropTargetHelper::IsDropFormatSupported ( SotClipboardFormatId  nFormat) const

Definition at line 296 of file transfer2.cxx.

References data, and maFormats.

Referenced by SvTreeListBox::AcceptDrop().

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

Friends And Related Function Documentation

Definition at line 449 of file transfer.hxx.

Member Data Documentation

DataFlavorExVector DropTargetHelper::maFormats
std::mutex DropTargetHelper::maMutex

Definition at line 452 of file transfer.hxx.

Referenced by dispose().

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

Definition at line 453 of file transfer.hxx.

Referenced by dispose(), and ImplConstruct().

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

Definition at line 455 of file transfer.hxx.

Referenced by dispose(), and ImplConstruct().

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