LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
QtTransferable Class Reference

QtTransferable classes are used to read QMimeData via the XTransferable interface. More...

#include <QtTransferable.hxx>

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

Public Member Functions

 QtTransferable (const QMimeData *pMimeData)
 
const QMimeData * mimeData () const
 
css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors () override
 
sal_Bool SAL_CALL isDataFlavorSupported (const css::datatransfer::DataFlavor &rFlavor) override
 
css::uno::Any SAL_CALL getTransferData (const css::datatransfer::DataFlavor &rFlavor) override
 

Private Member Functions

 QtTransferable (const QtTransferable &)=delete
 

Private Attributes

const QMimeData * m_pMimeData
 
osl::Mutex m_aMutex
 
bool m_bProvideUTF16FromOtherEncoding
 
css::uno::Sequence< css::datatransfer::DataFlavor > m_aMimeTypeSeq
 

Detailed Description

QtTransferable classes are used to read QMimeData via the XTransferable interface.

All the functionality is already implemented in the QtTransferable.

The specialisations map to the two users, which provide QMimeData: the Clipboard and the Drag'n'Drop functionality.

LO itself seem to just accept "text/plain;charset=utf-16", so it relies on the backend to convert to this charset, but still offers "text/plain" itself.

It's the "mirror" interface of the QtMimeData, which is defined below.

Definition at line 32 of file qt5/QtTransferable.hxx.

Constructor & Destructor Documentation

◆ QtTransferable() [1/2]

QtTransferable::QtTransferable ( const QtTransferable )
privatedelete

◆ QtTransferable() [2/2]

QtTransferable::QtTransferable ( const QMimeData *  pMimeData)

Member Function Documentation

◆ getTransferData()

css::uno::Any SAL_CALL QtTransferable::getTransferData ( const css::datatransfer::DataFlavor &  rFlavor)
override

◆ getTransferDataFlavors()

css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL QtTransferable::getTransferDataFlavors ( )
override

◆ isDataFlavorSupported()

sal_Bool SAL_CALL QtTransferable::isDataFlavorSupported ( const css::datatransfer::DataFlavor &  rFlavor)
override

◆ mimeData()

const QMimeData * QtTransferable::mimeData ( ) const
inline

Definition at line 43 of file qt5/QtTransferable.hxx.

References m_pMimeData.

Member Data Documentation

◆ m_aMimeTypeSeq

css::uno::Sequence<css::datatransfer::DataFlavor> QtTransferable::m_aMimeTypeSeq
private

Definition at line 39 of file qt5/QtTransferable.hxx.

◆ m_aMutex

osl::Mutex QtTransferable::m_aMutex
private

Definition at line 37 of file qt5/QtTransferable.hxx.

◆ m_bProvideUTF16FromOtherEncoding

bool QtTransferable::m_bProvideUTF16FromOtherEncoding
private

Definition at line 38 of file qt5/QtTransferable.hxx.

◆ m_pMimeData

const QMimeData* QtTransferable::m_pMimeData
private

Definition at line 36 of file qt5/QtTransferable.hxx.

Referenced by mimeData().


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