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:
[legend]

Classes

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

osl::Mutex maMutex
 
css::uno::Reference< css::datatransfer::dnd::XDropTarget > mxDropTarget
 
css::uno::Reference< css::datatransfer::dnd::XDropTargetListener > mxDropTargetListener
 
DataFlavorExVector maFormats
 

Friends

class DropTargetHelper::DropTargetListener
 

Detailed Description

Definition at line 411 of file transfer.hxx.

Constructor & Destructor Documentation

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

Definition at line 235 of file transfer2.cxx.

References ImplConstruct().

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

Definition at line 261 of file transfer2.cxx.

References dispose().

Member Function Documentation

sal_Int8 DropTargetHelper::AcceptDrop ( const AcceptDropEvent rEvt)
virtual

Reimplemented in SvTreeListBox.

Definition at line 291 of file transfer2.cxx.

void DropTargetHelper::dispose ( void  )

Definition at line 249 of file transfer2.cxx.

References maMutex, mxDropTarget, and mxDropTargetListener.

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

sal_Int8 DropTargetHelper::ExecuteDrop ( const ExecuteDropEvent rEvt)
virtual

Reimplemented in SvTreeListBox.

Definition at line 297 of file transfer2.cxx.

const DataFlavorExVector& DropTargetHelper::GetDataFlavorExVector ( ) const
inline

Definition at line 473 of file transfer.hxx.

References maFormats.

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

Definition at line 278 of file transfer2.cxx.

References TransferableDataHelper::FillDataFlavorExVector(), and maFormats.

void DropTargetHelper::ImplConstruct ( )
private

Definition at line 267 of file transfer2.cxx.

References mxDropTarget, and mxDropTargetListener.

Referenced by DropTargetHelper().

void DropTargetHelper::ImplEndDrag ( )
private

Definition at line 285 of file transfer2.cxx.

References maFormats.

bool DropTargetHelper::IsDropFormatSupported ( SotClipboardFormatId  nFormat)

Definition at line 303 of file transfer2.cxx.

References maFormats.

Referenced by SvTreeListBox::AcceptDrop().

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

Friends And Related Function Documentation

Definition at line 439 of file transfer.hxx.

Member Data Documentation

DataFlavorExVector DropTargetHelper::maFormats
private
osl::Mutex DropTargetHelper::maMutex
private

Definition at line 442 of file transfer.hxx.

Referenced by dispose().

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

Definition at line 443 of file transfer.hxx.

Referenced by dispose(), and ImplConstruct().

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

Definition at line 445 of file transfer.hxx.

Referenced by dispose(), and ImplConstruct().


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