ReactOS 0.4.16-dev-1093-g93e9710
riched20.h
Go to the documentation of this file.
1/*
2 * RichEdit - functions and interfaces around CreateTextServices for txtsrv.c
3 *
4 * Copyright 2005, 2006, Maarten Lankhorst
5 *
6 * RichEdit - ITextHost implementation for windowed richedit controls for txthost.c
7 *
8 * Copyright 2009 by Dylan Smith
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25
26/* Forward definitions from txtsrv.c to make MSVC compile in ReactOS. */
27
30
31DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxDraw( ITextServices *iface, DWORD aspect, LONG index, void *aspect_info,
32 DVTARGETDEVICE *td, HDC draw, HDC target,
33 const RECTL *bounds, const RECTL *mf_bounds, RECT *update,
34 BOOL (CALLBACK *continue_fn)(DWORD), DWORD continue_param,
35 LONG view_id );
36
37DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetHScroll( ITextServices *iface, LONG *min_pos, LONG *max_pos, LONG *pos,
38 LONG *page, BOOL *enabled );
39
40DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetVScroll( ITextServices *iface, LONG *min_pos, LONG *max_pos, LONG *pos,
41 LONG *page, BOOL *enabled );
42
44 void *aspect_info, DVTARGETDEVICE *td, HDC draw,
45 HDC target, const RECT *client, INT x, INT y );
46
47DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxQueryHitPoint(ITextServices *iface, DWORD dwDrawAspect, LONG lindex,
48 void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw,
49 HDC hicTargetDev, LPCRECT lprcClient, INT x, INT y,
50 DWORD *pHitResult);
51
53
55
57
59
61
62DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxSetText( ITextServices *iface, const WCHAR *text );
63
65
67
68DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetNaturalSize( ITextServices *iface, DWORD aspect, HDC draw,
69 HDC target, DVTARGETDEVICE *td, DWORD mode,
70 const SIZEL *extent, LONG *width, LONG *height );
71
72DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetDropTarget(ITextServices *iface, IDropTarget **ppDropTarget);
73
75
76DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetCachedSize(ITextServices *iface, DWORD *pdwWidth, DWORD *pdwHeight);
77
78
79/* Forward definitions from txthost.c to make MSVC compile in ReactOS. */
80
81
83
85
87
89
91
93
95
96DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxViewChange( ITextHost2 *iface, BOOL update );
97
99
101
103
105
106DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxKillTimer( ITextHost2 *iface, UINT id );
107
108DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxScrollWindowEx( ITextHost2 *iface, INT dx, INT dy, const RECT *scroll,
109 const RECT *clip, HRGN update_rgn, RECT *update_rect,
110 UINT flags );
111
112DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetCapture( ITextHost2 *iface, BOOL capture );
113
114DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetFocus( ITextHost2 *iface );
115
117
119
121
122DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxActivate( ITextHost2 *iface, LONG *old_state );
123
125
127
129
131
133
135
137
139
141
143
145
147
149
151
153
154DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxNotify( ITextHost2 *iface, DWORD iNotify, void *pv );
155
157
159
161
163
165
167
168DECLSPEC_HIDDEN HPALETTE __thiscall ITextHostImpl_TxGetPalette( ITextHost2 *iface );
169
171
173
175
177
179
181
183
184DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetHorzExtent( ITextHost2 *iface, LONG *horz_extent );
185
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
Arabic default style
Definition: afstyles.h:94
#define msg(x)
Definition: auth_time.c:54
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
Definition: cvt.cpp:355
DWORD HIMC
Definition: dimm.idl:75
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
OLECHAR * BSTR
Definition: compat.h:2293
#define CALLBACK
Definition: compat.h:35
const WCHAR * text
Definition: package.c:1794
#define pt(x, y)
Definition: drawing.c:79
void bar()
Definition: ehthrow.cxx:142
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
const GLubyte * c
Definition: glext.h:8905
GLuint index
Definition: glext.h:6031
GLenum GLint GLuint mask
Definition: glext.h:6028
GLenum mode
Definition: glext.h:6217
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:10929
GLbitfield flags
Definition: glext.h:7161
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
GLuint64EXT * result
Definition: glext.h:11304
GLenum target
Definition: glext.h:7315
const char cursor[]
Definition: icontest.c:13
GLint dy
Definition: linetemp.h:97
GLint dx
Definition: linetemp.h:97
HDC hdc
Definition: main.c:9
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:88
#define __thiscall
Definition: cpp.c:43
static ATOM item
Definition: dde.c:856
unsigned int UINT
Definition: ndis.h:50
long LONG
Definition: pedump.c:60
void redraw(int x, int y, int cx, int cy)
Definition: qtewin.cpp:1248
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetBackStyle(ITextHost2 *iface, TXTBACKSTYLE *style)
Definition: txthost.c:405
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxPropertyBitsChange(ITextServices *iface, DWORD mask, DWORD bits)
Definition: txtsrv.c:410
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetCaretPos(ITextHost2 *iface, INT x, INT y)
Definition: txthost.c:280
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetExtent(ITextHost2 *iface, SIZEL *extent)
Definition: txthost.c:444
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxImmReleaseContext(ITextHost2 *iface, HIMC context)
Definition: txthost.c:535
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetScrollPos(ITextHost2 *iface, INT bar, INT pos, BOOL redraw)
Definition: txthost.c:226
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetWindowStyles(ITextHost2 *iface, DWORD *style, DWORD *ex_style)
Definition: txthost.c:601
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxInvalidateRect(ITextHost2 *iface, const RECT *rect, BOOL mode)
Definition: txthost.c:251
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetWindow(ITextHost2 *iface, HWND *hwnd)
Definition: txthost.c:557
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetCursor(ITextHost2 *iface, HCURSOR cursor, BOOL text)
Definition: txthost.c:324
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxActivate(ITextHost2 *iface, LONG *old_state)
Definition: txthost.c:344
DECLSPEC_HIDDEN HCURSOR __thiscall ITextHostImpl_TxSetCursor2(ITextHost2 *iface, HCURSOR cursor, BOOL text)
Definition: txthost.c:583
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetHScroll(ITextServices *iface, LONG *min_pos, LONG *max_pos, LONG *pos, LONG *page, BOOL *enabled)
Definition: txtsrv.c:196
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_OnTxCharFormatChange(ITextHost2 *iface, const CHARFORMATW *pcf)
Definition: txthost.c:450
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxNotify(ITextHost2 *iface, DWORD iNotify, void *pv)
Definition: txthost.c:471
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetEastAsianFlags(ITextHost2 *iface, LONG *flags)
Definition: txthost.c:577
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetVScroll(ITextServices *iface, LONG *min_pos, LONG *max_pos, LONG *pos, LONG *page, BOOL *enabled)
Definition: txtsrv.c:210
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetSelectionBarWidth(ITextHost2 *iface, LONG *width)
Definition: txthost.c:542
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxViewChange(ITextHost2 *iface, BOOL update)
Definition: txthost.c:258
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxClientToScreen(ITextHost2 *iface, POINT *pt)
Definition: txthost.c:337
DECLSPEC_HIDDEN HIMC __thiscall ITextHostImpl_TxImmGetContext(ITextHost2 *iface)
Definition: txthost.c:528
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetNaturalSize(ITextServices *iface, DWORD aspect, HDC draw, HDC target, DVTARGETDEVICE *td, DWORD mode, const SIZEL *extent, LONG *width, LONG *height)
Definition: txtsrv.c:361
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxCreateCaret(ITextHost2 *iface, HBITMAP bitmap, INT width, INT height)
Definition: txthost.c:265
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetTimer(ITextHost2 *iface, UINT id, UINT timeout)
Definition: txthost.c:286
DECLSPEC_HIDDEN INT __thiscall ITextHostImpl_TxReleaseDC(ITextHost2 *iface, HDC hdc)
Definition: txthost.c:180
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetMaxLength(ITextHost2 *iface, DWORD *length)
Definition: txthost.c:412
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetAcceleratorPos(ITextHost2 *iface, LONG *pos)
Definition: txthost.c:437
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetParaFormat(ITextHost2 *iface, const PARAFORMAT **fmt)
Definition: txthost.c:388
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxDraw(ITextServices *iface, DWORD aspect, LONG index, void *aspect_info, DVTARGETDEVICE *td, HDC draw, HDC target, const RECTL *bounds, const RECTL *mf_bounds, RECT *update, BOOL(CALLBACK *continue_fn)(DWORD), DWORD continue_param, LONG view_id)
Definition: txtsrv.c:154
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetFocus(ITextHost2 *iface)
Definition: txthost.c:317
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxShowScrollBar(ITextHost2 *iface, INT bar, BOOL show)
Definition: txthost.c:187
DECLSPEC_HIDDEN COLORREF __thiscall ITextHostImpl_TxGetSysColor(ITextHost2 *iface, int index)
Definition: txthost.c:396
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetHorzExtent(ITextHost2 *iface, LONG *horz_extent)
Definition: txthost.c:619
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxSetCursor(ITextServices *iface, DWORD aspect, LONG index, void *aspect_info, DVTARGETDEVICE *td, HDC draw, HDC target, const RECT *client, INT x, INT y)
Definition: txtsrv.c:224
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetEditStyle(ITextHost2 *iface, DWORD item, DWORD *data)
Definition: txthost.c:595
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetDropTarget(ITextServices *iface, IDropTarget **ppDropTarget)
Definition: txtsrv.c:401
DECLSPEC_HIDDEN HPALETTE __thiscall ITextHostImpl_TxGetPalette(ITextHost2 *iface)
Definition: txthost.c:571
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxInPlaceActivate(ITextServices *iface, const RECT *client)
Definition: txtsrv.c:254
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxShowCaret(ITextHost2 *iface, BOOL show)
Definition: txthost.c:272
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)
Definition: txtsrv.c:242
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetBaseLinePos(ITextServices *iface, LONG *x)
Definition: txtsrv.c:352
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetClientRect(ITextHost2 *iface, RECT *rect)
Definition: txthost.c:359
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxDestroyCaret(ITextHost2 *iface)
Definition: txthost.c:613
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxIsDoubleClickPending(ITextHost2 *iface)
Definition: txthost.c:551
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxScreenToClient(ITextHost2 *iface, POINT *pt)
Definition: txthost.c:330
DECLSPEC_HIDDEN HDC __thiscall ITextHostImpl_TxGetDC(ITextHost2 *iface)
Definition: txthost.c:173
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetPasswordChar(ITextHost2 *iface, WCHAR *c)
Definition: txthost.c:428
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxScrollWindowEx(ITextHost2 *iface, INT dx, INT dy, const RECT *scroll, const RECT *clip, HRGN update_rgn, RECT *update_rect, UINT flags)
Definition: txthost.c:300
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxSetText(ITextServices *iface, const WCHAR *text)
Definition: txtsrv.c:325
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxSetForegroundWindow(ITextHost2 *iface)
Definition: txthost.c:565
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetCachedSize(ITextServices *iface, DWORD *pdwWidth, DWORD *pdwHeight)
Definition: txtsrv.c:474
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetViewInset(ITextHost2 *iface, RECT *rect)
Definition: txthost.c:375
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxShowDropCaret(ITextHost2 *iface, BOOL show, HDC hdc, const RECT *rect)
Definition: txthost.c:607
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxFreeTextServicesNotification(ITextHost2 *iface)
Definition: txthost.c:589
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetCharFormat(ITextHost2 *iface, const CHARFORMATW **ppCF)
Definition: txthost.c:382
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxEnableScrollBar(ITextHost2 *iface, INT bar, INT arrows)
Definition: txthost.c:194
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIActivate(ITextServices *iface)
Definition: txtsrv.c:284
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxInPlaceDeactivate(ITextServices *iface)
Definition: txtsrv.c:274
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxUIDeactivate(ITextServices *iface)
Definition: txtsrv.c:293
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetScrollBars(ITextHost2 *iface, DWORD *scrollbars)
Definition: txthost.c:419
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxSendMessage(ITextServices *iface, UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *result)
Definition: txtsrv.c:121
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxSetCapture(ITextHost2 *iface, BOOL capture)
Definition: txthost.c:309
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_OnTxParaFormatChange(ITextHost2 *iface, const PARAFORMAT *ppf)
Definition: txthost.c:456
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxDeactivate(ITextHost2 *iface, LONG new_state)
Definition: txthost.c:352
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetText(ITextServices *iface, BSTR *text)
Definition: txtsrv.c:302
DECLSPEC_HIDDEN BOOL __thiscall ITextHostImpl_TxSetScrollRange(ITextHost2 *iface, INT bar, LONG min_pos, INT max_pos, BOOL redraw)
Definition: txthost.c:201
DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetPropertyBits(ITextHost2 *iface, DWORD mask, DWORD *bits)
Definition: txthost.c:462
DECLSPEC_HIDDEN void __thiscall ITextHostImpl_TxKillTimer(ITextHost2 *iface, UINT id)
Definition: txthost.c:293
DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetCurTargetX(ITextServices *iface, LONG *x)
Definition: txtsrv.c:343
static FILE * client
Definition: client.c:41
& rect
Definition: startmenu.cpp:1413
Definition: uimain.c:89
Definition: http.c:7252
Definition: dsound.c:943
Definition: module.h:576
Definition: dhcpd.h:245
enum _TXTBACKSTYLE TXTBACKSTYLE
int32_t INT
Definition: typedefs.h:58
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
DWORD COLORREF
Definition: windef.h:300
HICON HCURSOR
Definition: windef.h:299
__wchar_t WCHAR
Definition: xmlstorage.h:180