Commit Graph

278 Commits

Author SHA1 Message Date
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
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 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
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
Clinton Stimpson f34cb461e7 riched20: Only WM_CHAR respects text limit. 2007-09-21 12:05:39 +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
Lei Zhang 0d4707c284 riched20: Properly calculate control display height. 2007-08-16 11:35:06 +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
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
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
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
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
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
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 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
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
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 4b292b0cb5 riched20: Fix key handling in dialogs. 2006-11-15 12:24:54 +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 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 8939587b19 riched20: Create macro functions for allocating and freeing memory. 2006-10-24 11:44:53 +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
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
Brian Chang 1f2eb859ac riched20: EM_EXSETSEL fixes and conformance tests. 2006-08-28 17:48:23 +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
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
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
Krzysztof Foltman bad844d0a9 riched20: New, clean, simple selection repaint logic - should fix all outstanding refresh issues. 2006-08-07 19:59:58 +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
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
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
Krzysztof Foltman d17591fdf9 riched20: WM_SETFONT support. 2006-07-17 13:44:04 +02:00
Krzysztof Foltman 02bbf06c43 riched20: Fix message range for get_msg_name. 2006-06-22 12:29:04 +02:00
Francois Gouget 11ae0f6386 Assorted spelling fixes. 2006-06-16 11:32:29 +02:00
Alexandre Julliard fe4c4780eb riched20: Fix an uninitialized variable bug.
Mark todo a test that depended on the bug to succeed.
2006-06-12 16:09:50 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Matt Finnicum a379ac9ef5 riched20: Implement EM_SETUNDOLIMIT and its conformance tests. 2006-05-16 12:41:21 +02:00
Michael Jung 0dec18a3d6 riched20: Don't append '\r' to the last paragraph in EM_GETTEXTEX. 2006-05-08 17:39:59 +02:00
Phil Krylov 4e796854af riched20: Allow inheriting table cell definitions from previous table row.
Allow inheriting of table cell definitions from a previous table row
when the current table row does not contain a \trowd, only an \intbl.
2006-04-12 11:17:25 +02:00
Lei Zhang b4ee2ad0e4 riched20: Implements FR_WHOLEWORD for EM_FINDTEXT.
Add FR_WHOLEWORD to riched20's EM_FINDTEXT and fix a couple small bugs
introduced in earlier patches for EM_FINDTEXT. Additional test cases
have been added to check for corner cases.  Also improve input
validation.
2006-03-21 20:11:04 +01:00
Alexandre Julliard c9cc7e33ff Fixed some compiler warnings on old gcc versions. 2006-03-02 18:03:32 +01:00
Brandon Woodmansee dee813b5ff riched20: Implement EM_AUTOURLDETECT & EM_GETAUTOURLDETECT. 2006-03-01 20:27:43 +01:00
Andrew de los Reyes cd024942af riched20: Implement EM_SCROLL and its tests. 2006-02-27 12:21:11 +01:00
Hamza Lakhani 6979719a90 riched20: EM_HIDESELECTION implementation. 2006-02-27 12:20:56 +01:00
Phil Krylov 69ae27ed2f riched20: Added a comment to make life easier. 2006-02-24 21:10:13 +01:00
Kevin Koltzau 53b74b0d56 riched20: Call GetClipboardData callback on cut/copy. 2006-02-23 11:52:03 +01:00
Kevin Koltzau 27e2dcff1d riched20: EM_GETOLEINTERFACE is not a stub. 2006-02-23 11:51:14 +01:00
Kevin Koltzau 58b2995311 riched20: Store reference to editor in ole interface. 2006-02-23 11:14:41 +01:00
Kevin Koltzau a13245847f riched20: Add IDataObject implementation and use it for cut/copy. 2006-02-22 22:23:49 +01:00
Brian Chang 8f6ba475e8 riched20: EM_SETOPTIONS/EM_GETOPTIONS base implementation.
ECO_READONLY implemented and tested.
2006-02-22 22:14:38 +01:00
Lei Zhang 805dc74809 riched20: Implement FR_MATCHCASE for EM_FINDTEXT.
Removed todo flag from affected FR_MATCHCASE tests.
2006-02-22 11:33:10 +01:00
Lei Zhang 0014e50465 riched20: Fix for EM_FINDTEXT input validation.
Fixed the cpMin/cpMax validation code for EM_FINDTEXT.
Removed todo flag from affected EM_FINDTEXT tests.
2006-02-21 11:27:51 +01:00
Roger Hoang b03c70a845 riched20: Implemented EM_SETTEXTMODE options TM_RICHTEXT and TM_PLAINTEXT
and their tests.
2006-02-20 20:29:44 +01:00
Thomas Kho bfb3c756eb riched20: Implement EM_SCROLLCARET and EM_GETSCROLLPOS. 2006-02-16 19:33:19 +01:00
Thomas Kho 087af502ea riched20: Extend EM_FINDTEXT conformance tests and fix 2 problems they expose. 2006-02-15 13:37:31 +01:00
Phil Krylov 9761b457ce riched20: Support RTF text in WM_SETTEXT. 2006-02-14 17:38:57 +01:00
Thomas Kho caffa53227 riched20: Fixed bounds error when finding text forward. 2006-02-11 18:39:17 +01:00
Kevin Koltzau 2d0ad0944c riched20: Don't use EM_STREAMIN for paste. 2006-02-06 11:26:34 +01:00
Kevin Koltzau 374106d136 riched20: Don't use EM_STREAMOUT for copy/cut. 2006-02-05 13:05:00 +01:00
Phil Krylov 9b1beea7d7 riched20: Empty undo stack after EM_STREAMIN without SFF_SELECTION flag. 2006-02-05 12:18:55 +01:00
Phil Krylov 08bf7180f3 riched20: Initial support for simple tables. 2006-02-04 17:01:01 +01:00
Kevin Koltzau fc2ce6779e riched20: Handle context menu. 2006-02-02 13:18:20 +01:00
Kevin Koltzau 7f84cc48f3 riched20: Implement EM_SETOLECALLBACK. 2006-02-01 13:05:40 +01:00
Maarten Lankhorst 460e2ad7f6 riched20: Implement CreateTextServices.
Implement a stub interface that CreateTextServices returns.
2006-02-01 12:31:40 +01:00
Phil Krylov f0d6519ef5 riched20: Added support for hidden text. 2006-01-31 13:01:26 +01:00
Maarten Lankhorst 7b6f85474e riched20: Make CreateTextServices use ITextHost. 2006-01-30 18:16:05 +01:00
Phil Krylov ecbccb9763 riched20: EM_STREAMIN should send a EN_UPDATE notification. 2006-01-26 13:28:35 +01:00
Phil Krylov bb9631b196 riched20: Selection painting fixes. 2006-01-26 13:27:28 +01:00
Dmitry Timoshkov 57a579ffcd Make more arrays const. 2006-01-24 14:00:32 +01:00
Phil Krylov 6e3a72549a riched20: Select word on double click. 2006-01-13 13:54:11 +01:00
Phil Krylov e0fc772889 riched20: TODO list update. 2006-01-13 13:53:42 +01:00
Phil Krylov 49eecf5128 riched20: Initial support for word break callback procedures. 2006-01-12 11:54:57 +01:00
Phil Krylov 6818762a6e riched20: Reduced screen flicker by using proper update region invalidation. 2006-01-10 20:41:23 +01:00
Phil Krylov 194eeaab7d riched20: Fixed calculation of left indent and first indent paragraph
properties.
2006-01-09 17:12:51 +01:00
Ulrich Czekalla 0f55ef3bef riched20: Reset selection when text is reset. 2005-12-14 10:50:04 +01:00
Cihan Altinay 2a1a0cf22d riched20: register ListBox & ComboBox classes
Partially implement REExtendedRegisterClass() to register missing
window classes so that applications relying on them don't get
confused.
2005-12-05 12:48:45 +01:00
Phil Krylov fe2951daaa Cache background color brush instead of recreating it at each screen
update.
2005-11-03 11:33:24 +00:00
Phil Krylov a91ba787e2 Added support for EM_REQUESTRESIZE message, EN_REQUESTRESIZE
notification, and ENM_REQUESTRESIZE event mask.
2005-11-03 09:52:29 +00:00
Krzysztof Foltman 6650abcdc4 - Bugfix in EM_GETTEXTEX
- Additional traces helpful in diagnosing similar (text
  retrieval-related) bugs.
2005-10-19 19:22:11 +00:00
Krzysztof Foltman 07c4dc461e Fix unnecessary (and harmful) repeated statement. 2005-10-13 13:44:14 +00:00
Krzysztof Foltman 8978549722 Removed buffer overrun error (incrementing output pointer one time too
much in non-CRLF mode) making KeyNote fail to install.
2005-10-10 19:52:59 +00:00
Krzysztof Foltman 822ae486cd The previous implementation was a workaround for off-by-one bug in
ME_RunOfsFromCharOfs, this one relies on correct behavior of that
function introduced by the previous patch.
2005-10-10 18:00:52 +00:00
Krzysztof Foltman fd1d4b7c2b Fix a bug in 1.0 emulation mode in EM_LINELENGTH (which broke PTE
installer).
2005-10-10 10:44:01 +00:00
Krzysztof Foltman 8f4042c574 Fix 1.0 emulation mode in ME_GetTextW. 2005-10-10 10:30:25 +00:00
Krzysztof Foltman e098edcdcb - Remove another potential sources of infinite loops caused by EOF in
the middle of the font and color tables.
- Closing brace on text level is treated as EOF (effectively
  protecting the control from trash after the end of RTF).
- Removed misleading comment about incomplete buffers (I was
  definitely wrong).
2005-10-03 18:45:39 +00:00
Krzysztof Foltman 025a1a5445 Implemented EM_GETFIRSTVISIBLELINE and EM_POSFROMCHAR (basic
suboptimal implementation, can be optimized to skip whole paragraphs
later if it's useful at all).
2005-10-03 11:03:48 +00:00
Krzysztof Foltman a8eb60e5ee Fixed another case of misunderstanding MSDN wrt StreamInProc, causing
license text to be truncated in Picasa installer (as well as some
other programs, especially those that display long texts with NSIS).
2005-10-03 10:14:28 +00:00
Krzysztof Foltman ed8379d1ad - Reimplementation of EM_LINELENGTH.
- Some attempt at documentation of double-linked list of
  ME_DisplayItem's.
2005-09-29 10:30:50 +00:00
Rein Klazes d7d8bbfc04 When scrolling, first update the new position of the control before
calling UpdateWindow().
2005-09-26 16:42:18 +00:00
Alexandre Julliard d559fbd803 Fixed gcc 4.0 warnings. 2005-09-12 20:30:37 +00:00
Phil Krylov ba69174042 Added support for backward search to RichEdit EM_FINDTEXT[AW],
EM_FINDTEXTEX[AW] message handler.
2005-08-23 09:32:55 +00:00
Phil Krylov 9527739112 Fixed EM_SETEVENTMASK RichEdit message handler to return old event
mask.
2005-08-22 18:56:21 +00:00
Phil Krylov 4c9f013f8b Added handling of deff RTF control word. 2005-08-22 10:06:08 +00:00
Phil Krylov 6e60746b70 Added common keyboard shortcuts for Select All, Undo, Redo, Cut, Copy
and Paste to RichEdit.
2005-08-22 09:20:06 +00:00
Phil Krylov f1184b466d Added EM_SETRECT, EM_SETRECTNP, and WM_SETREDRAW message handling.
Added support for GT_SELECTION flag in EM_GETTEXTEX handler.
2005-08-15 09:47:14 +00:00
Phil Krylov c2cb39b817 Implemented EM_CHARFROMPOS RichEdit message. 2005-07-26 10:33:00 +00:00
Phil Krylov 8759b5fead Added EM_GETZOOM and EM_SETZOOM RichEdit message handlers. 2005-07-24 16:17:43 +00:00
Phil Krylov 92890e2372 Added some missing but useful items to the TODO list. 2005-07-22 18:26:46 +00:00
Phil Krylov 4605b9558f Added some useful TRACEs. 2005-07-21 11:58:24 +00:00
Phil Krylov b5a0433231 Allow NULL parameter for WM_SETTEXT in RichEdit. 2005-07-21 11:28:39 +00:00
Phil Krylov a0edd25e43 Implemented EM_LINELENGTH RichEdit message. 2005-07-21 11:01:47 +00:00
Phil Krylov 84bb372239 Added emulation of RichEdit 1.0 behaviour when the 1.0 window class is
being used. This emulation (introduced in M$ RichEdit 3.0) counts
paragraph endings as 2 characters (CR+LF) instead of 1 (CR).
2005-07-21 10:33:32 +00:00
Daniel Remenak 68709f1c41 Basic handling of EM_SETTEXTEX. 2005-07-20 10:28:44 +00:00
Felix Nawothnig af4009d2fd Check structure size and fix return values in EM_GETCHARFORMAT. 2005-07-11 10:22:33 +00:00
Phil Krylov 5067e0fc2a Fixed EM_LINEINDEX handler and added EM_LINEFROMCHAR handler. 2005-07-06 11:12:10 +00:00
Phil Krylov e467a5309b Implemented EM_EXLINEFROMCHAR, EM_LINEINDEX, EM_FINDTEXT,
EM_FINDTEXTW, EM_FINDTEXTEX, and EM_FINDTEXTEXW messages.
2005-07-06 10:32:59 +00:00
Stefan Huehner 2440dcfe88 Fix -Wmissing-declarations warnings. 2005-07-05 12:49:14 +00:00
Phil Krylov eb1c6657f7 Implemented EM_GETLINECOUNT RichEdit message. 2005-06-30 18:10:22 +00:00
Aric Stewart aa2e3a4f8a Implementation for EM_GETTEXTEX. 2005-06-29 19:21:34 +00:00
Phil Krylov 44bc9f7a0b Fixed a comment about EM_STREAMIN. 2005-06-28 19:12:32 +00:00
Phil Krylov b1f61804d7 Implemented EM_GETTEXTLENGTHEX RichEdit message. 2005-06-28 13:51:32 +00:00
Stefan Huehner 863a4b1488 Fix some more -Wstrict-prototypes warnings. 2005-06-21 20:53:13 +00:00
Vitaly Lipatov 86f575cdc1 Allow null pointers for EM_GETSEL message (as MSDN says). 2005-06-20 11:42:38 +00:00
Robert Shearman 65284aab20 Richedit classes should be global. 2005-06-13 10:01:32 +00:00
Krzysztof Foltman b16f330197 - added support for \ulnone (turning underline off)
- support for basic subscript and superscript
- untested support for text offset
2005-06-12 10:43:24 +00:00