61 *
ppv = &
This->ITextServices_iface;
64 if (!
This->editor->reOle)
67 return IUnknown_QueryInterface(
This->editor->reOle,
riid,
ppv);
98 This->csTxtSrv.DebugInfo->Spare[0] = 0;
120 return IUnknown_QueryInterface(
This->outer_unk,
riid,
ppv);
126 return IUnknown_AddRef(
This->outer_unk);
132 return IUnknown_Release(
This->outer_unk);
143 if (plresult) *plresult = lresult;
148 void *pvAspect, DVTARGETDEVICE *
ptd,
HDC hdcDraw,
HDC hdcTargetDev,
165 *plMin =
This->editor->horz_si.nMin;
167 *plMax =
This->editor->horz_si.nMax;
169 *plPos =
This->editor->horz_si.nPos;
171 *plPage =
This->editor->horz_si.nPage;
183 *plMin =
This->editor->vert_si.nMin;
185 *plMax =
This->editor->vert_si.nMax;
187 *plPos =
This->editor->vert_si.nPos;
189 *plPage =
This->editor->vert_si.nPage;
196 void *pvAspect, DVTARGETDEVICE *
ptd,
HDC hdcDraw,
206 void *pvAspect, DVTARGETDEVICE *
ptd,
HDC hdcDraw,
282 This->editor->nModifyStep = 0;
307 HDC hicTargetDev, DVTARGETDEVICE *
ptd,
DWORD dwMode,
391 TRACE(
"%p %p --> %p\n", pUnkOuter, pITextHost, ppUnk);
392 if (pITextHost ==
NULL)
396 if (ITextImpl ==
NULL)
401 ITextHost_AddRef(pITextHost);
402 ITextImpl->
pMyHost = pITextHost;
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
HRESULT WINAPI OleFlushClipboard(void)
void ME_SetCursorToStart(ME_TextEditor *editor, ME_Cursor *cursor)
void ME_InsertTextFromCursor(ME_TextEditor *editor, int nCursor, const WCHAR *str, int len, ME_Style *style)
BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start, int nChars, BOOL bForce)
int set_selection_cursors(ME_TextEditor *editor, int from, int to)
int ME_GetTextLength(ME_TextEditor *editor)
ME_TextEditor * ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode, HRESULT *phresult)
int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int buflen, const ME_Cursor *start, int srcChars, BOOL bCRLF, BOOL bEOP)
void ME_DestroyEditor(ME_TextEditor *editor)
static ULONG WINAPI ITextServicesImpl_Release(IUnknown *iface)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxSetCursor(ITextServices *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw, HDC hicTargetDev, LPCRECT lprcClient, INT x, INT y)
static const IUnknownVtbl textservices_inner_vtbl
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetVScroll(ITextServices *iface, LONG *plMin, LONG *plMax, LONG *plPos, LONG *plPage, BOOL *pfEnabled)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxInplaceDeactivate(ITextServices *iface)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxPropertyBitsChange(ITextServices *iface, DWORD dwMask, DWORD dwBits)
static HRESULT WINAPI fnTextSrv_QueryInterface(ITextServices *iface, REFIID riid, void **ppv)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetText(ITextServices *iface, BSTR *pbstrText)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxSendMessage(ITextServices *iface, UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *plresult)
static ITextServicesImpl * impl_from_ITextServices(ITextServices *iface)
static ULONG WINAPI ITextServicesImpl_AddRef(IUnknown *iface)
static ULONG WINAPI fnTextSrv_Release(ITextServices *iface)
static ULONG WINAPI fnTextSrv_AddRef(ITextServices *iface)
static const ITextServicesVtbl textservices_vtbl
static HRESULT WINAPI ITextServicesImpl_QueryInterface(IUnknown *iface, REFIID riid, void **ppv)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetNaturalSize(ITextServices *iface, DWORD dwAspect, HDC hdcDraw, HDC hicTargetDev, DVTARGETDEVICE *ptd, DWORD dwMode, const SIZEL *psizelExtent, LONG *pwidth, LONG *pheight)
HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, IUnknown **ppUnk)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetDropTarget(ITextServices *iface, IDropTarget **ppDropTarget)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxSetText(ITextServices *iface, LPCWSTR pszText)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxQueryHitPoint(ITextServices *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw, HDC hicTargetDev, LPCRECT lprcClient, INT x, INT y, DWORD *pHitResult)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetBaseLinePos(ITextServices *iface, LONG *x)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetCachedSize(ITextServices *iface, DWORD *pdwWidth, DWORD *pdwHeight)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetHScroll(ITextServices *iface, LONG *plMin, LONG *plMax, LONG *plPos, LONG *plPage, BOOL *pfEnabled)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIActivate(ITextServices *iface)
static ITextServicesImpl * impl_from_IUnknown(IUnknown *iface)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIDeactivate(ITextServices *iface)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxInplaceActivate(ITextServices *iface, LPCRECT prcClient)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetCurTargetX(ITextServices *iface, LONG *x)
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxDraw(ITextServices *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw, HDC hdcTargetDev, LPCRECTL lprcBounds, LPCRECTL lprcWBounds, LPRECT lprcUpdate, BOOL(CALLBACK *pfnContinue)(DWORD), DWORD dwContinue, LONG lViewId)
void ME_CursorFromCharOfs(ME_TextEditor *editor, int nCharOfs, ME_Cursor *pCursor) DECLSPEC_HIDDEN
void ME_EmptyUndoStack(ME_TextEditor *editor) DECLSPEC_HIDDEN
void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now) DECLSPEC_HIDDEN
LRESULT CreateIRichEditOle(IUnknown *outer_unk, ME_TextEditor *editor, LPVOID *ppvObj) DECLSPEC_HIDDEN
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLuint GLsizei GLsizei * length
VOID WINAPI CoTaskMemFree(LPVOID ptr)
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
#define DEFINE_THISCALL_WRAPPER(func, args)
BSTR WINAPI DECLSPEC_HOTPATCH SysAllocStringByteLen(LPCSTR str, UINT len)
#define IsEqualIID(riid1, riid2)
ITextServices ITextServices_iface
CRITICAL_SECTION csTxtSrv
DWORD_PTR Spare[8/sizeof(DWORD_PTR)]
PCRITICAL_SECTION_DEBUG DebugInfo
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
#define CONTAINING_RECORD(address, type, field)
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)