LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
svx::OComponentTransferable Class Referencefinal

#include <dbaobjectex.hxx>

Inheritance diagram for svx::OComponentTransferable:
[legend]
Collaboration diagram for svx::OComponentTransferable:
[legend]

Public Member Functions

 OComponentTransferable ()
 
void Update (const OUString &rDatasourceOrLocation, const css::uno::Reference< css::ucb::XContent > &xContent)
 
- Public Member Functions inherited from TransferDataContainer
 TransferDataContainer ()
 
virtual ~TransferDataContainer () override
 
void CopyINetBookmark (const INetBookmark &rBkmk)
 
void CopyString (const OUString &rStr)
 
void CopyString (SotClipboardFormatId nFmt, const OUString &rStr)
 
void CopyByteString (SotClipboardFormatId nFormatId, const OString &rStr)
 
void CopyAnyData (SotClipboardFormatId nFormatId, const char *pData, sal_uLong nLen)
 
bool HasAnyData () const
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions, const Link< sal_Int8, void > &rCallback)
 
virtual void DragFinished (sal_Int8 nDropAction) override
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions)
 
- Public Member Functions inherited from TransferableHelper
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
 
void PrepareOLE (const TransferableObjectDescriptor &rObjDesc)
 
void CopyToClipboard (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 
void CopyToClipboard (vcl::Window *pWindow) const
 
void CopyToPrimarySelection () const
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions)
 

Static Public Member Functions

static bool canExtractComponentDescriptor (const DataFlavorExVector &_rFlavors, bool _bForm)
 checks whether or not a component descriptor can be extracted from the data flavor vector given More...
 
static ODataAccessDescriptor extractComponentDescriptor (const TransferableDataHelper &_rData)
 extracts a component descriptor from the transferable given More...
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearPrimarySelection ()
 

Private Member Functions

virtual void AddSupportedFormats () override
 
virtual bool GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 

Static Private Member Functions

static SotClipboardFormatId getDescriptorFormatId (bool _bExtractForm)
 

Private Attributes

ODataAccessDescriptor m_aDescriptor
 

Additional Inherited Members

- Protected Member Functions inherited from TransferableHelper
 ~TransferableHelper ()
 
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)
 
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< SotTempStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor)
 
virtual void DragFinished (sal_Int8 nDropAction)
 
virtual void ObjectReleased ()
 
void CopyToSelection (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 

Detailed Description

Definition at line 32 of file dbaobjectex.hxx.

Constructor & Destructor Documentation

◆ OComponentTransferable()

svx::OComponentTransferable::OComponentTransferable ( )

Definition at line 42 of file dbaobjectex.cxx.

Member Function Documentation

◆ AddSupportedFormats()

void svx::OComponentTransferable::AddSupportedFormats ( )
overrideprivatevirtual

Reimplemented from TransferDataContainer.

Definition at line 75 of file dbaobjectex.cxx.

References TransferableHelper::AddFormat(), svx::Component, Exception, getDescriptorFormatId(), and m_aDescriptor.

Referenced by Update().

◆ canExtractComponentDescriptor()

bool svx::OComponentTransferable::canExtractComponentDescriptor ( const DataFlavorExVector _rFlavors,
bool  _bForm 
)
static

checks whether or not a component descriptor can be extracted from the data flavor vector given

Parameters
_rFlavorsavailable flavors

Definition at line 101 of file dbaobjectex.cxx.

References getDescriptorFormatId().

◆ extractComponentDescriptor()

ODataAccessDescriptor svx::OComponentTransferable::extractComponentDescriptor ( const TransferableDataHelper _rData)
static

extracts a component descriptor from the transferable given

Definition at line 109 of file dbaobjectex.cxx.

References Any, TransferableDataHelper::GetAny(), getDescriptorFormatId(), SotExchange::GetFormatDataFlavor(), and TransferableDataHelper::HasFormat().

◆ GetData()

bool svx::OComponentTransferable::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overrideprivatevirtual

◆ getDescriptorFormatId()

SotClipboardFormatId svx::OComponentTransferable::getDescriptorFormatId ( bool  _bExtractForm)
staticprivate

◆ Update()

void svx::OComponentTransferable::Update ( const OUString &  rDatasourceOrLocation,
const css::uno::Reference< css::ucb::XContent > &  xContent 
)

Member Data Documentation

◆ m_aDescriptor

ODataAccessDescriptor svx::OComponentTransferable::m_aDescriptor
private

Definition at line 60 of file dbaobjectex.hxx.

Referenced by AddSupportedFormats(), GetData(), and Update().


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