LibreOffice Module dtrans (master)  1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
CDOTransferable Class Reference

#include <DOTransferable.hxx>

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

Public Types

typedef css::uno::Sequence< sal_Int8ByteSequence_t
 

Public Member Functions

virtual css::uno::Any SAL_CALL getTransferData (const css::datatransfer::DataFlavor &aFlavor) override
 
virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors () override
 
virtual sal_Bool SAL_CALL isDataFlavorSupported (const css::datatransfer::DataFlavor &aFlavor) override
 
virtual css::uno::Any SAL_CALL getData (const css::uno::Sequence< sal_Int8 > &aProcessId) override
 

Static Public Member Functions

static css::uno::Reference< css::datatransfer::XTransferable > create (const css::uno::Reference< css::uno::XComponentContext > &rxContext, IDataObjectPtr pIDataObject)
 

Private Member Functions

 CDOTransferable (const css::uno::Reference< css::uno::XComponentContext > &rxContext, IDataObjectPtr rDataObject)
 
void initFlavorList ()
 
void addSupportedFlavor (const css::datatransfer::DataFlavor &aFlavor)
 
css::datatransfer::DataFlavor formatEtcToDataFlavor (const FORMATETC &aFormatEtc)
 
ByteSequence_t getClipboardData (CFormatEtc &aFormatEtc)
 
OUString synthesizeUnicodeText ()
 
LCID getLocaleFromClipboard ()
 
bool compareDataFlavors (const css::datatransfer::DataFlavor &lhs, const css::datatransfer::DataFlavor &rhs)
 
 CDOTransferable (const CDOTransferable &)
 
CDOTransferableoperator= (const CDOTransferable &)
 

Private Attributes

IDataObjectPtr m_rDataObject
 
css::uno::Sequence< css::datatransfer::DataFlavor > m_FlavorList
 
const css::uno::Reference< css::uno::XComponentContext > m_xContext
 
CDataFormatTranslator m_DataFormatTranslator
 
css::uno::Reference< css::datatransfer::XMimeContentTypeFactory > m_rXMimeCntFactory
 
::osl::Mutex m_aMutex
 
bool m_bUnicodeRegistered
 
CLIPFORMAT m_TxtFormatOnClipboard
 

Detailed Description

Definition at line 36 of file DOTransferable.hxx.

Member Typedef Documentation

typedef css::uno::Sequence< sal_Int8 > CDOTransferable::ByteSequence_t

Definition at line 41 of file DOTransferable.hxx.

Constructor & Destructor Documentation

CDOTransferable::CDOTransferable ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
IDataObjectPtr  rDataObject 
)
explicitprivate
CDOTransferable::CDOTransferable ( const CDOTransferable )
private

Member Function Documentation

void CDOTransferable::addSupportedFlavor ( const css::datatransfer::DataFlavor &  aFlavor)
inlineprivate

Definition at line 320 of file DOTransferable.cxx.

References m_FlavorList.

Referenced by initFlavorList().

bool CDOTransferable::compareDataFlavors ( const css::datatransfer::DataFlavor &  lhs,
const css::datatransfer::DataFlavor &  rhs 
)
private

Definition at line 492 of file DOTransferable.cxx.

References m_rXMimeCntFactory, and m_xContext.

Referenced by isDataFlavorSupported().

Reference< XTransferable > CDOTransferable::create ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
IDataObjectPtr  pIDataObject 
)
static

Definition at line 170 of file DOTransferable.cxx.

References initFlavorList().

Referenced by DropTarget::DragEnter(), and CWinClipbImpl::getContents().

DataFlavor CDOTransferable::formatEtcToDataFlavor ( const FORMATETC &  aFormatEtc)
private
CDOTransferable::ByteSequence_t CDOTransferable::getClipboardData ( CFormatEtc aFormatEtc)
private
css::uno::Any SAL_CALL CDOTransferable::getData ( const css::uno::Sequence< sal_Int8 > &  aProcessId)
overridevirtual

Definition at line 521 of file DOTransferable.cxx.

References Any, and m_rDataObject.

LCID CDOTransferable::getLocaleFromClipboard ( )
private
Any SAL_CALL CDOTransferable::getTransferData ( const css::datatransfer::DataFlavor &  aFlavor)
overridevirtual
Sequence< DataFlavor > SAL_CALL CDOTransferable::getTransferDataFlavors ( )
overridevirtual

Definition at line 243 of file DOTransferable.cxx.

References m_FlavorList.

void CDOTransferable::initFlavorList ( )
private
sal_Bool SAL_CALL CDOTransferable::isDataFlavorSupported ( const css::datatransfer::DataFlavor &  aFlavor)
overridevirtual

Definition at line 252 of file DOTransferable.cxx.

References compareDataFlavors(), i, and m_FlavorList.

CDOTransferable& CDOTransferable::operator= ( const CDOTransferable )
private
OUString CDOTransferable::synthesizeUnicodeText ( )
private

Member Data Documentation

::osl::Mutex CDOTransferable::m_aMutex
private

Definition at line 84 of file DOTransferable.hxx.

Referenced by getTransferData().

bool CDOTransferable::m_bUnicodeRegistered
private

Definition at line 85 of file DOTransferable.hxx.

Referenced by getTransferData(), and initFlavorList().

CDataFormatTranslator CDOTransferable::m_DataFormatTranslator
private

Definition at line 82 of file DOTransferable.hxx.

Referenced by formatEtcToDataFlavor(), and getTransferData().

css::uno::Sequence< css::datatransfer::DataFlavor > CDOTransferable::m_FlavorList
private
IDataObjectPtr CDOTransferable::m_rDataObject
private

Definition at line 79 of file DOTransferable.hxx.

Referenced by getClipboardData(), getData(), and initFlavorList().

css::uno::Reference< css::datatransfer::XMimeContentTypeFactory > CDOTransferable::m_rXMimeCntFactory
private

Definition at line 83 of file DOTransferable.hxx.

Referenced by compareDataFlavors().

CLIPFORMAT CDOTransferable::m_TxtFormatOnClipboard
private

Definition at line 86 of file DOTransferable.hxx.

Referenced by initFlavorList(), and synthesizeUnicodeText().

const css::uno::Reference< css::uno::XComponentContext > CDOTransferable::m_xContext
private

Definition at line 81 of file DOTransferable.hxx.

Referenced by compareDataFlavors().


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