21#define NONAMELESSUNION
68 IEnumFORMATETC_AddRef(iface);
69 *ppvObj = &
This->IEnumFORMATETC_iface;
99 FORMATETC *rgelt,
ULONG *pceltFetched)
103 TRACE(
"(%p)->(%d %p %p)\n",
This, celt, rgelt, pceltFetched);
114 *pceltFetched =
count;
148 hr = IEnumFORMATETC_Skip(*ppenum,
This->cur);
172 ret->fmtetc_cnt = fmtetc_cnt;
174 memcpy(
ret->fmtetc, fmtetc, fmtetc_cnt*
sizeof(FORMATETC));
175 *formatetc = &
ret->IEnumFORMATETC_iface;
185 IDataObject_AddRef(iface);
186 *ppvObj = &
This->IDataObject_iface;
220 TRACE(
"(%p)->(fmt=0x%08x tym=0x%08x)\n",
This, pformatetc->cfFormat, pformatetc->tymed);
222 if(pformatetc->lindex != -1)
225 if(!(pformatetc->tymed & TYMED_HGLOBAL))
229 pmedium->u.hGlobal =
This->unicode;
230 else if(
This->rtf && pformatetc->cfFormat ==
cfRTF)
231 pmedium->u.hGlobal =
This->rtf;
235 pmedium->tymed = TYMED_HGLOBAL;
236 pmedium->pUnkForRelease = (
LPUNKNOWN)iface;
237 IUnknown_AddRef(pmedium->pUnkForRelease);
253 TRACE(
"(%p)->(fmt=0x%08x tym=0x%08x)\n",
This, pformatetc->cfFormat, pformatetc->tymed);
255 if(pformatetc->lindex != -1)
258 for(
i=0;
i<
This->fmtetc_cnt;
i++) {
259 if(
This->fmtetc[
i].cfFormat == pformatetc->cfFormat) {
261 if(
This->fmtetc[
i].tymed == pformatetc->tymed)
269 FORMATETC *pformatetcOut)
272 TRACE(
"(%p)->(%p,%p)\n",
This, pformatetcIn, pformatetcOut);
275 *pformatetcOut = *pformatetcIn;
276 pformatetcOut->ptd =
NULL;
282 STGMEDIUM *pmedium,
BOOL fRelease)
293 TRACE(
"(%p)->(%d)\n",
This, dwDirection);
295 if(dwDirection != DATADIR_GET) {
296 FIXME(
"Unsupported direction: %d\n", dwDirection);
298 *ppenumFormatEtc =
NULL;
378 int nNewSize = (((nMaxSize+
cb+1)|0x1FFFF)+1) & 0xFFFE0000;
384 pDest[
pData->nLength] =
'\0';
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static snapshot * impl_from_IDataObject(IDataObject *iface)
static enum_fmtetc * impl_from_IEnumFORMATETC(IEnumFORMATETC *iface)
int ME_GetCursorOfs(const ME_Cursor *cursor)
struct EnumFormatImpl EnumFormatImpl
static ULONG WINAPI EnumFormatImpl_AddRef(IEnumFORMATETC *iface)
static HRESULT WINAPI DataObjectImpl_GetDataHere(IDataObject *iface, FORMATETC *pformatetc, STGMEDIUM *pmedium)
static HGLOBAL get_unicode_text(ME_TextEditor *editor, const ME_Cursor *start, int nChars)
static ULONG WINAPI DataObjectImpl_AddRef(IDataObject *iface)
static HRESULT WINAPI EnumFormatImpl_Skip(IEnumFORMATETC *iface, ULONG celt)
static HGLOBAL get_rtf_text(ME_TextEditor *editor, const ME_Cursor *start, int nChars)
static HRESULT EnumFormatImpl_Create(const FORMATETC *fmtetc, UINT size, LPENUMFORMATETC *lplpformatetc)
static ULONG WINAPI EnumFormatImpl_Release(IEnumFORMATETC *iface)
static const IDataObjectVtbl VT_DataObjectImpl
static HRESULT WINAPI DataObjectImpl_QueryGetData(IDataObject *iface, FORMATETC *pformatetc)
static HRESULT WINAPI EnumFormatImpl_Next(IEnumFORMATETC *iface, ULONG celt, FORMATETC *rgelt, ULONG *pceltFetched)
static DWORD CALLBACK ME_AppendToHGLOBAL(DWORD_PTR dwCookie, LPBYTE lpBuff, LONG cb, LONG *pcb)
static HRESULT WINAPI DataObjectImpl_DAdvise(IDataObject *iface, FORMATETC *pformatetc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection)
static HRESULT WINAPI DataObjectImpl_QueryInterface(IDataObject *iface, REFIID riid, LPVOID *ppvObj)
static HRESULT WINAPI DataObjectImpl_DUnadvise(IDataObject *iface, DWORD dwConnection)
static HRESULT WINAPI DataObjectImpl_EnumFormatEtc(IDataObject *iface, DWORD dwDirection, IEnumFORMATETC **ppenumFormatEtc)
static ULONG WINAPI DataObjectImpl_Release(IDataObject *iface)
static HRESULT WINAPI DataObjectImpl_GetData(IDataObject *iface, FORMATETC *pformatetc, STGMEDIUM *pmedium)
static HRESULT WINAPI DataObjectImpl_GetCanonicalFormatEtc(IDataObject *iface, FORMATETC *pformatetcIn, FORMATETC *pformatetcOut)
struct tagME_GlobalDestStruct ME_GlobalDestStruct
static HRESULT WINAPI EnumFormatImpl_Clone(IEnumFORMATETC *iface, IEnumFORMATETC **ppenum)
static HRESULT WINAPI DataObjectImpl_EnumDAdvise(IDataObject *iface, IEnumSTATDATA **ppenumAdvise)
static HRESULT WINAPI EnumFormatImpl_QueryInterface(IEnumFORMATETC *iface, REFIID riid, LPVOID *ppvObj)
HRESULT ME_GetDataObject(ME_TextEditor *editor, const ME_Cursor *start, int nChars, IDataObject **dataobj)
static HRESULT WINAPI DataObjectImpl_SetData(IDataObject *iface, FORMATETC *pformatetc, STGMEDIUM *pmedium, BOOL fRelease)
static HRESULT WINAPI EnumFormatImpl_Reset(IEnumFORMATETC *iface)
struct DataObjectImpl DataObjectImpl
static const IEnumFORMATETCVtbl VT_EnumFormatImpl
int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int buflen, const ME_Cursor *start, int srcChars, BOOL bCRLF, BOOL bEOP)
#define InitFormatEtc(fe, cf, med)
LRESULT ME_StreamOutRange(ME_TextEditor *editor, DWORD dwFormat, const ME_Cursor *start, int nChars, EDITSTREAM *stream) DECLSPEC_HIDDEN
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
HGLOBAL NTAPI GlobalReAlloc(HGLOBAL hMem, SIZE_T dwBytes, UINT uFlags)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
SIZE_T NTAPI GlobalSize(HGLOBAL hMem)
#define memcpy(s1, s2, n)
static HMODULE MODULEINFO DWORD cb
interface IEnumFORMATETC * LPENUMFORMATETC
const GUID IID_IEnumFORMATETC
const GUID IID_IDataObject
#define IsEqualGUID(rguid1, rguid2)
IDataObject IDataObject_iface
IDataObject IDataObject_iface
union tagME_DisplayItem::@535 member
struct tagME_DisplayItem * next_para
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
#define CONTAINING_RECORD(address, type, field)
#define DATA_S_SAMEFORMATETC
UINT WINAPI RegisterClipboardFormatA(_In_ LPCSTR)