Commit Graph

1328 Commits

Author SHA1 Message Date
Alex Henrie e60b276698 riched20: Don't call UpdateWindow after setting the background color.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-14 12:10:15 +09:00
Gerald Pfeifer 8fb1802b9c riched20: Properly clear all of a buffer of type WCHAR.
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-14 12:09:01 +09:00
Francois Gouget ca147f51f0 riched20: Fix a spelling error in a dump message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 21:37:34 +09:00
Michael Stefaniuc 9b4b75312a riched20: Use wine_dbgstr_rect() to trace a RECT.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 18:42:12 +09:00
Piotr Caban 3dbd467162 riched20: Don't allow negative margins in ME_WrapTextParagraph.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 22:42:58 +09:00
Piotr Caban d11c758faf riched20/tests: Add negative indentation display test.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 22:42:55 +09:00
Adam Buchbinder 20323e3f11 riched20: Implement ITextRange::ScrollIntoView.
This only implements bStart = tomStart, but that seems like the most
common use case.

Signed-off-by: Adam Buchbinder <abuchbinder@google.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-29 19:31:35 +09:00
Huw Davies a2c57a2a8a riched20: Set the base embedding level for RTL paragraphs.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-11 20:22:34 +09:00
Huw Davies ac5edd1b6b riched20: \pard resets the reading direction.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-11 20:22:31 +09:00
Michael Stefaniuc a58822dba4 riched20: Use SetRectEmpty() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-08 21:29:44 +09:00
Huw Davies da7c4f9753 riched20: Add handling for a few more special characters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 01:50:13 +09:00
Huw Davies 372a16af63 riched20: Don't apply paragraph formatting until the end of paragraph.
Specifically this means that if the final paragraph does not end in
a trailing \par, then new formatting is not applied to that paragraph.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 01:50:13 +09:00
Huw Davies aec411ed3e riched20/tests: wAlignment should be compared to the PFA_ values.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 01:50:12 +09:00
Huw Davies 9a934a3198 riched20/tests: Actually copy something to the clipboard.
Previously this test was relying on a quirk - pasting with an empty
clipboard generated an undo event.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 01:50:12 +09:00
Nikolay Sivov bf1cdf58ce riched20/tests: Use todo_wine_if() in tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 23:50:15 +09:00
Jactry Zeng 684965b866 riched20: Print boundary for ME_CheckCharOffsets only when richedit_check channel was opened.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-08 00:47:13 +09:00
Nikolay Sivov 0db7cb6002 riched20: Preserve higher bits of tabstop values (Coverity).
Bits 24-31 are reserved for tab alignment and tab leader style,
writer supports thatl.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-30 08:07:05 +01:00
Nikolay Sivov c5b68d1db2 riched20: Initialize wEffects field before setting bits in it (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-30 08:06:56 +01:00
Jactry Zeng bb5974987e riched20/tests: Add tests for WM_GETTEXTLENGTH.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:32:13 +01:00
Jactry Zeng 30049ba798 riched20/tests: Test EM_GETSELTEXT with multibyte character.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:32:13 +01:00
Jactry Zeng fb304e0e4e riched20/tests: Test EM_GETTEXTRANGE with multibyte character.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:32:13 +01:00
Jactry Zeng de0add976d riched20/tests: Add multibyte character tests for selection.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 19:50:29 +01:00
Jactry Zeng 99f0f6b91b riched20/tests: Test EM_LINELENGTH with multibyte character.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 19:50:28 +01:00
Jactry Zeng d5c587b1c2 riched20/tests: Add return tests for EM_SETTEXTEX.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-07 21:29:34 +09:00
Jactry Zeng f52ae04585 riched20/tests: Test EM_SETTEXT and EM_REPLACESEL with multibyte character.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-07 21:29:34 +09:00
Jactry Zeng 7365f557b6 riched20/tests: Test EM_REPLACESEL with rtf stream.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:51 +09:00
Nikolay Sivov 91ed2a81c1 riched20: Fix a memory leak on error path (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:16 +09:00
Huw Davies b241276f50 riched20: Maintain a list of styles and reuse them if possible.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-10 11:50:08 +09:00
Huw Davies f47aab6167 riched20: Release the font cache when changing the default style.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-10 11:50:05 +09:00
Huw Davies bb165d22e0 riched20: Store the font cache entry rather than the HFONT.
This also removes an incorrect DeleteObject() from DestroyStyle().

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-10 11:50:01 +09:00
Jactry Zeng 6401ab45c0 riched20: Implement alignment styles support.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 21:59:07 +09:00
Jactry Zeng f8e73e370d riched20: Make paragraph in make_para independently.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 19:22:44 +09:00
Jactry Zeng dc6b2853f5 riched20: Set pStream->written in ME_StreamOutFlush.
Superseded patch 115907.

ChangeLog:
- Add tests.

Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 19:22:43 +09:00
Huw Davies 2d23a95c96 riched20: Add support for the \shppict destination.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:27 +09:00
Huw Davies cfc8914200 riched20: Rewrite the picture destination parser to handle embedded groups.
Since almost every line of ME_RTFReadPictGroup() changed, I took the
opportunity to re-format it.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:27 +09:00
Nikolay Sivov 20f4a9ff7b riched20: Handle invalid HFONT values passed to WM_SETFONT.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2015-10-05 22:27:12 +09:00
Jactry Zeng 515b4a9725 riched20: Repaint paragraph after undo format setting of the paragraph. 2015-09-04 17:45:44 +09:00
Jactry Zeng d62dd46516 riched20: Implement EM_SETFONTSIZE. 2015-08-27 21:43:46 +09:00
Andrey Gusev 5cdcd4493f Assorted spelling and typos fixes. 2015-08-18 15:00:13 +09:00
Francois Gouget f8a7d6ed74 Assorted spelling fixes. 2015-08-07 23:50:48 +09:00
Huw Davies 7a3c9889e3 riched20: Free the script cache when updating the default style. 2015-07-01 22:56:40 +09:00
Michael Stefaniuc b05cc8c0a6 riched20: Print the debug string and not the pointer to it. 2015-06-30 17:40:28 +09:00
Nikolay Sivov 060cffc1b3 riched20: Improve tracing for unimplemented selection methods. 2015-06-18 21:41:02 +09:00
Alex Henrie af19e64017 riched20: Fix link notification conditions and add tests. 2015-06-18 17:11:05 +09:00
Nikolay Sivov bb82d669d1 riched20/tests: Remove explicit todo flag values from static test data. 2015-06-17 15:44:38 +09:00
Nikolay Sivov fd4affc0cb riched20/tests: Some more EM_SETSEL tests. 2015-06-17 15:44:36 +09:00
Nikolay Sivov 3357fdd70a riched20: Implement Expand for tomStory case. 2015-06-17 15:44:34 +09:00
Nikolay Sivov b0db959ec9 riched20: Improve tracing for unimplemented range methods. 2015-06-16 20:00:37 +09:00
Huw Davies 17f273360a riched20: Append a final \par when writing the whole buffer. 2015-06-09 14:47:30 +09:00
Nikolay Sivov 3681a59c29 riched20: Improve error handling in SetFont (Coverity). 2015-06-08 15:48:04 +09:00
Nikolay Sivov 2688363714 riched20: Handle range method failures in InRange (Coverity). 2015-06-08 15:48:00 +09:00
Nikolay Sivov 3889dadcca riched20: Handle range method failures in IsEqual (Coverity). 2015-06-08 15:47:57 +09:00
Nikolay Sivov 5f933018a2 riched20: Implement GetDuplicate() for selection. 2015-06-08 15:47:52 +09:00
Nikolay Sivov 9c6bcec509 riched20: Implement GetStoryLength(). 2015-06-08 15:47:48 +09:00
Nikolay Sivov 17a50f39b2 riched20/tests: Fix a BSTR leak (Valgrind). 2015-06-04 15:55:49 +09:00
Nikolay Sivov 2a2446abdb riched20: Return 0x0 size for NULL objects. 2015-06-03 19:29:49 +09:00
Nikolay Sivov b75cd7e2f0 riched20: Avoid extra host calls during CreateTextServices(). 2015-06-02 20:53:44 +09:00
Nikolay Sivov 0b94369bb7 riched20: Reduce code duplication in WM_SETTEXT/WM_CREATE handler. 2015-06-02 20:53:44 +09:00
Nikolay Sivov a50e0d71a4 riched20/tests: Don't use global vars for host/textservices. 2015-06-02 20:53:43 +09:00
Nikolay Sivov f0c5086618 riched20: Create selection instance first time it's requested. 2015-06-01 14:52:30 +09:00
Nikolay Sivov 41687841bc riched20: Properly implement GetClientSite(). 2015-06-01 14:52:28 +09:00
Nikolay Sivov b620fb6e85 riched20: Move data linking text range to IRichEditOle in separate structure. 2015-06-01 14:52:25 +09:00
Nikolay Sivov 383dbeedd7 riched20/tests: Small test for GetClientSite(). 2015-06-01 14:52:22 +09:00
Nikolay Sivov b2e13bc6e7 riched20: Implement GetText() for regular range. 2015-06-01 14:52:17 +09:00
Nikolay Sivov dd8287e9e8 riched20/tests: Test more return values and released cases. 2015-05-29 15:00:44 +09:00
Nikolay Sivov 054eecb2bf riched20: Implement SetFont(). 2015-05-29 15:00:38 +09:00
Nikolay Sivov d178e7ba68 riched20: Added GetStoryType(). 2015-05-29 15:00:32 +09:00
Nikolay Sivov b4959154ca riched20: Switch font unit is not allowed. 2015-05-29 15:00:27 +09:00
Nikolay Sivov eecb757248 riched20: Convert from twips to points when tomUsePoints is used. 2015-05-29 15:00:22 +09:00
Nikolay Sivov 6a335ca5da riched20: A bit more tests for GetChar(), improve tracing. 2015-05-28 14:21:07 +09:00
Nikolay Sivov cb095a82a2 riched20: Implement Select(). 2015-05-28 14:21:06 +09:00
Nikolay Sivov 6ccfde327a riched20: Implement IsEqual() for ranges. 2015-05-28 14:21:04 +09:00
Nikolay Sivov cebee9bd71 riched20: Implement InRange(). 2015-05-28 14:21:02 +09:00
Nikolay Sivov c1ce95dc96 riched20: Implement GetPara() for selection range. 2015-05-28 14:21:00 +09:00
Nikolay Sivov 251e168590 riched20: Implement SetText() for selection range. 2015-05-27 14:31:40 +09:00
Nikolay Sivov d27234617c riched20: Implement SetText for regular range. 2015-05-27 14:31:40 +09:00
Nikolay Sivov aa37c179ad riched20: Implement SetName(). 2015-05-27 14:31:40 +09:00
Nikolay Sivov 43a80b8023 riched20: Implement font property setters. 2015-05-27 14:31:40 +09:00
Nikolay Sivov 38f6919312 riched20: Support setting boolean font properties. 2015-05-26 18:45:35 +09:00
Nikolay Sivov 64faf03cf3 riched20: Initial support for changing font properties. 2015-05-26 18:45:35 +09:00
Nikolay Sivov 1c0cf0efb3 riched20: Implement tomTrackParms/tomCacheParms. 2015-05-26 18:45:34 +09:00
Nikolay Sivov 0cf3c2f3a1 riched20: Support ITextFont instances detached from a range. 2015-05-26 18:45:34 +09:00
Nikolay Sivov c5a029f82e riched20/tests: Initial tests for font duplication behavior. 2015-05-25 21:43:18 +09:00
Nikolay Sivov 95074af8a8 riched20/tests: Basic test for Delete(). 2015-05-25 21:43:18 +09:00
Nikolay Sivov b43a0e1175 riched20/tests: Some tests for GetText(). 2015-05-25 21:43:18 +09:00
Nikolay Sivov f4438f1ee5 riched20: Implement Start/End properties for ranges. 2015-05-25 21:43:17 +09:00
Nikolay Sivov 81fc69d7e6 riched20: Added IDispatch support. 2015-05-25 21:43:17 +09:00
Nikolay Sivov 1f55764dfc riched20: Added some tom* constants used with ITextFont::Reset(). 2015-05-22 18:04:41 +09:00
Huw Davies 008ceb662d riched20/tests: Fix test on 64-bit. 2015-05-22 18:04:25 +09:00
Nikolay Sivov fd806a65a5 riched20/tests: Added tests for ITextFont getters on detached font. 2015-05-21 19:04:00 +09:00
Nikolay Sivov 6fcb092f0f riched20/tests: Test against proper LCID. 2015-05-21 19:03:50 +09:00
Nikolay Sivov e6e16eb632 riched20: Implement GetName() for ITextFont. 2015-05-21 19:03:46 +09:00
Nikolay Sivov fa8c384b3b riched20: Implement GetFont() for selection range. 2015-05-20 18:35:44 +09:00
Nikolay Sivov 72ef367992 riched20: Implement GetLanguageID(). 2015-05-20 18:35:43 +09:00
Nikolay Sivov 1e68433d78 riched20: Implement GetSubscript()/GetSuperscript(). 2015-05-20 18:35:41 +09:00
Nikolay Sivov 0f53b87367 riched20: Implement GetStrikeThrough(). 2015-05-20 18:35:39 +09:00
Nikolay Sivov f875c804bd riched20: Implement GetForeColor(). 2015-05-20 18:35:37 +09:00
Nikolay Sivov d7a1700a29 riched20: Implement GetUnderline(). 2015-05-20 18:35:34 +09:00
Nikolay Sivov c48e0519ac riched20: Implement GetSize(). 2015-05-20 18:35:32 +09:00
Nikolay Sivov a96b04737c riched20: Implement GetBold()/GetItalic(). 2015-05-19 19:24:45 +09:00
Alex Henrie 0940ce3205 riched20: Fix copy-paste error in header documentation. 2015-05-19 19:24:24 +09:00
Nikolay Sivov c8362ec3b8 riched20: Added tom typelib.
I had to duplicate idl unfortunately, because typelib in riched20 is not
compatible with interfaces from tom.idl - method names are different,
while vtables are identical.
2015-05-18 15:26:04 +09:00
Nikolay Sivov f0959dc175 riched20: Implement SetEnd(). 2015-05-18 15:26:03 +09:00
Nikolay Sivov 3a0670ed7e riched20: Implement SetStart(). 2015-05-18 15:26:03 +09:00
Nikolay Sivov 6d19ac5cb3 riched20: Added stub ITextPara. 2015-05-18 15:26:02 +09:00
Nikolay Sivov aba1e680f2 riched20: Added ITextFont stub. 2015-05-18 15:26:02 +09:00
Alexandre Julliard 50009c4a95 riched20: Update rectangle on WM_WINDOWPOSCHANGED instead of WM_SIZE.
Some applications don't forward WM_SIZE to the window proc.
2015-04-28 19:57:37 +09:00
Huw Davies ef072b1eb2 riched20/tests: Fix test on 64-bit win8. 2015-04-20 14:37:08 +09:00
Christoph von Wittich ca2b70b285 riched20: Handle SCF_WORD. 2015-04-01 22:34:20 +09:00
Christoph von Wittich c0c36fba70 riched20: EM_SETSEL should not return 0. 2015-03-31 14:46:06 +09:00
Alexandre Julliard 488e3d70a6 riched20/tests: Print full flag values in traces. 2015-03-30 19:49:13 +09:00
Francois Gouget 4eedf6a4b3 riched20: Mark internal symbols with hidden visibility. 2015-03-27 00:12:50 +09:00
Francois Gouget 7f0797cc78 riched20: Fix a trailing '\n' in a FIXME() call. 2015-03-20 17:39:58 +09:00
Jactry Zeng 6c425a169a riched20: Implement IOleInPlaceSite interface. 2015-03-19 22:42:31 +09:00
Francois Gouget cd0200113c riched20: Remove unneeded NONAMELESSXXX directives. 2015-03-19 14:05:48 +09:00
Huw Davies 2a5886974d riched20: Don't resend a partial chunk to the edit stream callback.
It's basically used as a boolean to terminate the writing process
if it's set to zero.
2015-03-17 23:55:16 +09:00
Jactry Zeng f1d22c0ebd riched20: Implement IOleWindow::GetWindow. 2015-03-17 00:19:47 +09:00
Jactry Zeng bbb9755896 riched20: Implement IOleWindow interface. 2015-03-17 00:19:46 +09:00
Jactry Zeng 879261dd8b riched20: Add tests for IRichEditOle::QueryInterface. 2015-03-17 00:19:44 +09:00
Michael Stefaniuc f40b4291d4 riched20: Remove no-op addition with 0 (PVS-Studio). 2015-02-25 21:27:42 +09:00
Michael Stefaniuc 54d3816eb8 riched20: IDC_IBEAM is already an int resource (PVS-Studio). 2015-02-18 16:09:00 +09:00
Francois Gouget c9c2692d8e riched20: Move DestroyIRichEditOle() into IRichEditOle:Release(). 2015-01-05 20:19:33 +01:00
Marc Bessières 85ca920d94 riched20/tests: Use SendMessageA with char buffer (Valgrind). 2014-12-03 21:34:33 +01:00
Guillaume Charifi 27ac8d265e riched20: Do not destroy IRichEditOle if still referenced. 2014-11-17 17:27:43 +09:00
Michael Stefaniuc 5ce384e191 riched20/tests: Simplify the check for an empty string (PVS-Studio). 2014-11-11 14:22:12 +09:00
Michael Stefaniuc 7f295effbd riched20: SUCCEEDED() is already a BOOL (PVS-Studio). 2014-10-31 10:49:34 +09:00
Jactry Zeng a9491ec5d9 riched20: Add IID_IRichEditOle and IID_ITextDocument support for ITextServices::QueryInterface. 2014-10-30 12:02:52 +09:00
Jactry Zeng 234310e752 riched20: Add COM aggregation support for IRichEditOle. 2014-10-30 12:02:17 +09:00
Jactry Zeng ffb706ceb0 riched20: Fix a leak. 2014-10-30 12:00:57 +09:00
Jactry Zeng a3b8065600 riched20: Set editor->reOle to NULL when IRichEditOle is released. 2014-09-30 19:34:10 +02:00
Jactry Zeng 40456439e6 riched20: Implement ITextSelection::Collapse. 2014-09-17 11:46:17 +02:00
Jactry Zeng 07154f7fee riched20: Implement ITextRange::Collapse. 2014-09-17 11:46:02 +02:00
Jactry Zeng da40589e71 riched20: Implement ITextRange::GetDuplicate. 2014-09-17 11:45:58 +02:00
Jactry Zeng 52fee14932 riched20: Implement ITextSelection::GetStart and ITextSelection::GetEnd. 2014-09-16 19:25:34 +02:00
Jactry Zeng b56c96a619 riched20: Implement ITextRange::GetStart and ITextRange::GetEnd. 2014-09-16 19:25:16 +02:00
Jactry Zeng 329252f88b riched20: Implement ITextSelection::GetChar. 2014-09-15 18:25:31 +02:00
Jactry Zeng 0aa433438d riched20: Implement ITextRange::GetChar. 2014-09-15 18:25:28 +02:00
Jactry Zeng 7d06f6ccb2 riched20: Avoid invalid memory access. 2014-09-15 10:13:05 +02:00
Jactry Zeng b10b39185d riched20: Stub for ITextRange interface and implement ITextDocument::Range. 2014-09-12 17:02:50 +02:00
Qian Hong 3881adf244 riched20: Handle QI failure in ME_GetOLEObjectSize. 2014-09-01 20:26:35 +02:00
Jactry Zeng 063b3bc9db riched20: Pass count of character into ME_WordBreakProc() instead of count of byte. 2014-08-21 12:23:33 +02:00
Alexandre Julliard 35dd553038 riched20/tests: Fix test on 64-bit. 2014-07-22 20:45:46 +02:00
Jactry Zeng 1f6073c861 riched20: Implement ITextSelection::GetText. 2014-07-21 18:45:38 +02:00
Jactry Zeng 68b9018d50 riched20: Fix ME_SetSelection when cpMax > strlen(). 2014-07-21 18:45:34 +02:00
Jactry Zeng 455eca6d22 riched20: Return nonzero value instead of zero when EM_SETREADONLY succeeds. 2014-07-04 19:30:25 +02:00
Jactry Zeng 10e6a665fd riched20: Initialize ed->reOle in ME_MakeEditor(). 2014-07-03 18:17:59 +02:00
Jactry Zeng 6ea4da4038 riched20: Don't create too many IRichEditOle interface for a RichEdit. 2014-07-01 12:53:47 +02:00
Alex Henrie 6b947701a7 riched20: Consider adjacent runs when computing EN_LINK range. 2014-06-17 10:36:53 +02:00
Huw Davies b89c7c8fc2 riched20: Don't skip the final carriage return in SFF_SELECTION mode. 2014-06-11 13:06:23 +02:00
Andrew Eikum 704d1695f3 riched20/tests: Allow conversions to non-English codepages. 2014-05-20 21:27:00 +02:00
Frédéric Delanoy 2e5cb7aac8 Assorted spelling/grammar fixes. 2014-04-30 18:34:20 +02:00
Nikolay Sivov 601738dfb5 riched20: GetClientSite() is implemented for IRichEditOle so uncomment related code (Coverity). 2014-04-15 21:03:54 +02:00
Huw Davies fa50baf31f riched20: Keep track of fractions of WHEEL_DELTA when scrolling. 2014-03-31 15:29:02 +02:00
Huw Davies 2f07df59f9 riched20: Add a helper to return the default line height and use that in EM_LINESCROLL. 2014-03-31 15:29:00 +02:00
Hans Leidekker db094db851 riched20: Don't return DLGC_HASSETSEL from WM_GETDLGCODE if the control style includes ES_SAVESEL. 2014-03-28 17:57:19 +01:00
Jactry Zeng 2a55f8d663 riched20: Fix a typo in CreateIRichEditOle. 2014-03-27 16:59:31 +01:00
Jactry Zeng c5bd5236b9 riched20: Return E_INVALIDARG for empty ppSel in ITextDocument::GetSelection. 2014-03-26 19:20:25 +01:00
Frédéric Delanoy 5f88ba5b61 riched20: Use BOOL type where appropriate. 2014-03-19 11:33:22 +01:00
Jactry Zeng fa2c509243 riched20/tests: Fix a SysAllocString leak. 2014-03-13 20:22:14 +01:00
Jactry Zeng 0f23b967a4 include: Fix a typo in ITextServices method named TxGetCurTarget. 2014-03-12 19:06:31 +01:00
Jactry Zeng 1841426616 riched20/tests: Add tests to check the content open by ITextDocument_fnOpen. 2014-02-12 19:15:17 +01:00
Austin English 0776a76eef riched20: Remove duplicate declaration. 2014-02-11 19:19:13 +01:00
Frédéric Delanoy 0f2bed51bd Assorted spelling fixes. 2014-02-10 15:47:29 +01:00
Frédéric Delanoy e877ec4c5a riched20/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-30 12:42:55 +01:00
Jactry Zeng 88214a5874 riched20: Add UTF8 support for EM_SETTEXTEX. 2014-01-27 16:59:15 +01:00
Jactry Zeng eb8f47518e riched20: Use codepage in ME_ToUnicode. 2014-01-27 16:59:08 +01:00
Huw Davies 7a0a4ce7ab riched20: Add uniscribe support. 2014-01-15 15:20:52 +01:00
Francois Gouget 25e0f11ced riched20: Make ME_GetDITypeName() static. 2014-01-13 17:37:27 +01:00
Huw Davies a53179dadd riched20: Ensure the cursors are equal after deleting the selection. 2014-01-07 15:21:33 +01:00
Huw Davies c59c582c9a riched20: Correctly handle the cursor at the end of run case while splitting paragraphs. 2014-01-07 15:21:30 +01:00
Huw Davies 86ea91f424 riched20: Correctly handle the cursor at the end of a run case. 2014-01-07 15:21:27 +01:00
Huw Davies 2429e8b10b riched20: Don't split a run if the cursor is at the end of it. 2014-01-07 15:21:23 +01:00
Huw Davies 7e7a8f1a4e riched20: Simplify the code by accessing paragraphs directly from runs. 2014-01-07 15:21:13 +01:00
Jactry Zeng 51936be04d riched20: Use CP_UNICODE instead of 1200. 2014-01-06 20:52:40 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Huw Davies b0f177b619 riched20: Ensure the cursors are correctly ordered in the case of a zero (logical) length selection bridging two runs. 2013-12-10 13:01:22 +01:00
Huw Davies f13fe24e9e riched20: Remove some over-zealous calls to clear the insert style.
It's cleared correctly, if the selection actually changes, in the
selection change notification handler.
2013-12-06 13:15:02 +01:00
Huw Davies 160f65f24a riched20: Move the various selection setting methods to a common function. 2013-12-06 13:14:58 +01:00
Frédéric Delanoy 57d7f74d34 Assorted spelling fixes. 2013-11-21 19:44:46 +01:00
Huw Davies 0d8800d467 riched20: Simplify the code by using an ME_Paragraph pointer. 2013-11-21 19:39:01 +01:00
Frédéric Delanoy e81412a4db riched20: Use BOOL type where appropriate. 2013-11-20 11:26:07 +01:00
Huw Davies 58e83ebdea riched20: Revert to the default paragraph style when all text is deleted. 2013-11-04 17:41:12 +01:00
André Hentschel 86a30afeb5 riched20/tests: Fix txtsrv tests compilation with __WINESRC__ defined. 2013-10-28 20:07:21 +01:00
André Hentschel 27fb62621a riched20/tests: Fix richole tests compilation with __WINESRC__ defined. 2013-10-28 20:07:10 +01:00
André Hentschel 1431b1e9c4 riched20/tests: Fix editor tests compilation with __WINESRC__ defined. 2013-10-28 20:07:02 +01:00
Piotr Caban d31048f0ae riched20: Fix loop condition while processing control content in WM_CREATE. 2013-10-08 15:39:01 +02:00
Frédéric Delanoy c388cce8aa riched20/tests: Use BOOL type where appropriate. 2013-10-08 09:09:28 +02:00
Frédéric Delanoy f03d251ef2 riched20: Use BOOL type where appropriate. 2013-10-08 09:09:22 +02:00
Piotr Caban e660bf676c riched20: Set control content in WM_CREATE message. 2013-10-07 19:52:44 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Michael Stefaniuc 9463dba830 tests: Use the explicit LoadLibraryA function. 2013-10-02 11:02:21 +02:00
Andrew Eikum 360afb93b5 riched20: Continue interpreting data as UTF-8 after the first chunk boundary. 2013-10-02 11:01:33 +02:00
Jactry Zeng 5520dcab8a riched20/tests: Add UTF8 BOM tests for EM_SETTEXTEX. 2013-09-27 10:43:00 +02:00
Jactry Zeng 1cbdb2aff7 riched20: Add a length return parameter to ME_ToUnicode. 2013-09-10 12:27:37 +02:00
Jactry Zeng a8d87afe1c riched20/tests: Add tests of ITextDocument_Open. 2013-09-05 13:25:34 +02:00
Vincent Povirk d04d1c1736 riched20: Use \ulnone instead of \ul0 for no underline. 2013-08-20 11:50:14 +02:00
Nikolay Sivov ed673ff947 riched20: Use helpers from header instead of internal functions. 2013-06-12 12:09:13 +02:00
Alexandre Julliard 85f8828560 riched20: Don't bother to unregister classes at process exit. 2013-05-14 11:33:19 +02:00
Sergey Guralnik 8849885f73 riched20: Fix richtext copy/paste to OOffice. 2013-05-01 11:16:27 +02:00