14#include <com/sun/star/datatransfer/XTransferable.hpp>
16#include <QtCore/QMimeData>
17#include <QtCore/QStringList>
18#include <QtGui/QClipboard>
32class QtTransferable :
public cppu::WeakImplHelper<css::datatransfer::XTransferable>
47 css::uno::Any SAL_CALL
getTransferData(
const css::datatransfer::DataFlavor& rFlavor)
override;
75 css::uno::Any SAL_CALL
getTransferData(
const css::datatransfer::DataFlavor& rFlavor)
override;
106 const css::uno::Reference<css::datatransfer::XTransferable>
m_aContents;
111#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
112 QVariant
retrieveData(
const QString& mimeType, QVariant::Type type)
const override;
114 QVariant
retrieveData(
const QString& mimeType, QMetaType type)
const override;
118 explicit QtMimeData(
const css::uno::Reference<css::datatransfer::XTransferable>& aContents);
The QClipboard's QMimeData is volatile.
const QClipboard::Mode m_aMode
css::uno::Any SAL_CALL getTransferData(const css::datatransfer::DataFlavor &rFlavor) override
QtClipboardTransferable(const QClipboard::Mode aMode, const QMimeData *pMimeData)
bool hasInFlightChanged() const
sal_Bool SAL_CALL isDataFlavorSupported(const css::datatransfer::DataFlavor &rFlavor) override
css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() override
A lazy loading QMimeData for XTransferable reads.
css::datatransfer::XTransferable * xTransferable() const
bool deepCopy(QMimeData **const) const
QStringList m_aMimeTypeList
QStringList formats() const override
const css::uno::Reference< css::datatransfer::XTransferable > m_aContents
QtMimeData(const css::uno::Reference< css::datatransfer::XTransferable > &aContents)
bool hasFormat(const QString &mimeType) const override
QVariant retrieveData(const QString &mimeType, QMetaType type) const override
QtTransferable classes are used to read QMimeData via the XTransferable interface.
css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() override
const QMimeData * mimeData() const
css::uno::Sequence< css::datatransfer::DataFlavor > m_aMimeTypeSeq
QtTransferable(const QMimeData *pMimeData)
const QMimeData * m_pMimeData
css::uno::Any SAL_CALL getTransferData(const css::datatransfer::DataFlavor &rFlavor) override
sal_Bool SAL_CALL isDataFlavorSupported(const css::datatransfer::DataFlavor &rFlavor) override
QtTransferable(const QtTransferable &)=delete
bool m_bProvideUTF16FromOtherEncoding
QtTransferable QtDnDTransferable
Convenience typedef for better code readability.