Commit Graph

440 Commits

Author SHA1 Message Date
Eric Pouech d319033a97 richedit: Added support for intra-paragraph line space. 2008-01-02 13:54:49 +01:00
Eric Pouech f1b029ef6a richedit: Added support for spaces above & below paragraphs. 2008-01-02 13:54:25 +01:00
Eric Pouech caa37c749a richedit: Now drawing the paragraph borders (if any) from paraformat2. 2008-01-02 13:54:01 +01:00
Eric Pouech 28cc0f9e69 richedit: Fix the para computation when zoom is used. 2008-01-02 13:52:52 +01:00
Eric Pouech f4fd063101 richedit: Enforce usage of paraformat2 fields instead of homegrown ones for paragraphs. 2008-01-02 13:52:10 +01:00
Eric Pouech 0e8c087561 richedit: Properly copying the paraformat2 structure for paragraphs. 2008-01-02 13:51:49 +01:00
Eric Pouech 8f60c8c46e richedit: Now dumping all fields from the paraformat2 structure. 2008-01-02 13:50:38 +01:00
Eric Pouech 566912dc3b richedit: Correctly initialize the paraformat structure. 2008-01-02 13:50:04 +01:00
Eric Pouech 0549b9009a richedit: Simplified handling of background brush while painting. 2008-01-02 13:49:57 +01:00
Eric Pouech 2602a39bd9 richedit: Now painting the newly supported underline types. 2008-01-02 13:48:53 +01:00
Eric Pouech 6b591ef23a richedit: Extend the usage of underlinetype from charformat2 in richedit. 2008-01-02 13:48:11 +01:00
Eric Pouech 13f86afe1f richedit: Don't allow recursive EN_REQUESTRESIZE notifications. 2008-01-02 13:47:41 +01:00
Eric Pouech c2631d8537 richedit: Correctly copy the pitch and family field. 2008-01-02 13:47:06 +01:00
Eric Pouech 8d0799a741 richedit: Fully initialize the first style. 2008-01-02 13:46:53 +01:00
Eric Pouech be785a295f richedit: Correctly set the CFM_WEIGHT in charformat2. 2008-01-02 13:46:42 +01:00
Eric Pouech a607ad316e richedit: Fixed a couple of charformatXXm structure conversions because of alignment issues. 2008-01-02 13:46:22 +01:00
Eric Pouech 71f52d54bd richedit: Added support for some message (key, mouse) filtering events. 2008-01-02 13:45:08 +01:00
Dmitry Timoshkov 5a6e0ea46f riched20: Remove a redundant parameter from trace. 2007-12-20 12:17:26 +01:00
Maarten Lankhorst 8e639ec392 riched20: Fix bugs in EM_SETOPTIONS.
Add SELECTIONBAR to mask, and use settings rather then lParam. 2 subtle
bugs that prevent selectionbar from working.
2007-12-18 12:32:55 +01:00
Maarten Lankhorst b81335501f riched20: Implement ECO/EM SELECTIONBAR. 2007-12-17 11:34:40 +01:00
Alexandre Julliard f0c4fdbad9 riched20/tests: Avoid using size_t in traces. 2007-12-14 14:31:35 +01:00
Maarten Lankhorst 4637a4ef49 riched20: Make some functions static. 2007-12-14 12:26:48 +01:00
Alex Villacís Lasso ae7b2c914b riched32: Fix regression in WM_GETTEXTLENGTH on richedit 1.0 emulation. 2007-12-12 13:48:19 +01:00
Michael Stefaniuc 0a92e10640 riched20: Remove the RTFAlloc() wrapper around heap_alloc(). 2007-12-08 19:55:26 +01:00
Michael Stefaniuc 4210cafc04 riched20: Rename the wrappers around HeapAlloc() &Co to use the new standard naming. 2007-12-08 19:54:58 +01:00
Alex Villacís Lasso 42d6cc7cf5 riched20: Invalidate all the text on bogus last selection. 2007-12-08 19:54:23 +01:00
Alexandre Julliard c0b12351e0 Avoid size_t types in traces. 2007-12-07 18:49:18 +01:00
Alex Villacís Lasso f945f16de2 riched20: WM_GETTEXTLENGTH should include CRLF conversions in returned count. 2007-12-07 17:36:01 +01:00
Alex Villacís Lasso 3b636b58ba riched20: EM_GETTEXTLENGTHEX must not count last paragraph break if GTL_USECRLF. 2007-12-07 17:36:01 +01:00
Alex Villacís Lasso 99f0dc4ff4 riched20: WM_GETTEXT should return 0 on overflow but fill buffer anyway. 2007-12-07 17:06:53 +01:00
Alex Villacís Lasso 4545f1944e riched20: EM_GETTEXTEX with GT_USECRLF should not leave a single CR when running out of space. 2007-12-07 17:06:45 +01:00
Alexandre Julliard ad9396302d Removed some unneeded imports. 2007-12-06 21:24:24 +01:00
Alex Villacís Lasso 8ae0eeafc6 riched20: Fix test failure in test_WM_PASTE.
Native riched20 won't obey simple WM_CHAR or WM_KEYDOWN/WM_KEYUP
messages when processing Ctrl-Key keystrokes. Use keybd_event()
instead.
2007-11-08 12:36:35 +01:00
Alex Villacís Lasso 5d8b8cd899 riched20: EM_GETMODIFY should not report modification after WM_SETTEXT (fixes todo_wine). 2007-11-06 13:01:09 +01:00
Alex Villacís Lasso 3cfad1fbf3 riched20: Fix detection of CFE_LINK on WinXP-SP2. 2007-11-05 14:46:35 +01:00
Alex Villacís Lasso 38234fabeb riched20: Allow for Win98 behavior for return value of EM_REPLACESEL. 2007-10-31 14:06:08 +01:00
Alex Villacís Lasso e7296eaeaa riched20: Fix test crash on WinXP-SP2. 2007-10-29 12:08:25 +01:00
Francois Gouget c4b1195c0c Assorted spelling fixes. 2007-10-23 18:20:27 +02:00
Alex Villacís Lasso 469669e629 riched20: 2.0 and higher inserts CRCRLF as space (with tests). 2007-10-22 13:50:13 +02:00
Alex Villacís Lasso f54aa40746 riched20: Single-line control must refuse to insert carriage returns (with tests). 2007-10-19 12:26:25 +02:00
Alex Villacís Lasso 63b12f8602 riched20: Minimal fix for WM_SETTEXT without ES_MULTILINE style. 2007-09-28 10:59:59 +02:00
Francois Gouget d32d8ac862 riched20/tests: Add '\n's to ok() calls. 2007-09-27 20:12:06 +02:00
Alex Villacís Lasso 03f3a40a03 riched20: EM_SETCHARFORMAT must fail and return 0 with TM_PLAINTEXT and SF_SELECTION. 2007-09-27 11:58:52 +02:00
Alex Villacís Lasso be5105e894 riched20: EM_SETCHARFORMAT must return 0, not assert, on invalid struct size. 2007-09-27 11:07:54 +02:00
Alex Villacís Lasso fa5230fb54 riched20: EM_SETCHARFORMAT must return 1 on success, not 0. 2007-09-26 14:40:54 +02:00
Alex Villacís Lasso 00e562735d riched20: Fix WM_GETTEXT to change \r to \r\n. 2007-09-24 13:44:28 +02:00
Alex Villacís Lasso 47316d62bb riched20: Tests show WM_GETTEXT change \r to \r\n. 2007-09-24 13:44:19 +02:00
Clinton Stimpson f34cb461e7 riched20: Only WM_CHAR respects text limit. 2007-09-21 12:05:39 +02:00
Clinton Stimpson f8f07dfe54 riched20: Adjust event mask when sending EN_CHANGE notification. 2007-09-20 16:47:30 +02:00
Clinton Stimpson b095ade908 riched20: Add tests for text limit behavior. 2007-09-20 12:04:23 +02:00
Clinton Stimpson 77fe86620c riched20: Add test for event masks and notifications. 2007-09-19 14:57:56 +02:00
Alex Villacís Lasso 157a0199e9 riched20: Prevent overflow on richedit debug channel. 2007-09-17 13:46:15 +02:00
Lei Zhang 9210defdf7 riched20: Do not pass NULL lParam to ME_ToUnicode for EM_REPLACESEL. 2007-09-11 11:47:54 +02:00
Andrew Talbot b150ea67a9 riched20: Constify some variables. 2007-08-17 12:01:37 +02:00
Andrew Talbot 291dd7a090 riched20: Constify some variables. 2007-08-16 11:35:06 +02:00
Lei Zhang 13ae5f8e8c riched20: Add missing scroll bar update. 2007-08-16 11:35:06 +02:00
Lei Zhang 0d4707c284 riched20: Properly calculate control display height. 2007-08-16 11:35:06 +02:00
Huw Davies 0dcebea44d riched20: Add some test for EM_GETTEXTLENGTHEX and fix the single line edit cases. 2007-08-16 11:10:25 +02:00
Andrew Talbot da68f3943f riched20: Constify some variables. 2007-08-15 10:41:21 +02:00
Andrew Talbot ed93ed9a08 riched20: Constify some variables. 2007-08-14 13:28:05 +02:00
Andrew Talbot 2e2efd448a riched20: Constify some variables. 2007-08-13 12:24:28 +02:00
Aric Stewart c03125a1be riched20: Make richedit control IME aware. 2007-06-28 12:16:12 +02:00
Michael Stefaniuc 0152ec0375 janitorial: Remove superfluous casts of void pointers to other pointer types. 2007-06-27 12:53:50 +02:00
Michael Stefaniuc df01f67175 riched20: Do not use wide character constants. 2007-06-22 12:18:39 +02:00
Lei Zhang 55771014e1 riched20: Add tests for EM_FORMATRANGE. 2007-06-19 11:33:07 +02:00
Francois Gouget 96c337f0a1 Assorted spelling fixes. 2007-06-07 19:24:32 +02:00
Huw Davies 94dfc0e80e riched20: Don't mess with the caret if we don't have focus. 2007-06-06 12:09:53 +02:00
Francois Gouget fa48cb042c Assorted spelling fixes. 2007-05-29 13:47:18 +02:00
Dmitry Timoshkov 3c9e7a7f33 wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility. 2007-05-25 20:37:56 +02:00
Andrew Talbot 5588233957 riched20: Exclude unused headers. 2007-05-18 14:11:33 +02:00
Marcus Meissner ec11114c55 riched32: Avoid implicit time(). 2007-05-07 14:25:20 +02:00
Dmitry Timoshkov 9bde411087 riched20: Add the tests for EM_SETTEXTEX/EM_GETTEXTEX in addition to WM_SETTEXT/WM_GETTEXT, make them pass under Wine. 2007-05-02 14:58:58 +02:00
Clinton Stimpson 552bc81f1e riched20: Set modify state when removing text. 2007-04-26 14:24:52 +02:00
Clinton Stimpson 4152c14df4 riched20: Fix text replacement with text limit. 2007-03-29 21:07:52 +02:00
Dmitry Timoshkov 592b53d0a4 riched20: Split unicode and ansi window procs, handle messages depending on the unicode flag.
Add a hack for WM_GETTEXT in RichEdit20W class when running in win9x emulation mode.
2007-03-22 15:47:25 +01:00
Dmitry Timoshkov 11e01b17de riched20: Add a test that shows that under Win9x RichEdit20W windows are not unicode, but always expect to see unicode input. 2007-03-21 15:55:30 +01:00
Jan Zerebecki 58f37a1251 riched20: Add DebugInfo to critical sections. 2007-03-12 13:39:14 +01:00
Jason Green 2aa8463a94 riched20: If outside of the richedit window, return earlier.
Prevents a crash when selecting text outside of a richedit control box.
2007-02-15 11:21:45 +01:00
Marcus Meissner ddb5720118 riched20: Removed more dead code. 2007-02-09 11:48:46 +01:00
Marcus Meissner 886b15e723 riched20: Fixed wrong condition (Coverity). 2007-02-06 14:59:26 +01:00
Matt Finnicum 7eabbec632 riched20: Create undos in StreamIn at the right times. Adds tests for when StreamIn should be undoable. 2007-01-25 11:06:36 +01:00
Matt Finnicum 306013d4e5 riched20: Remove excessive traces from reader.c. 2007-01-25 11:06:28 +01:00
Andrew Talbot 166b3a6cdb riched20: Declare some functions static. 2007-01-24 12:31:29 +01:00
Matt Finnicum f12e6232a2 riched20: Use CharFromPos instead of FindPixelPos in LinkNotify so it accounts for scrolling. 2007-01-24 12:14:11 +01:00
Matt Finnicum dbcf2e391c riched20: Implement EM_LIMITTEXT and some simple tests. 2007-01-24 12:14:02 +01:00
Joel Parker 2319999a05 Remove redundant semicolons for ANSI compatibility. 2007-01-17 11:58:15 +01:00
Clinton Stimpson a065d0f68d riched20: Fix crash undoing a paste. 2007-01-12 11:25:42 +01:00
Clinton Stimpson bf86302e19 riched20: Fix modification state for several operations. 2007-01-11 12:04:46 +01:00
Lei Zhang 581321d420 riched20: Move EM_EXSETSEL fix into ME_SetSelection. 2006-12-05 11:37:46 +01:00
Lei Zhang c05bcabe9f riched20: Fixes and additional conformance tests for EM_EXSETSEL. 2006-12-04 12:23:32 +01:00
Dmitry Timoshkov a5992939d4 riched20: Make some data const. 2006-11-29 12:44:34 +01:00
Matt Finnicum e864f2f2c3 riched20: Make EM_SETPARAFORMAT use ME_RewrapRepaint instead of ME_UpdateRepaint. 2006-11-28 12:14:43 +01:00
Matt Finnicum d7aa81bdfb riched20: Make EM_SETCHARFORMAT call ME_RewrapRepaint instead of ME_UpdateRepaint. 2006-11-28 12:14:36 +01:00
Matt Finnicum 26ba1559b0 riched20: Make WM_SETFONT call RewrapRepaint instead of UpdateRepaint. 2006-11-28 12:14:28 +01:00
Matt Finnicum 3e27436003 riched20: EM_EXLIMITTEXT: ignore wParam and properly cast lParam. 2006-11-28 12:14:21 +01:00
Matt Finnicum 807546ee59 riched20: Make ME_StreamIn create undos properly. 2006-11-28 12:14:11 +01:00
Clinton Stimpson 78584b6ee1 riched20: Only send EN_CHANGE when it is supposed to be sent. 2006-11-27 13:46:02 +01:00
Mike McCormack 5b670b68f2 riched20: Simplify an array size calculation. 2006-11-21 12:16:10 +01:00
Clinton Stimpson 4b292b0cb5 riched20: Fix key handling in dialogs. 2006-11-15 12:24:54 +01:00
Mike McCormack c6118c34b2 riched20: Flush the clipboard before exiting the test. 2006-11-10 11:36:36 +01:00
Mike McCormack c6e25b54c9 riched20: Add missing void to parameter list. 2006-11-10 11:36:16 +01:00
Mike McCormack 6ea5a664dd riched20: Remember to close windows after tests. 2006-11-10 11:36:08 +01:00
Mike McCormack bb1f8edcc2 riched20: Fix a memory leak. 2006-11-10 11:35:59 +01:00
Mike McCormack 0f6c58c113 riched20: Set the correct number of initialized cursors. 2006-11-10 11:35:53 +01:00
Mike McCormack 32f044c4cf riched20: Fix an uninitialized variable. 2006-11-10 11:35:48 +01:00
Mike McCormack 1e85e7c7c2 riched20: Fix a leak in the undo stack. 2006-11-06 12:23:50 +01:00
Mike McCormack b7501a3b0c riched20: Fix one more memory leak. 2006-11-06 12:23:46 +01:00
Mike McCormack d89c46748f riched20: Don't access memory after freeing it. 2006-11-06 12:23:42 +01:00
Mike McCormack 01e8eaefdc riched20: Fixed memory leaks. 2006-11-06 12:23:33 +01:00
Mike McCormack b5c031b160 riched20: Initialize and free the RTF lookup table in DllMain to avoid memory leaks. 2006-11-02 12:24:55 +01:00
Mike McCormack 14ec1d0c4c riched20: Use WARN() not ERR() on unknown tokens. 2006-11-02 12:24:33 +01:00
Mike McCormack 8939587b19 riched20: Create macro functions for allocating and freeing memory. 2006-10-24 11:44:53 +02:00
Mike McCormack e971e0fb89 riched20: Make sure to use GlobalAlloc with GlobalFree. 2006-10-24 11:44:36 +02:00
Hans Leidekker 177350d087 riched20: Win64 printf format warning fixes. 2006-10-14 20:16:56 +02:00
Mike McCormack 9eda99c0bb riched20: Don't crash if a colour isn't found. 2006-10-09 20:38:11 +02:00
Michael Stefaniuc 86bb053cf8 riched20/tests: Win64 printf format warning fixes. 2006-10-09 12:55:20 +02:00
Francois Gouget 9197f5c3df riched20: Tweak a buffer declaration to fix the compilation with Visual C++. 2006-10-02 11:54:46 +02:00
Michael Stefaniuc 85ce5117c5 Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int. 2006-09-29 16:08:30 +02:00
Andrew Talbot b038fa18ee riched20: Cast-qual warning fix. 2006-09-26 11:40:06 +02:00
Alexandre Julliard 32ab895e46 makefiles: Generate the dependencies line to avoid some code duplication. 2006-09-14 09:38:16 +02:00
Matt Finnicum abecd9e393 riched20: Rewrite of scrolling and some redrawing code.
Replaces duplicated scrolling code with re-usable functions.
Removes excessive boundary checking on scroll code, since that's done
in the scrollbar control anyways.
Properly separates repaint calls based on what has changed.
Send EN_UPDATE and EN_CHANGE at the right places.
Only call EnsureVisible on changes, not all repaints.
2006-09-11 11:29:42 +02:00
Hippocrates Sendoukas 0ad5638bf1 riched20: WM_CONTEXTMENU fix for custom context menus. 2006-09-07 16:06:56 +02:00
Hippocrates Sendoukas 0134e8f7d0 riched20: ME_SetSelection -1 to -1 behavior fix. 2006-09-07 16:06:14 +02:00
Brian Chang 1f2eb859ac riched20: EM_EXSETSEL fixes and conformance tests. 2006-08-28 17:48:23 +02:00
Alexandre Julliard 5cf75e615a makefiles: Only run test and documentation targets in directories that need them. 2006-08-28 13:37:44 +02:00
Matt Finnicum 0d15a6ae15 riched20: Remove two testing fixme's that were accidentally committed. 2006-08-28 11:36:49 +02:00
Clinton Stimpson bbd05a4644 riched20: Add tests for EM_GETMODIFY. 2006-08-23 20:10:50 +02:00
Matthew Finnicum 9b47add3bf riched20: Make EM_EXLINEFROMCHAR handle special case of lParam == -1. 2006-08-22 11:57:40 +02:00
Matt Finnicum cba7238364 riched20: Swap two lines that were in wrong order / caused notification not to be sent. 2006-08-21 12:08:39 +02:00
Stefan Huehner 998e256c82 Fix some -Wstrict-prototype warnings () -> (void). 2006-08-21 12:06:26 +02:00
Matt Finnicum e73890a72c riched20: Send EN_LINK notifications. Properly underline / color links. 2006-08-17 11:44:12 +02:00
Phil Krylov 2aed652c01 riched20: Accept RTF header without a version number. 2006-08-11 11:56:07 +02:00
Phil Krylov d360f1db51 riched20: Accept RTF group tokens inside colortbl destination. 2006-08-11 11:55:48 +02:00
Matt Finnicum 22bc001c08 riched20: Add conformance tests for WM_SETFONT. 2006-08-10 11:30:03 +02:00
Ken Myers 13e4ddd2df riched20: Implement EM_EXLIMITTEXT, EM_GETLIMITTEXT and tests. 2006-08-10 11:28:43 +02:00
Clinton Stimpson ea755999f1 riched20: Fix crash with NULL lParam in EM_SETTEXTEX. 2006-08-10 10:54:27 +02:00
Matt Finnicum 658c0cdd1a riched20: Implement EM_SHOWSCROLLBAR, EM_SETSCROLLPOS, ES_DISABLENOSCROLL, and WS_VSCROLL. 2006-08-09 11:20:43 +02:00
Matt Finnicum cba3b122ed riched20: Modify ME_CharFromPoint to work properly with password controls. 2006-08-08 19:35:44 +02:00
Krzysztof Foltman bad844d0a9 riched20: New, clean, simple selection repaint logic - should fix all outstanding refresh issues. 2006-08-07 19:59:58 +02:00
Krzysztof Foltman 3a0c15e939 riched20: Ensure text is wrapped before invalidating selection. 2006-08-07 13:09:27 +02:00
Matt Finnicum 2b92bf78d1 riched20: Implement EM_SETPASSWORDCHAR and EM_GETPASSWORDCHAR. 2006-08-05 11:25:34 +02:00
Krzysztof Foltman f07740b28b riched20: Make EM_LINELENGTH work correctly for non-final paragraphs containing exactly one screen line. 2006-08-03 22:27:57 +02:00
Krzysztof Foltman 9667a891ff riched20: Make EM_GETLINE work properly in 1.0 emulation mode. 2006-08-03 22:27:45 +02:00
Krzysztof Foltman 5f32291ace riched20: Ctrl+A should be allowed in read-only controls too. 2006-08-03 22:27:36 +02:00
Andrew Talbot 3f8e2efc18 riched20/tests: Write-strings warnings fix. 2006-08-03 22:22:48 +02:00
Alexandre Julliard 344389d6d5 riched20: Fixed handling of window private data for Win64. 2006-08-03 18:20:01 +02:00
Krzysztof Foltman 6f15b54ade riched20: Handle incorrect calls of window procedure. 2006-08-03 18:18:14 +02:00
Krzysztof Foltman 9dd276bfd1 riched20: Added short descriptions to functions in run.c, just in case
anybody had any doubts about what they actually do.
2006-08-02 22:01:10 +02:00
Thomas Kho 3f19ffe809 riched20: Implement EM_GETLINE. 2006-07-31 17:18:56 +02:00
Andrew Talbot 0c96a42a59 riched20: Write-strings warnings fix.
The string members of the FINDTEXT and FINDTEXTEX structs are declared
constant in the SDK.
2006-07-24 12:57:32 +02:00