LibreOffice Module vcl (master) 1
|
QtTransferable classes are used to read QMimeData via the XTransferable interface. More...
#include <QtTransferable.hxx>
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 |
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.
|
privatedelete |
QtTransferable::QtTransferable | ( | const QMimeData * | pMimeData | ) |
|
override |
|
override |
|
override |
|
inline |
Definition at line 43 of file qt5/QtTransferable.hxx.
References m_pMimeData.
|
private |
Definition at line 39 of file qt5/QtTransferable.hxx.
|
private |
Definition at line 37 of file qt5/QtTransferable.hxx.
|
private |
Definition at line 38 of file qt5/QtTransferable.hxx.
|
private |
Definition at line 36 of file qt5/QtTransferable.hxx.
Referenced by mimeData().