msi: Fix a typo.
[wine.git] / include / richedit.h
blob3213a75e0d1b4b4fb9841b7d866ddff6a99f886f
1 /*
2 * Copyright (C) 2000 Jean-Claude Batista
3 * Copyright (C) 2002 Andriy Palamarchuk
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_RICHEDIT_H
21 #define __WINE_RICHEDIT_H
23 #include <pshpack4.h>
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 #ifndef _RICHEDIT_VER
30 #define _RICHEDIT_VER 0x0210
31 #endif /* _RICHEDIT_VER */
33 #define cchTextLimitDefault 0x7fff
35 #if defined(__GNUC__)
36 # define MSFTEDIT_CLASS (const WCHAR []){ 'R','i','c','h','E','d','i','t','5','0','W',0 }
37 #elif defined(_MSC_VER)
38 # define MSFTEDIT_CLASS L"RichEdit50W"
39 #else
40 static const WCHAR MSFTEDIT_CLASS[] = { 'R','i','c','h','E','d','i','t','5','0','W',0 };
41 #endif
43 #define RICHEDIT_CLASS20A "RichEdit20A"
44 #if defined(__GNUC__)
45 # define RICHEDIT_CLASS20W (const WCHAR []){ 'R','i','c','h','E','d','i','t','2','0','W',0 }
46 #elif defined(_MSC_VER)
47 # define RICHEDIT_CLASS20W L"RichEdit20W"
48 #else
49 static const WCHAR RICHEDIT_CLASS20W[] = { 'R','i','c','h','E','d','i','t','2','0','W',0 };
50 #endif
51 #define RICHEDIT_CLASS10A "RICHEDIT"
53 #if (_RICHEDIT_VER >= 0x0200 )
54 #define RICHEDIT_CLASS WINELIB_NAME_AW(RICHEDIT_CLASS20)
55 #else
56 #define RICHEDIT_CLASS RICHEDIT_CLASS10A
57 #endif
59 #ifndef EM_SCROLLCARET
60 #define EM_SCROLLCARET (WM_USER + 49)
61 #endif
62 #define EM_CANPASTE (WM_USER + 50)
63 #define EM_DISPLAYBAND (WM_USER + 51)
64 #define EM_EXGETSEL (WM_USER + 52)
65 #define EM_EXLIMITTEXT (WM_USER + 53)
66 #define EM_EXLINEFROMCHAR (WM_USER + 54)
67 #define EM_EXSETSEL (WM_USER + 55)
68 #define EM_FINDTEXT (WM_USER + 56)
69 #define EM_FORMATRANGE (WM_USER + 57)
70 #define EM_GETCHARFORMAT (WM_USER + 58)
71 #define EM_GETEVENTMASK (WM_USER + 59)
72 #define EM_GETOLEINTERFACE (WM_USER + 60)
73 #define EM_GETPARAFORMAT (WM_USER + 61)
74 #define EM_GETSELTEXT (WM_USER + 62)
75 #define EM_HIDESELECTION (WM_USER + 63)
76 #define EM_PASTESPECIAL (WM_USER + 64)
77 #define EM_REQUESTRESIZE (WM_USER + 65)
78 #define EM_SELECTIONTYPE (WM_USER + 66)
79 #define EM_SETBKGNDCOLOR (WM_USER + 67)
80 #define EM_SETCHARFORMAT (WM_USER + 68)
81 #define EM_SETEVENTMASK (WM_USER + 69)
82 #define EM_SETOLECALLBACK (WM_USER + 70)
83 #define EM_SETPARAFORMAT (WM_USER + 71)
84 #define EM_SETTARGETDEVICE (WM_USER + 72)
85 #define EM_STREAMIN (WM_USER + 73)
86 #define EM_STREAMOUT (WM_USER + 74)
87 #define EM_GETTEXTRANGE (WM_USER + 75)
88 #define EM_FINDWORDBREAK (WM_USER + 76)
89 #define EM_SETOPTIONS (WM_USER + 77)
90 #define EM_GETOPTIONS (WM_USER + 78)
91 #define EM_FINDTEXTEX (WM_USER + 79)
92 #define EM_GETWORDBREAKPROCEX (WM_USER + 80)
93 #define EM_SETWORDBREAKPROCEX (WM_USER + 81)
95 #define EM_SETUNDOLIMIT (WM_USER + 82)
96 #define EM_REDO (WM_USER + 84)
97 #define EM_CANREDO (WM_USER + 85)
98 #define EM_GETUNDONAME (WM_USER + 86)
99 #define EM_GETREDONAME (WM_USER + 87)
100 #define EM_STOPGROUPTYPING (WM_USER + 88)
102 #define EM_SETTEXTMODE (WM_USER + 89)
103 #define EM_GETTEXTMODE (WM_USER + 90)
104 #define EM_AUTOURLDETECT (WM_USER + 91)
105 #define EM_GETAUTOURLDETECT (WM_USER + 92)
106 #define EM_SETPALETTE (WM_USER + 93)
107 #define EM_GETTEXTEX (WM_USER + 94)
108 #define EM_GETTEXTLENGTHEX (WM_USER + 95)
109 #define EM_SHOWSCROLLBAR (WM_USER + 96)
110 #define EM_SETTEXTEX (WM_USER + 97)
112 #define EM_SETPUNCTUATION (WM_USER + 100)
113 #define EM_GETPUNCTUATION (WM_USER + 101)
114 #define EM_SETWORDWRAPMODE (WM_USER + 102)
115 #define EM_GETWORDWRAPMODE (WM_USER + 103)
116 #define EM_SETIMECOLOR (WM_USER + 104)
117 #define EM_GETIMECOLOR (WM_USER + 105)
118 #define EM_SETIMEOPTIONS (WM_USER + 106)
119 #define EM_GETIMEOPTIONS (WM_USER + 107)
120 #define EM_CONVPOSITION (WM_USER + 108)
122 #define EM_SETLANGOPTIONS (WM_USER + 120)
123 #define EM_GETLANGOPTIONS (WM_USER + 121)
124 #define EM_GETIMECOMPMODE (WM_USER + 122)
126 #define EM_FINDTEXTW (WM_USER + 123)
127 #define EM_FINDTEXTEXW (WM_USER + 124)
129 #define EM_RECONVERSION (WM_USER + 125)
130 #define EM_SETIMEMODEBIAS (WM_USER + 126)
131 #define EM_GETIMEMODEBIAS (WM_USER + 127)
133 #define EM_SETBIDIOPTIONS (WM_USER + 200)
134 #define EM_GETBIDIOPTIONS (WM_USER + 201)
136 #define EM_SETTYPOGRAPHYOPTIONS (WM_USER + 202)
137 #define EM_GETTYPOGRAPHYOPTIONS (WM_USER + 203)
139 #define EM_SETEDITSTYLE (WM_USER + 204)
140 #define EM_GETEDITSTYLE (WM_USER + 205)
142 #define EM_OUTLINE (WM_USER + 220)
144 #define EM_GETSCROLLPOS (WM_USER + 221)
145 #define EM_SETSCROLLPOS (WM_USER + 222)
147 #define EM_SETFONTSIZE (WM_USER + 223)
148 #define EM_GETZOOM (WM_USER + 224)
149 #define EM_SETZOOM (WM_USER + 225)
151 /* New notifications */
152 #define EN_MSGFILTER 0x0700
153 #define EN_REQUESTRESIZE 0x0701
154 #define EN_SELCHANGE 0x0702
155 #define EN_DROPFILES 0x0703
156 #define EN_PROTECTED 0x0704
157 #define EN_CORRECTTEXT 0x0705
158 #define EN_STOPNOUNDO 0x0706
159 #define EN_IMECHANGE 0x0707
160 #define EN_SAVECLIPBOARD 0x0708
161 #define EN_OLEOPFAILED 0x0709
162 #define EN_OBJECTPOSITIONS 0x070a
163 #define EN_LINK 0x070b
164 #define EN_DRAGDROPDONE 0x070c
165 #define EN_PARAGRAPHEXPANDED 0x070d
166 #define EN_ALIGNLTR 0x0710
167 #define EN_ALIGNRTL 0x0711
170 typedef DWORD (CALLBACK * EDITSTREAMCALLBACK)( DWORD_PTR, LPBYTE, LONG, LONG * );
172 /* tab stops number limit */
173 #define MAX_TAB_STOPS 0x00000020
175 /* Rich edit control styles */
176 #define ES_DISABLENOSCROLL 0x00002000
177 #define ES_SUNKEN 0x00004000
178 #define ES_SAVESEL 0x00008000
179 #define ES_SELFIME 0x00040000
180 #define ES_NOIME 0x00080000
181 #define ES_VERTICAL 0x00400000
182 #define ES_SELECTIONBAR 0x01000000
183 #define ES_EX_NOCALLOLEINIT 0x01000000
185 /* the character formatting options */
186 #define SCF_DEFAULT 0x00000000
187 #define SCF_SELECTION 0x00000001
188 #define SCF_WORD 0x00000002
189 #define SCF_ALL 0x00000004
190 #define SCF_USEUIRULES 0x00000008
192 /* CHARFORMAT structure */
193 typedef struct _charformat
195 UINT cbSize;
196 DWORD dwMask;
197 DWORD dwEffects;
198 LONG yHeight;
199 LONG yOffset;
200 COLORREF crTextColor;
201 BYTE bCharSet;
202 BYTE bPitchAndFamily;
203 char szFaceName[LF_FACESIZE];
204 } CHARFORMATA;
206 typedef struct _charformatw
208 UINT cbSize;
209 DWORD dwMask;
210 DWORD dwEffects;
211 LONG yHeight;
212 LONG yOffset;
213 COLORREF crTextColor;
214 BYTE bCharSet;
215 BYTE bPitchAndFamily;
216 WCHAR szFaceName[LF_FACESIZE];
217 } CHARFORMATW;
219 DECL_WINELIB_TYPE_AW(CHARFORMAT)
221 typedef struct _charformat2a {
222 UINT cbSize;
223 DWORD dwMask;
224 DWORD dwEffects;
225 LONG yHeight;
226 LONG yOffset;
227 COLORREF crTextColor;
228 BYTE bCharSet;
229 BYTE bPitchAndFamily;
230 char szFaceName[LF_FACESIZE];
231 WORD wWeight;
232 SHORT sSpacing;
233 COLORREF crBackColor;
234 LCID lcid;
235 DWORD dwReserved;
236 SHORT sStyle;
237 WORD wKerning;
238 BYTE bUnderlineType;
239 BYTE bAnimation;
240 BYTE bRevAuthor;
241 } CHARFORMAT2A;
243 typedef struct _charformat2w {
244 UINT cbSize;
245 DWORD dwMask;
246 DWORD dwEffects;
247 LONG yHeight;
248 LONG yOffset;
249 COLORREF crTextColor;
250 BYTE bCharSet;
251 BYTE bPitchAndFamily;
252 WCHAR szFaceName[LF_FACESIZE];
253 WORD wWeight;
254 SHORT sSpacing;
255 COLORREF crBackColor;
256 LCID lcid;
257 DWORD dwReserved;
258 SHORT sStyle;
259 WORD wKerning;
260 BYTE bUnderlineType;
261 BYTE bAnimation;
262 BYTE bRevAuthor;
263 } CHARFORMAT2W;
265 DECL_WINELIB_TYPE_AW(CHARFORMAT2)
267 /* CHARFORMAT masks */
268 #define CFM_BOLD 0x00000001
269 #define CFM_ITALIC 0x00000002
270 #define CFM_UNDERLINE 0x00000004
271 #define CFM_STRIKEOUT 0x00000008
272 #define CFM_PROTECTED 0x00000010
273 #define CFM_LINK 0x00000020
274 #define CFM_SMALLCAPS 0x00000040
275 #define CFM_ALLCAPS 0x00000080
276 #define CFM_HIDDEN 0x00000100
277 #define CFM_OUTLINE 0x00000200
278 #define CFM_SHADOW 0x00000400
279 #define CFM_EMBOSS 0x00000800
280 #define CFM_IMPRINT 0x00001000
281 #define CFM_DISABLED 0x00002000
282 #define CFM_REVISED 0x00004000
283 #define CFM_REVAUTHOR 0x00008000
284 #define CFM_SUBSCRIPT 0x00030000
285 #define CFM_SUPERSCRIPT 0x00030000
286 #define CFM_ANIMATION 0x00040000
287 #define CFM_STYLE 0x00080000
288 #define CFM_KERNING 0x00100000
289 #define CFM_SPACING 0x00200000
290 #define CFM_WEIGHT 0x00400000
291 #define CFM_UNDERLINETYPE 0x00800000
292 #define CFM_LCID 0x02000000
293 #define CFM_BACKCOLOR 0x04000000
294 #define CFM_CHARSET 0x08000000
295 #define CFM_OFFSET 0x10000000
296 #define CFM_FACE 0x20000000
297 #define CFM_COLOR 0x40000000
298 #define CFM_SIZE 0x80000000
299 #define CFM_EFFECTS (CFM_BOLD | CFM_ITALIC | CFM_UNDERLINE | CFM_COLOR | CFM_STRIKEOUT | CFE_PROTECTED | CFM_LINK)
301 /* CHARFORMAT effects */
302 #define CFE_BOLD 0x00000001
303 #define CFE_ITALIC 0x00000002
304 #define CFE_UNDERLINE 0x00000004
305 #define CFE_STRIKEOUT 0x00000008
306 #define CFE_PROTECTED 0x00000010
307 #define CFE_LINK 0x00000020
308 #define CFE_SUBSCRIPT 0x00010000
309 #define CFE_SUPERSCRIPT 0x00020000
310 #define CFE_AUTOCOLOR 0x40000000
312 #define CFE_SMALLCAPS CFM_SMALLCAPS
313 #define CFE_ALLCAPS CFM_ALLCAPS
314 #define CFE_HIDDEN CFM_HIDDEN
315 #define CFE_OUTLINE CFM_OUTLINE
316 #define CFE_SHADOW CFM_SHADOW
317 #define CFE_EMBOSS CFM_EMBOSS
318 #define CFE_IMPRINT CFM_IMPRINT
319 #define CFE_DISABLED CFM_DISABLED
320 #define CFE_REVISED CFM_REVISED
321 #define CFE_AUTOBACKCOLOR CFM_BACKCOLOR
323 #define CFU_CF1UNDERLINE 0xFF
324 #define CFU_INVERT 0xFE
325 #define CFU_UNDERLINEDOTTED 0x04
326 #define CFU_UNDERLINEDOUBLE 0x03
327 #define CFU_UNDERLINEWORD 0x02
328 #define CFU_UNDERLINE 0x01
329 #define CFU_UNDERLINENONE 0x00
331 /* ECO operations */
332 #define ECOOP_SET 0x0001
333 #define ECOOP_OR 0x0002
334 #define ECOOP_AND 0x0003
335 #define ECOOP_XOR 0x0004
337 /* edit control options */
338 #define ECO_AUTOWORDSELECTION 0x00000001
339 #define ECO_AUTOVSCROLL 0x00000040
340 #define ECO_AUTOHSCROLL 0x00000080
341 #define ECO_NOHIDESEL 0x00000100
342 #define ECO_READONLY 0x00000800
343 #define ECO_WANTRETURN 0x00001000
344 #define ECO_SAVESEL 0x00008000
345 #define ECO_SELECTIONBAR 0x01000000
346 #define ECO_VERTICAL 0x00400000
348 /* Event notification masks */
349 #define ENM_NONE 0x00000000
350 #define ENM_CHANGE 0x00000001
351 #define ENM_UPDATE 0x00000002
352 #define ENM_SCROLL 0x00000004
353 #define ENM_KEYEVENTS 0x00010000
354 #define ENM_MOUSEEVENTS 0x00020000
355 #define ENM_REQUESTRESIZE 0x00040000
356 #define ENM_SELCHANGE 0x00080000
357 #define ENM_DROPFILES 0x00100000
358 #define ENM_PROTECTED 0x00200000
359 #define ENM_CORRECTTEXT 0x00400000
360 #define ENM_IMECHANGE 0x00800000
361 #define ENM_LINK 0x04000000
363 #ifndef __RICHEDIT_CHARRANGE_DEFINED
364 #define __RICHEDIT_CHARRANGE_DEFINED
366 typedef struct _charrange
368 LONG cpMin;
369 LONG cpMax;
370 } CHARRANGE;
372 #endif /* __RICHEDIT_CHARRANGE_DEFINED */
374 typedef struct _textrange
376 CHARRANGE chrg;
377 LPSTR lpstrText;
378 } TEXTRANGEA;
380 typedef struct _textrangew
382 CHARRANGE chrg;
383 LPWSTR lpstrText;
384 } TEXTRANGEW;
386 DECL_WINELIB_TYPE_AW(TEXTRANGE)
388 typedef struct _editstream
390 DWORD dwCookie;
391 DWORD dwError;
392 EDITSTREAMCALLBACK pfnCallback;
393 } EDITSTREAM;
395 typedef struct _compcolor {
396 COLORREF crText;
397 COLORREF crBackground;
398 DWORD dwEffects;
399 } COMPCOLOR;
401 typedef struct _encorrecttext {
402 NMHDR nmhdr;
403 CHARRANGE chrg;
404 WORD seltyp;
405 } ENCORRECTTEXT;
407 typedef struct _endropfiles {
408 NMHDR nmhdr;
409 HANDLE hDrop;
410 LONG cp;
411 BOOL fProtected;
412 } ENDROPFILES;
414 typedef struct _enlink {
415 NMHDR nmhdr;
416 UINT msg;
417 WPARAM wParam;
418 LPARAM lParam;
419 CHARRANGE chrg;
420 } ENLINK;
422 typedef struct {
423 NMHDR nmhdr;
424 LONG iob;
425 LONG lOper;
426 HRESULT hr;
427 } ENOLEOPFAILED;
429 typedef struct _enprotected {
430 NMHDR nmhdr;
431 UINT msg;
432 WPARAM wParam;
433 LPARAM lParam;
434 CHARRANGE chrg;
435 } ENPROTECTED, *LPENPROTECTED;
437 typedef struct _ensaveclipboard {
438 NMHDR nmhdr;
439 LONG cObjectCount;
440 LONG cch;
441 } ENSAVECLIPBOARD;
443 typedef struct _findtextA {
444 CHARRANGE chrg;
445 LPCSTR lpstrText;
446 } FINDTEXTA;
448 typedef struct _findtextW {
449 CHARRANGE chrg;
450 LPCWSTR lpstrText;
451 } FINDTEXTW;
453 DECL_WINELIB_TYPE_AW(FINDTEXT)
455 typedef struct _findtextexA {
456 CHARRANGE chrg;
457 LPCSTR lpstrText;
458 CHARRANGE chrgText;
459 } FINDTEXTEXA;
461 typedef struct _findtextexW {
462 CHARRANGE chrg;
463 LPCWSTR lpstrText;
464 CHARRANGE chrgText;
465 } FINDTEXTEXW;
467 DECL_WINELIB_TYPE_AW(FINDTEXTEX)
469 typedef struct _formatrange {
470 HDC hdc;
471 HDC hdcTarget;
472 RECT rc;
473 RECT rcPage;
474 CHARRANGE chrg;
475 } FORMATRANGE;
477 typedef struct _msgfilter {
478 NMHDR nmhdr;
479 UINT msg;
480 WPARAM wParam;
481 LPARAM lParam;
482 } MSGFILTER;
484 typedef struct _paraformat {
485 UINT cbSize;
486 DWORD dwMask;
487 WORD wNumbering;
488 WORD wReserved;
489 LONG dxStartIndent;
490 LONG dxRightIndent;
491 LONG dxOffset;
492 WORD wAlignment;
493 SHORT cTabCount;
494 LONG rgxTabs[MAX_TAB_STOPS];
495 } PARAFORMAT;
497 typedef struct _paraformat2 {
498 UINT cbSize;
499 DWORD dwMask;
500 WORD wNumbering;
501 WORD wEffects;
502 LONG dxStartIndent;
503 LONG dxRightIndent;
504 LONG dxOffset;
505 WORD wAlignment;
506 SHORT cTabCount;
507 LONG rgxTabs[MAX_TAB_STOPS];
508 LONG dySpaceBefore, dySpaceAfter, dyLineSpacing;
509 SHORT sStyle;
510 BYTE bLineSpacingRule, bOutlineLevel;
511 WORD wShadingWeight, wShadingStyle;
512 WORD wNumberingStart, wNumberingStyle, wNumberingTab;
513 WORD wBorderSpace, wBorderWidth, wBorders;
514 } PARAFORMAT2;
516 typedef struct _selchange {
517 NMHDR nmhdr;
518 CHARRANGE chrg;
519 WORD seltyp;
520 } SELCHANGE;
522 typedef struct _reqresize {
523 NMHDR nmhdr;
524 RECT rc;
525 } REQRESIZE;
527 typedef struct _repastespecial {
528 DWORD dwAspect;
529 DWORD dwParam;
530 } REPASTESPECIAL;
532 typedef struct _punctuation {
533 UINT iSize;
534 LPSTR szPunctuation;
535 } PUNCTUATION;
537 typedef struct _gettextex {
538 DWORD cb;
539 DWORD flags;
540 UINT codepage;
541 LPCSTR lpDefaultChar;
542 LPBOOL lpUsedDefChar;
543 } GETTEXTEX;
545 #define SF_TEXT 0x00000001
546 #define SF_RTF 0x00000002
547 #define SF_RTFNOOBJS 0x00000003
548 #define SF_TEXTIZED 0x00000004
549 #define SF_UNICODE 0x00000010
550 #define SF_USECODEPAGE 0x00000020
551 #define SF_NCRFORNONASCII 0x00000040
552 #define SF_RTFVAL 0x00000700
554 /* Clipboard formats */
555 #define CF_RTF TEXT("Rich Text Format")
556 #define CF_RTFNOOBJS TEXT("Rich Text Format Without Objects")
557 #define CF_RETEXTOBJ TEXT("RichEdit Text and Objects")
560 /* Parameters of the EM_SETIMEOPTIONS message */
561 #define IMF_FORCENONE 0x00000001
562 #define IMF_FORCEENABLE 0x00000002
563 #define IMF_FORCEDISABLE 0x00000004
564 #define IMF_CLOSESTATUSWINDOW 0x00000008
565 #define IMF_VERTICAL 0x00000020
566 #define IMF_FORCEACTIVE 0x00000040
567 #define IMF_FORCEINACTIVE 0x00000080
568 #define IMF_FORCEREMEMBER 0x00000100
570 /* return values of the EM_SELECTION_TYPE message */
571 #define SEL_EMPTY 0x00000000
572 #define SEL_TEXT 0x00000001
573 #define SEL_OBJECT 0x00000002
574 #define SEL_MULTICHAR 0x00000004
575 #define SEL_MULTIOBJECT 0x00000008
577 /* mask values in the PARAFORMAT structure */
578 #define PFM_STARTINDENT 0x00000001
579 #define PFM_RIGHTINDENT 0x00000002
580 #define PFM_OFFSET 0x00000004
581 #define PFM_ALIGNMENT 0x00000008
582 #define PFM_TABSTOPS 0x00000010
583 #define PFM_NUMBERING 0x00000020
584 #define PFM_OFFSETINDENT 0x80000000
586 /* mask values in the PARAFORMAT2 structure */
587 #define PFM_SPACEBEFORE 0x00000040
588 #define PFM_SPACEAFTER 0x00000080
589 #define PFM_LINESPACING 0x00000100
590 #define PFM_STYLE 0x00000400
591 #define PFM_BORDER 0x00000800
592 #define PFM_SHADING 0x00001000
594 #define PFM_NUMBERINGSTYLE 0x00002000
595 #define PFM_NUMBERINGTAB 0x00004000
596 #define PFM_NUMBERINGSTART 0x00008000
597 #define PFM_RTLPARA 0x00010000
598 #define PFM_KEEP 0x00020000
599 #define PFM_KEEPNEXT 0x00040000
600 #define PFM_PAGEBREAKBEFORE 0x00080000
601 #define PFM_NOLINENUMBER 0x00100000
602 #define PFM_NOWIDOWCONTROL 0x00200000
603 #define PFM_DONOTHYPHEN 0x00400000
604 #define PFM_SIDEBYSIDE 0x00800000
605 #define PFM_TABLE 0x40000000
607 /* numbering option */
608 #define PFN_BULLET 0x00000001
610 /* paragraph alignment */
611 #define PFA_LEFT 0x00000001
612 #define PFA_RIGHT 0x00000002
613 #define PFA_CENTER 0x00000003
614 #define PFA_JUSTIFY 0x00000004
615 #define PFA_FULL_INTERWORD 0x00000004
616 #define PFA_FULL_INTERLETTER 0x00000005
618 /* paragraph effects */
619 #define PFE_RTLPARA 0x00000001
620 #define PFE_KEEP 0x00000002
621 #define PFE_KEEPNEXT 0x00000004
622 #define PFE_PAGEBREAKBEFORE 0x00000008
623 #define PFE_NOLINENUMBER 0x00000010
624 #define PFE_NOWIDOWCONTROL 0x00000020
625 #define PFE_DONOTHYPHEN 0x00000040
626 #define PFE_SIDEBYSIDE 0x00000080
627 #define PFE_TABLE 0x00004000
629 /* streaming flags */
630 #define SFF_PWD 0x00000800
631 #define SFF_KEEPDOCINFO 0x00001000
632 #define SFF_PERSISTVIEWSCALE 0x00002000
633 #define SFF_PLAINRTF 0x00004000
634 #define SFF_SELECTION 0x00008000
636 typedef LONG (*EDITWORDBREAKPROCEX)(char*,LONG,BYTE,INT);
638 /* options of the EM_FINDWORDBREAK message */
639 #define WB_CLASSIFY 0x00000003
640 #define WB_MOVEWORDLEFT 0x00000004
641 #define WB_MOVEWORDPREV 0x00000004
642 #define WB_MOVEWORDRIGHT 0x00000005
643 #define WB_MOVEWORDNEXT 0x00000005
644 #define WB_LEFTBREAK 0x00000006
645 #define WB_PREVBREAK 0x00000006
646 #define WB_RIGHTBREAK 0x00000007
647 #define WB_NEXTBREAK 0x00000007
649 /* options of the EM_SETWORDWRAPMODE message */
650 #define WBF_WORDWRAP 0x00000010
651 #define WBF_WORDBREAK 0x00000020
652 #define WBF_OVERFLOW 0x00000040
653 #define WBF_LEVEL1 0x00000080
654 #define WBF_LEVEL2 0x00000100
655 #define WBF_CUSTOM 0x00000200
657 /* options of the EM_SETTEXTMODE message */
658 #define TM_PLAINTEXT 0x00000001
659 #define TM_RICHTEXT 0x00000002
660 #define TM_SINGLELEVELUNDO 0x00000004
661 #define TM_MULTILEVELUNDO 0x00000008
662 #define TM_SINGLECODEPAGE 0x00000010
663 #define TM_MULTICODEPAGE 0x00000020
665 /* GETTEXTEX structure flags */
666 #define GT_DEFAULT 0x00000000
667 #define GT_USECRLF 0x00000001
668 #define GT_SELECTION 0x00000002
670 /* Options of the EM_SETTYPOGRAPHYOPTIONS message */
671 #define TO_ADVANCEDTYPOGRAPHY 0x00000001
672 #define TO_SIMPLELINEBREAK 0x00000002
674 typedef struct _gettextlengthex {
675 DWORD flags;
676 UINT codepage;
677 } GETTEXTLENGTHEX;
679 /* Flags of the GETTEXTLENGTHEX structure */
680 #define GTL_DEFAULT 0x00000000
681 #define GTL_USECRLF 0x00000001
682 #define GTL_PRECISE 0x00000002
683 #define GTL_CLOSE 0x00000004
684 #define GTL_NUMCHARS 0x00000008
685 #define GTL_NUMBYTES 0x00000010
687 #define GCM_RIGHTMOUSEDROP 0x8000
689 /* Options of the EM_SETTEXTEX message */
690 typedef struct _settextex {
691 DWORD flags;
692 UINT codepage;
693 } SETTEXTEX;
695 /* Flags of the EM_SETTEXTEX message */
696 #define ST_DEFAULT 0x00000000
697 #define ST_KEEPUNDO 0x00000001
698 #define ST_SELECTION 0x00000002
701 #ifdef __cplusplus
703 #endif
705 #include <poppack.h>
707 #endif /* __WINE_RICHEDIT_H */