#include <qdnd_p.h>
|
STDMETHOD() | DAdvise (FORMATETC FAR *pFormatetc, DWORD advf, LPADVISESINK pAdvSink, DWORD FAR *pdwConnection) |
|
STDMETHOD() | DUnadvise (DWORD dwConnection) |
|
STDMETHOD() | EnumDAdvise (LPENUMSTATDATA FAR *ppenumAdvise) |
|
STDMETHOD() | EnumFormatEtc (DWORD dwDirection, LPENUMFORMATETC FAR *ppenumFormatEtc) |
|
STDMETHOD() | GetCanonicalFormatEtc (LPFORMATETC pformatetc, LPFORMATETC pformatetcOut) |
|
STDMETHOD() | GetData (LPFORMATETC pformatetcIn, LPSTGMEDIUM pmedium) |
|
STDMETHOD() | GetDataHere (LPFORMATETC pformatetc, LPSTGMEDIUM pmedium) |
|
const QMimeData * | mimeData () const |
|
| QOleDataObject (QMimeData *mimeData) |
|
STDMETHOD() | QueryGetData (LPFORMATETC pformatetc) |
|
STDMETHOD() | QueryInterface (REFIID riid, void FAR *FAR *ppvObj) |
|
void | releaseQt () |
|
DWORD | reportedPerformedEffect () const |
|
STDMETHOD() | SetData (LPFORMATETC pformatetc, STGMEDIUM FAR *pmedium, BOOL fRelease) |
|
| STDMETHOD_ (ULONG, AddRef)(void) |
|
| STDMETHOD_ (ULONG, Release)(void) |
|
virtual | ~QOleDataObject () |
|
Definition at line 104 of file qdnd_p.h.
◆ QOleDataObject()
QOleDataObject::QOleDataObject |
( |
QMimeData * |
mimeData | ) |
|
|
explicit |
Definition at line 77 of file qdnd_win.cpp.
QPointer< QMimeData > data
#define CFSTR_PERFORMEDDROPEFFECT
int CF_PERFORMEDDROPEFFECT
const QMimeData * mimeData() const
◆ ~QOleDataObject()
QOleDataObject::~QOleDataObject |
( |
| ) |
|
|
virtual |
◆ DAdvise()
STDMETHODIMP QOleDataObject::DAdvise |
( |
FORMATETC FAR * |
pFormatetc, |
|
|
DWORD |
advf, |
|
|
LPADVISESINK |
pAdvSink, |
|
|
DWORD FAR * |
pdwConnection |
|
) |
| |
Definition at line 254 of file qdnd_win.cpp.
257 return ResultFromScode(OLE_E_ADVISENOTSUPPORTED);
◆ DUnadvise()
STDMETHODIMP QOleDataObject::DUnadvise |
( |
DWORD |
dwConnection | ) |
|
Definition at line 262 of file qdnd_win.cpp.
264 return ResultFromScode(OLE_E_ADVISENOTSUPPORTED);
◆ EnumDAdvise()
STDMETHODIMP QOleDataObject::EnumDAdvise |
( |
LPENUMSTATDATA FAR * |
ppenumAdvise | ) |
|
Definition at line 268 of file qdnd_win.cpp.
270 return ResultFromScode(OLE_E_ADVISENOTSUPPORTED);
◆ EnumFormatEtc()
STDMETHODIMP QOleDataObject::EnumFormatEtc |
( |
DWORD |
dwDirection, |
|
|
LPENUMFORMATETC FAR * |
ppenumFormatEtc |
|
) |
| |
Definition at line 218 of file qdnd_win.cpp.
221 qDebug(
"QOleDataObject::EnumFormatEtc(DWORD dwDirection, LPENUMFORMATETC FAR* ppenumFormatEtc)");
225 return ResultFromScode(DATA_E_FORMATETC);
230 if (dwDirection == DATADIR_GET) {
235 formatetc.dwAspect = DVASPECT_CONTENT;
236 formatetc.lindex = -1;
237 formatetc.ptd = NULL;
238 formatetc.tymed = TYMED_HGLOBAL;
239 fmtetcs.
append(formatetc);
243 *ppenumFormatEtc = enumFmtEtc;
244 if (enumFmtEtc->
isNull()) {
246 *ppenumFormatEtc = NULL;
250 return ResultFromScode(sc);
QPointer< QMimeData > data
struct tagFORMATETC FORMATETC
The QVector class is a template class that provides a dynamic array.
Q_CORE_EXPORT void qDebug(const char *,...)
int CF_PERFORMEDDROPEFFECT
void append(const T &t)
Inserts value at the end of the vector.
static QVector< FORMATETC > allFormatsForMime(const QMimeData *mimeData)
◆ GetCanonicalFormatEtc()
STDMETHODIMP QOleDataObject::GetCanonicalFormatEtc |
( |
LPFORMATETC |
pformatetc, |
|
|
LPFORMATETC |
pformatetcOut |
|
) |
| |
Definition at line 196 of file qdnd_win.cpp.
198 pformatetcOut->ptd = NULL;
199 return ResultFromScode(E_NOTIMPL);
◆ GetData()
STDMETHODIMP QOleDataObject::GetData |
( |
LPFORMATETC |
pformatetcIn, |
|
|
LPSTGMEDIUM |
pmedium |
|
) |
| |
Definition at line 152 of file qdnd_win.cpp.
155 qDebug(
"QOleDataObject::GetData(LPFORMATETC pformatetc, LPSTGMEDIUM pmedium)");
157 wchar_t buf[256] = {0};
158 GetClipboardFormatName(pformatetc->cfFormat, buf, 255);
164 return ResultFromScode(DATA_E_FORMATETC);
169 return ResultFromScode(S_OK);
171 return ResultFromScode(DATA_E_FORMATETC);
static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
The QWindowsMime class maps open-standard MIME to Window Clipboard formats.
QPointer< QMimeData > data
Q_CORE_EXPORT void qDebug(const char *,...)
virtual bool convertFromMime(const FORMATETC &formatetc, const QMimeData *mimeData, STGMEDIUM *pmedium) const =0
Convert the mimeData to the format specified in formatetc.
static QWindowsMime * converterFromMime(const FORMATETC &formatetc, const QMimeData *mimeData)
◆ GetDataHere()
STDMETHODIMP QOleDataObject::GetDataHere |
( |
LPFORMATETC |
pformatetc, |
|
|
LPSTGMEDIUM |
pmedium |
|
) |
| |
Definition at line 175 of file qdnd_win.cpp.
177 return ResultFromScode(DATA_E_FORMATETC);
◆ mimeData()
const QMimeData * QOleDataObject::mimeData |
( |
| ) |
const |
◆ QueryGetData()
STDMETHODIMP QOleDataObject::QueryGetData |
( |
LPFORMATETC |
pformatetc | ) |
|
Definition at line 181 of file qdnd_win.cpp.
184 qDebug(
"QOleDataObject::QueryGetData(LPFORMATETC pformatetc)");
188 return ResultFromScode(DATA_E_FORMATETC);
191 return ResultFromScode(S_OK);
192 return ResultFromScode(S_FALSE);
QPointer< QMimeData > data
Q_CORE_EXPORT void qDebug(const char *,...)
static QWindowsMime * converterFromMime(const FORMATETC &formatetc, const QMimeData *mimeData)
◆ QueryInterface()
STDMETHODIMP QOleDataObject::QueryInterface |
( |
REFIID |
riid, |
|
|
void FAR *FAR * |
ppvObj |
|
) |
| |
Definition at line 109 of file qdnd_win.cpp.
111 if (iid == IID_IUnknown || iid == IID_IDataObject) {
117 return ResultFromScode(E_NOINTERFACE);
◆ releaseQt()
void QOleDataObject::releaseQt |
( |
| ) |
|
◆ reportedPerformedEffect()
DWORD QOleDataObject::reportedPerformedEffect |
( |
| ) |
const |
◆ SetData()
STDMETHODIMP QOleDataObject::SetData |
( |
LPFORMATETC |
pformatetc, |
|
|
STGMEDIUM FAR * |
pmedium, |
|
|
BOOL |
fRelease |
|
) |
| |
Definition at line 203 of file qdnd_win.cpp.
206 DWORD * val = (DWORD*)GlobalLock(pMedium->hGlobal);
208 GlobalUnlock(pMedium->hGlobal);
210 ReleaseStgMedium(pMedium);
211 return ResultFromScode(S_OK);
213 return ResultFromScode(E_NOTIMPL);
int CF_PERFORMEDDROPEFFECT
◆ STDMETHOD_() [1/2]
QOleDataObject::STDMETHOD_ |
( |
ULONG |
, |
|
|
AddRef |
|
|
) |
| |
◆ STDMETHOD_() [2/2]
QOleDataObject::STDMETHOD_ |
( |
ULONG |
, |
|
|
Release |
|
|
) |
| |
◆ CF_PERFORMEDDROPEFFECT
int QOleDataObject::CF_PERFORMEDDROPEFFECT |
|
private |
◆ data
◆ m_refs
ULONG QOleDataObject::m_refs |
|
private |
◆ performedEffect
DWORD QOleDataObject::performedEffect |
|
private |
The documentation for this class was generated from the following files: