LibreOffice Module vcl (master)  1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
TransferableHelper Class Referenceabstract

#include <transfer.hxx>

Inheritance diagram for TransferableHelper:
[legend]
Collaboration diagram for TransferableHelper:
[legend]

Classes

class  TerminateListener
 

Public Member Functions

void PrepareOLE (const TransferableObjectDescriptor &rObjDesc)
 
void CopyToClipboard (vcl::Window *pWindow) const
 
void CopyToSelection (vcl::Window *pWindow) const
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions)
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rId) override
 

Static Public Member Functions

static void ClearSelection (vcl::Window *pWindow)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Protected Member Functions

const css::uno::Reference< css::datatransfer::clipboard::XClipboard > & getOwnClipboard () const
 
void implCallOwnLostOwnership (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &_rxClipboard, const css::uno::Reference< css::datatransfer::XTransferable > &_rxTrans)
 
void AddFormat (SotClipboardFormatId nFormat)
 
void AddFormat (const css::datatransfer::DataFlavor &rFlavor)
 
void RemoveFormat (SotClipboardFormatId nFormat)
 
void RemoveFormat (const css::datatransfer::DataFlavor &rFlavor)
 
bool HasFormat (SotClipboardFormatId nFormat)
 
void ClearFormats ()
 
bool SetAny (const css::uno::Any &rAny)
 
bool SetString (const OUString &rString, const css::datatransfer::DataFlavor &rFlavor)
 
bool SetBitmapEx (const BitmapEx &rBitmap, const css::datatransfer::DataFlavor &rFlavor)
 
bool SetGDIMetaFile (const GDIMetaFile &rMtf)
 
bool SetGraphic (const Graphic &rGraphic)
 
bool SetImageMap (const ImageMap &rIMap)
 
bool SetTransferableObjectDescriptor (const TransferableObjectDescriptor &rDesc)
 
bool SetINetBookmark (const INetBookmark &rBmk, const css::datatransfer::DataFlavor &rFlavor)
 
bool SetINetImage (const INetImage &rINtImg, const css::datatransfer::DataFlavor &rFlavor)
 
bool SetObject (void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor)
 
virtual void AddSupportedFormats ()=0
 
virtual bool GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc)=0
 
virtual bool WriteObject (tools::SvRef< SotStorageStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor)
 
virtual void DragFinished (sal_Int8 nDropAction)
 
virtual void ObjectReleased ()
 

Private Member Functions

virtual css::uno::Any SAL_CALL getTransferData (const css::datatransfer::DataFlavor &rFlavor) override
 
virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors () override
 
virtual sal_Bool SAL_CALL isDataFlavorSupported (const css::datatransfer::DataFlavor &rFlavor) override
 
virtual css::uno::Any SAL_CALL getTransferData2 (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 
virtual sal_Bool SAL_CALL isComplex () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL dragDropEnd (const css::datatransfer::dnd::DragSourceDropEvent &dsde) override
 
virtual void SAL_CALL dragEnter (const css::datatransfer::dnd::DragSourceDragEvent &dsde) override
 
virtual void SAL_CALL dragExit (const css::datatransfer::dnd::DragSourceEvent &dse) override
 
virtual void SAL_CALL dragOver (const css::datatransfer::dnd::DragSourceDragEvent &dsde) override
 
virtual void SAL_CALL dropActionChanged (const css::datatransfer::dnd::DragSourceDragEvent &dsde) override
 
virtual void SAL_CALL lostOwnership (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &xClipboard, const css::uno::Reference< css::datatransfer::XTransferable > &xTrans) override
 
VCL_DLLPRIVATE void ImplFlush ()
 

Private Attributes

css::uno::Any maAny
 
OUString maLastFormat
 
css::uno::Reference< css::datatransfer::clipboard::XClipboard > mxClipboard
 
css::uno::Reference< css::frame::XTerminateListener > mxTerminateListener
 
DataFlavorExVector maFormats
 
std::unique_ptr< TransferableObjectDescriptormxObjDesc
 

Friends

class TransferableHelper::TerminateListener
 

Detailed Description

Definition at line 128 of file transfer.hxx.

Member Function Documentation

void TransferableHelper::AddFormat ( SotClipboardFormatId  nFormat)
protected
void TransferableHelper::AddFormat ( const css::datatransfer::DataFlavor &  rFlavor)
protected
virtual void TransferableHelper::AddSupportedFormats ( )
protectedpure virtual
void TransferableHelper::ClearFormats ( )
protected

Definition at line 628 of file transfer.cxx.

References maAny.

void TransferableHelper::ClearSelection ( vcl::Window pWindow)
static

Definition at line 1018 of file transfer.cxx.

References DBG_ASSERT, and vcl::Window::GetPrimarySelection().

void TransferableHelper::CopyToClipboard ( vcl::Window pWindow) const
void TransferableHelper::CopyToSelection ( vcl::Window pWindow) const
void SAL_CALL TransferableHelper::disposing ( const css::lang::EventObject &  Source)
overrideprivatevirtual

Definition at line 462 of file transfer.cxx.

void SAL_CALL TransferableHelper::dragDropEnd ( const css::datatransfer::dnd::DragSourceDropEvent &  dsde)
overrideprivatevirtual

Definition at line 467 of file transfer.cxx.

References DragFinished(), and ObjectReleased().

void SAL_CALL TransferableHelper::dragEnter ( const css::datatransfer::dnd::DragSourceDragEvent &  dsde)
overrideprivatevirtual

Definition at line 482 of file transfer.cxx.

void SAL_CALL TransferableHelper::dragExit ( const css::datatransfer::dnd::DragSourceEvent &  dse)
overrideprivatevirtual

Definition at line 487 of file transfer.cxx.

void TransferableHelper::DragFinished ( sal_Int8  nDropAction)
protectedvirtual

Reimplemented in TransferDataContainer.

Definition at line 903 of file transfer.cxx.

Referenced by dragDropEnd().

void SAL_CALL TransferableHelper::dragOver ( const css::datatransfer::dnd::DragSourceDragEvent &  dsde)
overrideprivatevirtual

Definition at line 492 of file transfer.cxx.

void SAL_CALL TransferableHelper::dropActionChanged ( const css::datatransfer::dnd::DragSourceDragEvent &  dsde)
overrideprivatevirtual

Definition at line 497 of file transfer.cxx.

virtual bool TransferableHelper::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
protectedpure virtual

Implemented in TransferDataContainer.

Referenced by getTransferData2().

const css::uno::Reference< css::datatransfer::clipboard::XClipboard >& TransferableHelper::getOwnClipboard ( ) const
inlineprotected

Definition at line 175 of file transfer.hxx.

References mxClipboard.

sal_Int64 SAL_CALL TransferableHelper::getSomething ( const css::uno::Sequence< sal_Int8 > &  rId)
overridevirtual

Definition at line 502 of file transfer.cxx.

References getUnoTunnelId().

Any SAL_CALL TransferableHelper::getTransferData ( const css::datatransfer::DataFlavor &  rFlavor)
overrideprivatevirtual

Definition at line 274 of file transfer.cxx.

References Any, and getTransferData2().

Any SAL_CALL TransferableHelper::getTransferData2 ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overrideprivatevirtual
Sequence< DataFlavor > SAL_CALL TransferableHelper::getTransferDataFlavors ( )
overrideprivatevirtual

Definition at line 398 of file transfer.cxx.

References AddSupportedFormats(), and maFormats.

const Sequence< sal_Int8 > & TransferableHelper::getUnoTunnelId ( )
static

Definition at line 1032 of file transfer.cxx.

Referenced by getSomething().

bool TransferableHelper::HasFormat ( SotClipboardFormatId  nFormat)
protected

Definition at line 621 of file transfer.cxx.

Referenced by PrepareOLE().

void TransferableHelper::implCallOwnLostOwnership ( const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &  _rxClipboard,
const css::uno::Reference< css::datatransfer::XTransferable > &  _rxTrans 
)
inlineprotected

Definition at line 208 of file transfer.hxx.

References lostOwnership().

void TransferableHelper::ImplFlush ( )
private

Definition at line 518 of file transfer.cxx.

References mxClipboard.

sal_Bool SAL_CALL TransferableHelper::isComplex ( )
overrideprivatevirtual

Definition at line 391 of file transfer.cxx.

sal_Bool SAL_CALL TransferableHelper::isDataFlavorSupported ( const css::datatransfer::DataFlavor &  rFlavor)
overrideprivatevirtual

Definition at line 415 of file transfer.cxx.

References AddSupportedFormats(), TransferableDataHelper::IsEqual(), and maFormats.

void SAL_CALL TransferableHelper::lostOwnership ( const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &  xClipboard,
const css::uno::Reference< css::datatransfer::XTransferable > &  xTrans 
)
overrideprivatevirtual
void TransferableHelper::ObjectReleased ( )
protectedvirtual

Definition at line 908 of file transfer.cxx.

Referenced by dragDropEnd(), and lostOwnership().

void TransferableHelper::PrepareOLE ( const TransferableObjectDescriptor rObjDesc)

Definition at line 913 of file transfer.cxx.

References AddFormat(), HasFormat(), and mxObjDesc.

Referenced by SetTransferableObjectDescriptor().

void TransferableHelper::RemoveFormat ( SotClipboardFormatId  nFormat)
protected

Definition at line 598 of file transfer.cxx.

References SotExchange::GetFormatDataFlavor().

void TransferableHelper::RemoveFormat ( const css::datatransfer::DataFlavor &  rFlavor)
protected
bool TransferableHelper::SetAny ( const css::uno::Any &  rAny)
protected

Definition at line 635 of file transfer.cxx.

References maAny.

Referenced by TransferDataContainer::GetData().

bool TransferableHelper::SetBitmapEx ( const BitmapEx rBitmap,
const css::datatransfer::DataFlavor &  rFlavor 
)
protected
bool TransferableHelper::SetGDIMetaFile ( const GDIMetaFile rMtf)
protected
bool TransferableHelper::SetGraphic ( const Graphic rGraphic)
protected
bool TransferableHelper::SetImageMap ( const ImageMap rIMap)
protected
bool TransferableHelper::SetINetBookmark ( const INetBookmark rBmk,
const css::datatransfer::DataFlavor &  rFlavor 
)
protected
bool TransferableHelper::SetINetImage ( const INetImage rINtImg,
const css::datatransfer::DataFlavor &  rFlavor 
)
protected
bool TransferableHelper::SetObject ( void pUserObject,
sal_uInt32  nUserObjectId,
const css::datatransfer::DataFlavor &  rFlavor 
)
protected
bool TransferableHelper::SetString ( const OUString &  rString,
const css::datatransfer::DataFlavor &  rFlavor 
)
protected
bool TransferableHelper::SetTransferableObjectDescriptor ( const TransferableObjectDescriptor rDesc)
protected
void TransferableHelper::StartDrag ( vcl::Window pWindow,
sal_Int8  nDragSourceActions 
)
bool TransferableHelper::WriteObject ( tools::SvRef< SotStorageStream > &  rxOStm,
void pUserObject,
sal_uInt32  nUserObjectId,
const css::datatransfer::DataFlavor &  rFlavor 
)
protectedvirtual

Definition at line 896 of file transfer.cxx.

Referenced by SetObject().

Friends And Related Function Documentation

Definition at line 162 of file transfer.hxx.

Member Data Documentation

css::uno::Any TransferableHelper::maAny
private
DataFlavorExVector TransferableHelper::maFormats
private

Definition at line 170 of file transfer.hxx.

Referenced by getTransferData2(), getTransferDataFlavors(), and isDataFlavorSupported().

OUString TransferableHelper::maLastFormat
private

Definition at line 167 of file transfer.hxx.

Referenced by getTransferData2().

css::uno::Reference< css::datatransfer::clipboard::XClipboard > TransferableHelper::mxClipboard
mutableprivate

Definition at line 168 of file transfer.hxx.

Referenced by CopyToClipboard(), getOwnClipboard(), and ImplFlush().

std::unique_ptr<TransferableObjectDescriptor> TransferableHelper::mxObjDesc
private

Definition at line 171 of file transfer.hxx.

Referenced by PrepareOLE().

css::uno::Reference< css::frame::XTerminateListener > TransferableHelper::mxTerminateListener
private

Definition at line 169 of file transfer.hxx.

Referenced by CopyToClipboard(), CopyToSelection(), and lostOwnership().


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