Michael Stefaniuc
c52c15ef99
riched20: COM cleanup for the ITextServices iface.
2011-04-11 12:10:30 +02:00
Michael Stefaniuc
e18ae2139b
riched20: COM cleanup for the ITextHost iface.
2011-04-11 12:10:20 +02:00
Francois Gouget
cc2cd5a525
riched20/tests: Add a '\n' to an ok() call.
2011-03-07 11:09:27 +01:00
Austin English
c17df92e5d
riched20/tests: Remove win9x hacks.
2011-02-28 13:13:33 +01:00
Amine Khaldi
4b7795a943
riched20: Add a missing break.
2011-02-23 19:23:38 +01:00
Amine Khaldi
f8da57ca89
riched20: Fix a c89 conformance issue in ITextImpl->editor->rcFormat initialization.
2011-02-16 14:02:59 +01:00
Maarten Lankhorst
1e758c5e8c
riched20: Do not call callback when no data needs to be flushed.
2011-02-09 13:49:03 -06:00
Austin English
75e4e607c6
riched20/tests: Make sure return value is used (LLVM/Clang).
2011-02-09 09:25:58 -06:00
Greg Geldorp
997a681300
riched20/tests: Fix editor tests.
2011-01-24 14:43:27 +01:00
Greg Geldorp
bee48efdce
riched20/tests: Skip some tests on non-English platforms.
2011-01-19 16:54:02 +01:00
Dylan Smith
d43cddcc83
richedit: Clear non-default style when changing to plain text mode.
...
Although the text must be empty for the mode to change to plain text
mode, there still may be a non-default style for the temporary insert
style and style for the end of text run.
2011-01-12 11:32:19 +01:00
André Hentschel
cea221caa0
riched20/tests: Don't test function directly when reporting GetLastError().
2010-12-30 15:00:58 +01:00
Michael Stefaniuc
9a6f5ad239
riched20: Standardize the COM usage in clipboard.c.
2010-12-09 12:28:52 +01:00
Michael Stefaniuc
0acf4a297b
riched20/tests: Use an iface instead of a vtbl pointer in ITextHostTestImpl.
2010-12-09 12:28:41 +01:00
Alexandre Julliard
954558806e
riched20: Use the correct resource id for the reverse arrow cursor.
2010-10-18 19:08:37 +02:00
Austin Lund
b20e75f5e9
riched20/tests: Cleaned up ITextServices::TxGetNaturalSize test and fixed test failures.
2010-10-13 17:45:23 +02:00
Austin Lund
d08fc66732
riched20/tests: Plug a few memory leaks and make failure messages more meaningful.
2010-10-06 20:46:49 +02:00
Alexandre Julliard
95c1bd4da9
riched20/tests: Make some variables static.
2010-10-01 13:40:29 +02:00
Alexandre Julliard
81b8ee863e
makefiles: Add a standard header for all makefiles to replace the common variable initializations.
2010-09-19 12:36:48 +02:00
Dylan Smith
c0ee555e8f
richedit: Avoid redundant calls to ME_CalcRunExtent.
...
ME_SplitRun is only called by wrapping code. In all but one call the
returned second half of the split run will be returned, get passed back
to ME_WrapHandleRun, then ME_CalcRunExtent will be called at the start of
ME_WrapHandleRun through ME_WrapSizeRun.
2010-07-30 11:36:02 +02:00
Dylan Smith
8b8e4f89b2
richedit: Use ME_Cursor as parameter to ME_SplitRunSimple.
...
The paragraph needed to be included in the parameters to avoid needing
traverse the linked list of display items to find the paragraph.
2010-07-30 11:36:02 +02:00
Dylan Smith
68b44f740c
richedit: Remove checks for converting internal CHARFORMAT structs.
...
Prevents extra copying from having to be done for converting between
unicode/ascii or between the normal or extended version of the structure.
2010-07-30 11:36:02 +02:00
Dylan Smith
ad056fe7d7
richedit: Check for bits instead of equality in EM_SETCHARFORMAT.
...
There are unsupported flags documented on MSDN which would cause problems
for the equality checks used in EM_SETCHARFORMAT. Also, to handle a
combined set of flags they must be checked for in the right order.
2010-07-30 11:36:01 +02:00
Dylan Smith
16d7890426
richedit: Don't change text mode with undo or redo stack.
2010-07-30 11:36:01 +02:00
Dylan Smith
75eef41881
richedit: Return correct values when EM_SETTEXTMODE fails.
...
The checks for the text length and invalid parameters needed to be swapped,
and the code could be easily simplified.
2010-07-30 11:36:01 +02:00
Dylan Smith
4c174fc845
richedit: Removed unused run flags values.
...
The only place MERF_SKIPPED was in debug code, and MERF_CALCBYWRAP was only
used to clear this unused flag value, so I got rid of both of them.
2010-07-29 10:28:29 +02:00
Dylan Smith
15251ad84b
richedit: Removed redundant variable ptLastSplittableRun.
2010-07-29 10:28:06 +02:00
Dylan Smith
dfa80b35b0
richedit: Invalidate without calling UpdateWindow in many cases.
2010-07-29 10:28:00 +02:00
Dylan Smith
1964e603fd
richedit: Remove redundant commit and repaint in ME_StreamInText.
...
ME_StreamInText is only used in one function, ME_StreamIn, which always
calls ME_CommitUndo and ME_UpdateRepaint after calling this function.
2010-07-29 10:27:38 +02:00
Dylan Smith
328a3f1d8c
richedit: EN_UPDATE notification is sent on WM_PAINT.
2010-07-29 10:27:30 +02:00
Alexandre Julliard
b86d515ed6
dlls: Remove explicit imports of kernel32 and ntdll.
2010-07-21 17:38:36 +02:00
Dylan Smith
be3073fce1
richedit: Fix streaming rtf with table at the start of the text.
...
The first paragraph was being handled just by ME_StreamOutParaProps,
but subsequent paragraphs would check if the paragraph was starting or
ending a table. So I moved the code to check for tables into
ME_StreamOutParaProps.
2010-07-19 14:38:16 +02:00
Dylan Smith
e2f6b1d83d
richedit: Don't break when streaming out a table, just continue.
...
This is a regression caused by commit
54b53b6018
which change the code to use
if statements instead of a switch, so the break statement should have
been changed to a continue statement.
2010-07-19 14:38:16 +02:00
Austin Lund
61e5fec020
riched20: Process messages which arrive before WM_NCCREATE.
2010-07-08 17:33:25 +02:00
Dylan Smith
6072a69d38
richedit: Keep default char format on WM_SETFONT in plain text mode.
2010-06-07 15:27:52 +02:00
Dylan Smith
b88b007d95
richedit: Fix assignment to wrong variable (LLVM/Clang).
2010-05-25 12:02:28 +02:00
Dylan Smith
3f1d3e0ea1
richedit: Simplify redundant code in WM_IME_COMPOSITION.
2010-05-24 11:30:23 +02:00
Dylan Smith
e809bc887d
richedit: Commit undo items after modifications in WM_IME_COMPOSITION.
...
ME_InsertTextFromCursor could previously follow the ME_CommitUndo call
leaving uncommitted changes which would cause improper grouping of commits,
or an assertion failure.
2010-05-24 11:30:12 +02:00
Dylan Smith
fb7d6b783e
richedit: Missing HeapFree in WM_IME_COMPOSITION. (Smatch).
...
ME_InsertTextFromCursor copies the string passed into it rather than making
taking ownership of it.
2010-05-24 11:30:06 +02:00
Dylan Smith
dcbc22b985
richedit: Send EN_SELCHANGE after wrapping but before EN_CHANGE.
...
The call to ME_SendSelChange cannot be done in ME_CommitUndo like it was
before, because it must be done after wrapping. Native richedit controls
send EN_CHANGE first, which is sent in ME_UpdateRepaint, so
ME_SendSelChange must be before this notification in ME_UpdateRepaint.
2010-05-19 11:17:55 +02:00
Dylan Smith
d312d4e33c
richedit: Revert commit that caused a regression. (Bug 22758).
...
Revert commit 049cf5aca0
richedit: Avoid notifying parent window in improper state.
The commit was meant to fix a problem caused by ME_SendSelChange being
called in ME_SendSelChange, but moving the calls to ME_CommitUndo caused
a regression. So this patch reverts the previous commit, and my
following patch will instead fix the bug by moving the call to
ME_SendSelChange out of ME_CommitUndo.
2010-05-19 11:17:55 +02:00
Michael Stefaniuc
cf13e8a390
riched20: Avoid using long.
2010-05-17 12:42:33 +02:00
Gerald Pfeifer
f772c799ae
riched20: Remove variables yprev and ys which are not really used from ME_ArrowPageUp.
2010-05-17 12:42:31 +02:00
Dylan Smith
049cf5aca0
richedit: Avoid notifying parent window in improper state.
...
ME_CommitUndo and ME_CommitCoalescingUndo call ME_SendSelChange, which
may notify the parent window that the selection has changed, therefore
should generally be called after wrapping the text. Otherwise, the parent
window may send a message to the editor and cause an assertion failure.
2010-05-17 12:42:31 +02:00
Gerald Pfeifer
6dd4b071cc
riched20: Remove variable pCell which is not really used from ME_StreamIn.
2010-05-10 10:11:34 +02:00
Gerald Pfeifer
2d462ad088
riched20: Remove variable ys which is not really used from ME_ArrowPageDown.
2010-05-10 10:11:29 +02:00
Gerald Pfeifer
f29514fbec
riched20: Remove variable di which is not really used from ME_InsertEndRowFromCursor.
2010-05-03 15:42:18 +02:00
Gerald Pfeifer
14ef0fed9c
riched20: Remove variable changed which is not really used from ME_PrepareParagraphForWrapping.
2010-05-03 15:40:04 +02:00
Gerald Pfeifer
01777ac5ce
riched20: Remove variable yprev which is not really used from ME_ArrowPageDown.
2010-05-03 15:37:31 +02:00
Alexandre Julliard
bef5645eb1
makefiles: Remove the no longer needed explicit separators for dependencies.
2010-03-16 13:28:19 +01:00