Francois Gouget
82f6b6ff41
riched20/tests: Make keep_responsive() and customWordBreakProc() static.
2008-12-15 12:25:28 +01:00
Paul Vriens
696512b6cb
riched20/tests: Remove the todo_wine logic where appropriate.
2008-12-10 14:32:07 +01:00
Francois Gouget
b3bf746ff9
Straighten out some ellipses.
2008-11-26 12:33:34 +01:00
Dylan Smith
df6e47e3a7
richedit: Removed useless lines in ME_GetDefaultCharFormat.
2008-11-17 13:58:03 +01:00
Dylan Smith
1e8df4351d
richedit: Removed unused ME_AutoURLDetect function.
2008-11-17 13:57:56 +01:00
Dylan Smith
ea9f343c33
richedit: Update strings and comments regarding IME Status messages.
2008-11-17 13:12:35 +01:00
Dylan Smith
f9b31fc964
richedit: Removed comment in header for non-existent wintest.c.
2008-11-17 13:12:12 +01:00
Dylan Smith
e4ef9c5c15
richedit: Initial testing of ITextServices methods.
2008-11-13 13:08:46 +01:00
Dylan Smith
cc1cbadeb2
richedit: Created initial tests for windowless richedit controls.
2008-11-12 13:33:41 +01:00
Andrew Talbot
affc6e029c
riched20: Sign-compare warnings fix.
2008-11-06 11:09:41 +01:00
Michael Stefaniuc
90024d03b2
riched20: Remove superflous casts.
2008-11-04 11:26:12 +01:00
Michael Stefaniuc
2ae8511980
riched20: Use MAKELPARAM instead of "(LPARAM) MAKELONG".
2008-11-03 13:39:35 +01:00
Michael Stefaniuc
9f92f6bc10
riched20: Do not cast NULL.
2008-11-03 13:38:58 +01:00
Dylan Smith
09802e2c76
richedit: Handle negative position given to EM_POSFROMCHAR.
2008-10-29 11:52:18 +01:00
Dylan Smith
4c28a5bcfb
richedit: Fixed initial word wrap setting when emulating 1.0.
2008-10-27 12:01:37 +01:00
Paul Vriens
5e05a7b9eb
riched20/tests: Skip some tests on Win9x and WinMe.
2008-10-24 14:25:00 +02:00
Dylan Smith
503972980e
richedit: Fixed the call to the EditWordBreakProc.
2008-10-23 15:30:14 +02:00
Dylan Smith
00fd6b62d3
richedit: Added test for correct behaviour for calling EditWordBreakProc.
...
EditWordBreakProc documented the third parameter as being the number
of unicode characters in the string for richedit 2.0 and up. It turns
out that it should actually be the number of bytes in the string.
2008-10-23 15:30:06 +02:00
Dylan Smith
242b1bc109
richedit: Fixed pointer syntax in helper functions for tests.
2008-10-23 12:10:08 +02:00
Dylan Smith
46d79b0363
richedit: Fixed EM_POSFROMCHAR for pos of text length.
...
For some reason EM_POSFROMCHAR was returning 0 when the position was
equal to the end of the text, or beyond the end of the text. Instead
it should use the position at the end of the text for both these
cases. The x value was also seen to be offset by 1 according to the
tests.
2008-10-22 13:54:54 +02:00
Dylan Smith
31951a099d
richedit: Added tests for EM_POSFROMCHAR for pos around end of text.
2008-10-22 13:54:54 +02:00
Dylan Smith
5bcb15dd7f
richedit: Handle ctrl-key shortcuts on WM_KEYDOWN.
2008-10-22 13:54:53 +02:00
Dylan Smith
aa3b75f6b7
richedit: Added tests for ctrl-key shortcut handling in WM_KEYDOWN.
...
Previously the shortcuts for cut, copy, paste, undo, redo, and select
all were being handled during the WM_CHAR message. These tests show
that these shortcuts should be handled with the WM_KEYDOWN message
instead.
2008-10-22 13:54:53 +02:00
Francois Gouget
5eb8ab3deb
riched20/tests: Add a trailing '\n' to an ok() call.
2008-10-20 11:37:27 +02:00
Dylan Smith
c70f6a3933
richedit: Use the DefWindowProc to implement WM_SETREDRAW.
2008-10-20 11:37:27 +02:00
Dylan Smith
ae3394271d
richedit: Prevent EN_UPDATE notifications when window isn't visible.
2008-10-20 11:37:27 +02:00
Dylan Smith
30ebfa6d74
richedit: Test to see if WM_SETREDRAW removes the windows visibility.
2008-10-20 11:37:27 +02:00
Dylan Smith
b5f59b9962
richedit: Test for EN_UPDATE notification when window isn't visible.
2008-10-20 11:37:26 +02:00
Dylan Smith
f24678b285
richedit: Scroll cursor into view even with redraw turned off.
2008-10-18 19:32:43 +02:00
Dylan Smith
582bdadeff
richedit: Test changes in scrollbar's visibility with redraw disabled.
...
Test to verify that the scrollbar does need to be shown or hidden while
redraw is disabled.
2008-10-18 19:32:33 +02:00
Dylan Smith
bb4e38665a
richedit: Test to see if wrapping happens with redraw disabled.
2008-10-18 19:32:27 +02:00
Dylan Smith
a959f7d74b
richedit: Tests for notifications while redraw is disabled.
...
There were some notifications that weren't sent in ME_UpdateRepaint
while redraw was disabled, so this verifies that they are not sent
with redraw disabled.
2008-10-18 19:32:18 +02:00
Dylan Smith
2271226bfd
richedit: Added test for auto scroll behaviour with redraw disabled.
2008-10-18 19:26:54 +02:00
Michael Stefaniuc
b9f3e3626d
riched20: Remove superfluous backslashes at end of lines.
2008-10-16 11:29:04 +02:00
Dylan Smith
1ed84f0dcc
richedit: Fixed centering and right align with word wrap disabled.
2008-10-13 13:17:53 +02:00
Dylan Smith
a32f1f2c1c
richedit: Account for selection bar in calculating available width.
2008-10-13 13:17:42 +02:00
Andrey Turkin
8d18cb8caf
riched20: Add spare area to ITextServicesImpl to work around broken apps.
2008-10-13 11:45:23 +02:00
Dylan Smith
e6b16cce77
richedit: Added test for word wrapping behaviour.
2008-10-13 11:42:22 +02:00
Dylan Smith
440db38eba
richedit: Moved optional message loop in tests to its own function.
2008-10-13 11:42:16 +02:00
Dylan Smith
b8fe020077
richedit: Added DestroyWindow call to clean up the end of a test.
2008-10-13 11:42:01 +02:00
Dylan Smith
197f3f4c23
richedit: Added EM_SETMARGINS to the list of unsupported messages.
2008-10-13 11:41:55 +02:00
Dylan Smith
1d21d24a51
richedit: Show arrow cursor over scrollbar.
2008-10-06 13:54:49 +02:00
Dylan Smith
4785c2fa2d
richedit: ES_AUTOHSCROLL window style disables word wrapping.
2008-10-06 13:52:25 +02:00
Dylan Smith
bdf181b4d3
richedit: Use RTF reader for text starting with {\urtf.
2008-10-06 13:49:12 +02:00
Dylan Smith
e6c3a2beee
richedit: Unsigned cast char to avoid EOF equality.
2008-10-06 13:06:38 +02:00
Dylan Smith
930f8f5af6
richedit: Removed invalid assertion.
...
The assertion was not valid, because it neglected to take into account
the situation where a line break is forced with a MERF_ENDROW run
(caused by \line control word or pressing Shift-Enter). This means
that spaces can cause a line wrap after a forced line break as well as
after a paragraph break, so we cannot assert that it is the first row
in the paragraph.
2008-10-06 13:06:24 +02:00
Dylan Smith
af47ac09d5
richedit: Avoided testing for undocumented behaviour causing test to fail.
...
The test for EM_GETLINE was testing to make sure the null terminating
character was written at the end of the text as long as the buffer was
long enough, and also tested to make sure that no other bytes were
written after this null terminating character. This is consistent with
Windows 2000 and up, but not for previous versions of Windows.
2008-10-06 13:06:13 +02:00
Dylan Smith
0589b61848
richedit: Swapped the expected and destination buffers in a test.
2008-10-06 13:06:04 +02:00
Dylan Smith
5157798836
richedit: Print hex string for strcmp test failing on Windows 95, 98 & NT4.
2008-10-02 10:41:02 -05:00
Dylan Smith
c2bab443fa
richedit: Made sure table row gap/offset is copied on append row.
2008-10-01 11:41:01 -05:00
Dylan Smith
a3ac5ef094
richedit: Fixed a bug preventing streaming out nested table properties.
2008-10-01 11:40:52 -05:00
Dylan Smith
3af4419688
richedit: Added code to stream out table border properties.
...
This code was simply missing, since the table border properties are
already stored and displayed.
2008-10-01 11:40:34 -05:00
Dylan Smith
ee5342e432
richedit: Prevent assertion failure when streaming out nested tables.
...
The table properties are streamed out at the start of the table for
non-nested tables, and at the end of the table for nested tables. The
assertion caught the fact that I didn't get the start of the table row
for nested tables before trying to stream out the properties.
The call to ME_GetTableRowStart will handle both of these cases by
getting the table row start paragraph and asserting that it is found.
This call was also the reason for removing the const qualifier on one
of the parameters.
2008-10-01 11:40:20 -05:00
Dylan Smith
fac8e957c5
richedit: Prevent font or colour buffer overflow on stream out.
...
Static sized buffers are used for storing the colours and fonts, so
there needs to be a check to prevent these buffer from overflowing.
2008-10-01 11:40:04 -05:00
Dylan Smith
3df78710a9
richedit: Make sure border properties are saved for undo/redo.
...
Previously the paragraph and cell border properties were lost when
deleting the text, then undoing the deletion. This would cause tables
to lose the colour and width of the table border.
2008-10-01 11:39:56 -05:00
Dylan Smith
0699332b37
richedit: Fixed test failing on windows version with larger font sizes.
2008-09-30 10:18:02 -05:00
Dylan Smith
c13fd6a44b
richedit: Fixed test failure that happend on older builds of riched20.dll.
2008-09-30 10:16:27 -05:00
Dylan Smith
f78a841973
richedit: Removed space in front of function signature.
2008-09-22 11:49:29 +02:00
Detlef Riekenberg
9593c9e6f5
dlls: Do not use __WINE_ALLOC_SIZE between void and *.
2008-09-19 11:41:25 +02:00
Dylan Smith
72d754108a
richedit: Removed a redundant condition.
2008-09-19 11:40:48 +02:00
Dylan Smith
87292d81ee
richedit: Avoid unconditionally rewrapping text on scroll.
2008-09-18 12:32:50 +02:00
Dylan Smith
da058cbf67
richedit: Handle deletion at the end of text properly.
2008-09-18 12:32:44 +02:00
Dylan Smith
2aa69c6c9e
richedit: Prevent buffer overrun for tab stops buffer.
2008-09-12 12:35:29 +02:00
Dylan Smith
fab258022e
richedit: Fixed bugs in handling unterminated nested tables in RTF.
2008-09-12 11:55:43 +02:00
Dylan Smith
0d8e9e622f
richedit: Make sure the nested tables' RTF properties are not skipped.
2008-09-12 11:55:30 +02:00
Dylan Smith
d7ff24378a
richedit: Enter inserts newline before table at start of document.
2008-09-12 11:55:22 +02:00
Dylan Smith
0843768919
richedit: Enter at the end of a table row appends a new row.
2008-09-12 11:55:14 +02:00
Dylan Smith
88a3a8a9c0
richedit: Don't put cursor in the table row start paragraph.
2008-09-12 11:55:08 +02:00
Dylan Smith
9a7d475db8
richedit: Avoid acting on control words in skipped RTF groups.
...
Previously the control words in skipped groups were being processed by
the read hook on the RTF parser. By moving this code into the class
callbacks for the parser, the skipped groups actually remain skipped.
2008-09-11 12:38:20 +02:00
Juan Lang
fb30d61c97
riched20: Use helper function rather than goto to return found position.
2008-09-11 11:45:23 +02:00
James Hawkins
ce8e69d4b1
riched20: Fix two typos that cause a failing test.
2008-09-09 11:46:14 +02:00
Reece Dunn
5740ad6432
richedit20: Fixed building the tests on msvc.
2008-09-08 14:08:21 +02:00
James Hawkins
898dd57f5d
riched20: Fix several failing test across several platforms.
2008-09-08 12:47:22 +02:00
Marcus Meissner
96412ee564
Annotate with allocation size attribute.
2008-09-05 11:22:26 +02:00
James Hawkins
6b1c6eebab
riched20: Trace the result of a failing test.
2008-09-03 13:14:51 +02:00
Francois Gouget
4823b2c7bf
Assorted spelling fixes.
2008-09-02 13:58:21 +02:00
Dylan Smith
b5e9aed268
richedit: Prevent integer overflow in wrapping code with no wrap.
2008-09-02 11:57:14 +02:00
Dylan Smith
f11fe1c7a9
richedit: Prevent typing text at end of table row.
2008-08-29 13:42:47 +02:00
Dylan Smith
36be721027
richedit: Prevent streaming in rich text at end of table row.
2008-08-29 13:41:41 +02:00
Dylan Smith
ff1f3d76b7
richedit: Copy cell border properties when appending a row to the table.
2008-08-29 13:41:34 +02:00
Dylan Smith
ab6ca01471
richedit: Fixed a bug in protecting table cell boundaries.
2008-08-29 13:41:27 +02:00
Dylan Smith
238fd58a09
richedit: Pressing tab with selection back to start of table.
2008-08-29 13:41:18 +02:00
Michael Stefaniuc
9c62181a38
riched20: Remove redundant NULL check before HeapFree (Smatch).
2008-08-19 12:55:00 +02:00
Dylan Smith
ddc107bd26
richedit: Added support for changing cell border colours.
2008-08-18 17:15:57 +02:00
Dylan Smith
421c5b0e02
richedit: Borders are now drawn for tables and nested tables.
2008-08-18 17:15:57 +02:00
Dylan Smith
967c148a68
richedit: Borders are drawn for simple tables.
2008-08-18 17:15:57 +02:00
Dylan Smith
a47d4a4c3a
richedit: Adjust table spacing with horizontal gap and left edge.
2008-08-18 17:15:57 +02:00
Dylan Smith
b628482d68
richedit: Removed an unused local variable and assignments to it.
2008-08-18 17:15:57 +02:00
Dylan Smith
fe1a24ff88
richedit: Substitute space for \tab and \par control words for simple tables.
...
For simple tables cells are represented with tabs, and a table row is
ended at the end of the paragraph, so native richedit controls
substitute spaces for \tab and \par rich text format control words.
2008-08-18 17:15:57 +02:00
Dylan Smith
a382e35600
richedit: EM_[SG]ETPARAFORMAT returned the wrong value.
...
The values returned by EM_SETPARAFORMAT and EM_GETPARAFORMAT previously
indicated an error, and the included tests shows that Windows behaves as
documented.
2008-08-18 17:15:57 +02:00
Dylan Smith
59195ed2ec
richedit: Added in support for streaming in and out nested tables.
2008-08-18 14:34:35 +02:00
Dylan Smith
300db3765f
richedit: Each cell can contain multiple paragraphs in msftedit.
2008-08-18 14:34:11 +02:00
Dylan Smith
bc61a637b9
richedit: Reversed deletion direction so tables are inserted forwards.
2008-08-18 14:34:10 +02:00
Dylan Smith
d29f671d1a
richedit: Protect deletion of cell boundaries when not deleting row.
2008-08-18 14:34:10 +02:00
Dylan Smith
bf5ccefc4c
richedit: Handle tab key properly within table cells.
...
Within table cells the tab key moves to the next cell in the table, or creates
a new table row when at the end of the table.
2008-08-18 14:34:10 +02:00
Dylan Smith
608c54ee69
richedit: Word/Line/Paragraph selection had selection anchor on wrong side.
...
After selection a word, line, or paragraph with multi click selection or using
the selection bar, then shift can be held and the arrows can be used to move
one of the ends of the selection.
2008-08-18 14:34:10 +02:00
Dylan Smith
e568e15142
richedit: Removed assumption about the order of rtf indent control words.
...
Previously the calculations of dxStartIdent and dxOffset depended on
their order.
2008-08-18 14:34:10 +02:00
Dylan Smith
6a65f3b38e
richedit: Fixed rtf reader bug that caused large start indents.
...
The problem was that the paragraph format was being retrieved,
slightly modified and then used to set the paragraph format, without
limiting the mask to what was being set. The PFM_OFFSETINDENT mask flag
being valid meant that dxStartIndent specifies a relative offset, thus
dxStartIndent was doubled.
2008-08-18 14:34:10 +02:00
Dylan Smith
4e56a3cda9
richedit: Joined paragraph format depends on number of characters deleted.
2008-08-05 14:09:37 +02:00
Dylan Smith
11c8039699
richedit: Use tabstops to store cell positions.
2008-08-05 14:09:37 +02:00