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

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

#include <Qt5Transferable.hxx>

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

Public Member Functions

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

 Qt5Transferable (const Qt5Transferable &)=delete
 

Private Attributes

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

Detailed Description

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

All the functionality is already implemented in the Qt5Transferable.

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 Qt5MimeData, which is defined below.

Definition at line 32 of file Qt5Transferable.hxx.

Constructor & Destructor Documentation

Qt5Transferable::Qt5Transferable ( const Qt5Transferable )
privatedelete
Qt5Transferable::Qt5Transferable ( const QMimeData *  pMimeData)

Member Function Documentation

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

Definition at line 43 of file Qt5Transferable.hxx.

References m_pMimeData.

Member Data Documentation

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

Definition at line 39 of file Qt5Transferable.hxx.

osl::Mutex Qt5Transferable::m_aMutex
private

Definition at line 37 of file Qt5Transferable.hxx.

bool Qt5Transferable::m_bConvertFromLocale
private

Definition at line 38 of file Qt5Transferable.hxx.

const QMimeData* Qt5Transferable::m_pMimeData
private

Definition at line 36 of file Qt5Transferable.hxx.

Referenced by mimeData().


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