Lines Matching defs:pFormatEtc

43 VBoxDnDDataObject::VBoxDnDDataObject(FORMATETC *pFormatEtc,
63 if ( pFormatEtc
69 i, pFormatEtc[i].cfFormat, pFormatEtc[i].tymed, pFormatEtc[i].dwAspect));
70 mpFormatEtc[i] = pFormatEtc[i];
130 int VBoxDnDDataObject::CreateDataObject(FORMATETC *pFormatEtc, STGMEDIUM *pStgMeds,
133 AssertPtrReturn(pFormatEtc, VERR_INVALID_POINTER);
140 *ppDataObject = new VBoxDnDDataObject(pFormatEtc, pStgMeds, cFormats);
194 * @param pFormatEtc
197 STDMETHODIMP VBoxDnDDataObject::GetData(FORMATETC *pFormatEtc, STGMEDIUM *pMedium)
199 AssertPtrReturn(pFormatEtc, DV_E_FORMATETC);
203 if (!LookupFormatEtc(pFormatEtc, &lIndex)) /* Format supported? */
229 pThisFormat->cfFormat, VBoxDnDDataObject::ClipboardFormatToString(pFormatEtc->cfFormat),
257 if ( (pFormatEtc->tymed & TYMED_ISTREAM)
258 && (pFormatEtc->dwAspect == DVASPECT_CONTENT)
259 && (pFormatEtc->cfFormat == CF_FILECONTENTS))
263 else if ( (pFormatEtc->tymed & TYMED_HGLOBAL)
264 && (pFormatEtc->dwAspect == DVASPECT_CONTENT)
265 && (pFormatEtc->cfFormat == CF_FILEDESCRIPTOR))
269 else if ( (pFormatEtc->tymed & TYMED_HGLOBAL)
270 && (pFormatEtc->cfFormat == CF_PREFERREDDROPEFFECT))
283 if ( (pFormatEtc->tymed & TYMED_HGLOBAL)
284 && (pFormatEtc->dwAspect == DVASPECT_CONTENT)
285 && (pFormatEtc->cfFormat == CF_TEXT))
298 else if ( (pFormatEtc->tymed & TYMED_HGLOBAL)
299 && (pFormatEtc->dwAspect == DVASPECT_CONTENT)
300 && (pFormatEtc->cfFormat == CF_HDROP))
404 * @param pFormatEtc
407 STDMETHODIMP VBoxDnDDataObject::GetDataHere(FORMATETC *pFormatEtc, STGMEDIUM *pMedium)
418 * @param pFormatEtc
420 STDMETHODIMP VBoxDnDDataObject::QueryGetData(FORMATETC *pFormatEtc)
423 return (LookupFormatEtc(pFormatEtc, NULL /* puIndex */)) ? S_OK : DV_E_FORMATETC;
435 STDMETHODIMP VBoxDnDDataObject::SetData(FORMATETC *pFormatEtc, STGMEDIUM *pMedium, BOOL fRelease)
457 STDMETHODIMP VBoxDnDDataObject::DAdvise(FORMATETC *pFormatEtc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection)
566 bool VBoxDnDDataObject::LookupFormatEtc(FORMATETC *pFormatEtc, ULONG *puIndex)
568 AssertReturn(pFormatEtc, false);
573 if( (pFormatEtc->tymed & mpFormatEtc[i].tymed)
574 && pFormatEtc->cfFormat == mpFormatEtc[i].cfFormat
575 && pFormatEtc->dwAspect == mpFormatEtc[i].dwAspect)
578 pFormatEtc->tymed, pFormatEtc->cfFormat, VBoxDnDDataObject::ClipboardFormatToString(mpFormatEtc[i].cfFormat),
579 pFormatEtc->dwAspect, i));
588 pFormatEtc->tymed, pFormatEtc->cfFormat, VBoxDnDDataObject::ClipboardFormatToString(pFormatEtc->cfFormat),
589 pFormatEtc->dwAspect));
613 void VBoxDnDDataObject::RegisterFormat(FORMATETC *pFormatEtc, CLIPFORMAT clipFormat,
617 AssertPtr(pFormatEtc);
619 pFormatEtc->cfFormat = clipFormat;
620 pFormatEtc->tymed = tyMed;
621 pFormatEtc->lindex = lIndex;
622 pFormatEtc->dwAspect = dwAspect;
623 pFormatEtc->ptd = pTargetDevice;
626 pFormatEtc->cfFormat, VBoxDnDDataObject::ClipboardFormatToString(pFormatEtc->cfFormat)));