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:
Collaboration diagram for QtTransferable:

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 )

◆ QtTransferable() [2/2]

QtTransferable::QtTransferable ( const QMimeData *  pMimeData)

Member Function Documentation

◆ getTransferData()

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

◆ getTransferDataFlavors()

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

◆ isDataFlavorSupported()

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

◆ mimeData()

const QMimeData * QtTransferable::mimeData ( ) const

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

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

◆ m_aMutex

osl::Mutex QtTransferable::m_aMutex

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

◆ m_bProvideUTF16FromOtherEncoding

bool QtTransferable::m_bProvideUTF16FromOtherEncoding

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

◆ m_pMimeData

const QMimeData* QtTransferable::m_pMimeData

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

Referenced by mimeData().

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