LibreOffice Module vcl (master) 1
|
A lazy loading QMimeData for XTransferable reads. More...
#include <QtTransferable.hxx>
Public Member Functions | |
QtMimeData (const css::uno::Reference< css::datatransfer::XTransferable > &aContents) | |
bool | hasFormat (const QString &mimeType) const override |
QStringList | formats () const override |
bool | deepCopy (QMimeData **const) const |
css::datatransfer::XTransferable * | xTransferable () const |
Private Member Functions | |
QVariant | retrieveData (const QString &mimeType, QMetaType type) const override |
Private Attributes | |
const css::uno::Reference< css::datatransfer::XTransferable > | m_aContents |
bool | m_bHaveNoCharset |
bool | m_bHaveUTF8 |
QStringList | m_aMimeTypeList |
Friends | |
class | QtClipboardTransferable |
A lazy loading QMimeData for XTransferable reads.
This is an interface class to make a XTransferable read accessible as a QMimeData. The mime data is just stored inside the XTransferable, never in the QMimeData itself! It's objects are just used for QClipboard to read the XTransferable data.
Like XTransferable itself, this class should be considered an immutable container for mime data. There is no need to ever set any of its data.
LO will offer at least UTF-16, if there is a viable text representation. If LO misses to offer a UTF-8 or a locale encoded string, these objects will offer them themselves and convert from UTF-16 on demand.
It's the "mirror" interface of the QtTransferable.
Definition at line 102 of file qt5/QtTransferable.hxx.
|
explicit |
bool QtMimeData::deepCopy | ( | QMimeData ** const | ) | const |
|
override |
|
override |
|
overrideprivate |
|
inline |
Definition at line 125 of file qt5/QtTransferable.hxx.
References m_aContents.
|
friend |
Definition at line 104 of file qt5/QtTransferable.hxx.
|
private |
Definition at line 106 of file qt5/QtTransferable.hxx.
Referenced by xTransferable().
|
mutableprivate |
Definition at line 109 of file qt5/QtTransferable.hxx.
|
mutableprivate |
Definition at line 107 of file qt5/QtTransferable.hxx.
|
mutableprivate |
Definition at line 108 of file qt5/QtTransferable.hxx.