Huw Davies
fe0a7a78db
riched20: Remove InternalInsertTextFromCursor().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-15 20:18:35 +02:00
Huw Davies
57c2580a73
riched20: Simplify the cursor from char offset function.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-15 20:18:30 +02:00
Huw Davies
579618c0d7
riched20: Return a run ptr from the run insert function.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-14 20:32:03 +02:00
Huw Davies
bfac43798b
riched20: Don't return the diTextStart paragraph from para_prev().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-14 20:31:56 +02:00
Huw Davies
0b01b40a7c
riched20: Return a run ptr from the run splitting function.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-14 20:31:49 +02:00
Huw Davies
4366c81f49
riched20: Use paragraph ptrs in FindPixelPos().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-13 18:18:33 +02:00
Huw Davies
586e31a1e6
riched20: Use the run and para helpers in the cursor movement functions.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-13 18:18:31 +02:00
Huw Davies
468609ae7b
riched20: Use paragraph and run ptrs in InsertTextFromCursor().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-13 18:18:29 +02:00
Huw Davies
a6d41a0391
riched20: Use ME_Paragraph ptrs in InternalDeleteText().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-12 18:44:34 +02:00
Huw Davies
f648eff162
riched20: Use ME_Paragraph and ME_Run ptrs in GetCursorCoordinates().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-12 18:44:32 +02:00
Huw Davies
1bda5913fc
riched20: Use ME_Paragraph ptrs in a few of the table functions.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-09 16:21:33 +02:00
Huw Davies
02cf14cf43
riched20: Pass a ME_Paragraph ptr to the marking functions.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-09 16:21:33 +02:00
Huw Davies
5dc422d4e5
riched20: Simplify FindPixelPos().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-07 18:40:07 +02:00
Huw Davies
5419a9804a
riched20: Clearly separate the selection setting functions.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-19 14:11:38 +02:00
Sergio Gómez Del Real
5868c664c1
riched20: Handle efficiently caret creation/destruction.
...
Signed-off-by: Sergio Gómez Del Real <sdelreal@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:35:34 +02:00
Sergio Gómez Del Real
ad58875642
riched20: Add helper function to mark paragraphs for rewrapping.
...
Signed-off-by: Sergio Gómez Del Real <sdelreal@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-29 17:48:33 +01:00
Jactry Zeng
7409454345
riched20: Implement IRichEditOle::GetObject.
...
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-16 10:20:36 +02:00
Jactry Zeng
0154b59c7e
riched20: Save reobj in linked list.
...
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-16 10:20:13 +02:00
Michael Stefaniuc
965dc38175
riched20: Get rid of the ALLOC_OBJ macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 10:08:40 +01:00
Rafał Harabień
585dfa1409
riched20: Protect against pasting multi-line text in single-line control.
...
Signed-off-by: Rafał Harabień <rafalh1992@o2.pl>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-15 20:20:13 +01:00
Huw Davies
4989c858a0
riched20: Use the provided style for the end-of-paragraph run.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-05 11:43:37 +02:00
Huw Davies
df1b51dfa4
riched20: Clearing the insert style should not depend on the event mask.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:54:39 +02:00
Huw Davies
304c8320c9
riched20: Allow selecting the final end-of-paragraph when using the mouse.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:54:39 +02:00
Huw Davies
7eb6837729
riched20: Allow selecting to the start / end when using the up / down arrow keys.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:54:38 +02:00
Huw Davies
58a48aa79b
riched20: Allow selecting the final end-of-paragraph when using the right arrow key.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:54:38 +02:00
Huw Davies
c005b98d91
riched20: Add an option to move the cursor to after the final end-of-paragraph.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:51:52 +02:00
Huw Davies
b3b5c25628
riched20: Embed PARAFORMAT2 in the paragraph struct rather than its ptr.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-29 22:40:18 +09:00
Huw Davies
3d1d65bc2c
riched20: Add an option to constrain the run search to the current para.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 17:32:09 +09:00
Andrey Gusev
33c1a16a18
riched20: Fix a typo in TRACE() message.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 18:18:06 +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
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
Christoph von Wittich
ca2b70b285
riched20: Handle SCF_WORD.
2015-04-01 22:34:20 +09:00
Jactry Zeng
68b9018d50
riched20: Fix ME_SetSelection when cpMax > strlen().
2014-07-21 18:45:34 +02:00
Frédéric Delanoy
5f88ba5b61
riched20: Use BOOL type where appropriate.
2014-03-19 11:33:22 +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
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
58e83ebdea
riched20: Revert to the default paragraph style when all text is deleted.
2013-11-04 17:41:12 +01:00
Huw Davies
5ddfc36cc0
riched20: Add a visual vs logical order flag to the character to position mapping routines.
2013-04-17 14:26:09 +02:00
Huw Davies
5e53012736
riched20: Don't assume the the runs in a row are in visual order.
2013-02-26 18:18:16 +01:00
Huw Davies
c5c4d54905
riched20: Allow the cursor offset to be equal to the run length - this implies the cursor is at the end of the run, which isn't necessarily the start of the next.
2013-02-26 18:18:12 +01:00
Huw Davies
a6369b8332
riched20: Rewrite ME_FindPixelPos to use ME_GetRunInRow.
2013-02-25 17:11:58 +01:00
Huw Davies
87163410e5
riched20: Only retrieve the next row.
2013-02-25 17:11:56 +01:00
Huw Davies
41dd421222
riched20: Return a BOOL that indicates whether the hit is exact.
2013-02-25 17:11:53 +01:00
Huw Davies
0730db2b99
riched20: Change ME_FindRunInRow to fill out a cursor structure.
2013-02-25 17:11:51 +01:00
Huw Davies
acaad0a842
riched20: Add the ability to CharFromPoint to either pick the closest leading edge or the leading edge of the selected character.
2013-02-18 16:34:10 +01:00
Huw Davies
1c0aaf7dd2
riched20: Use ME_PointFromChar to calculate the caret position.
2013-02-15 17:52:13 +01:00
Huw Davies
5168d66be7
riched20: Move the text to the paragraph level.
2013-02-05 20:15:37 +01:00
Huw Davies
872a2ad031
riched20: Pass a character ptr and length to SplitParagraph.
2013-02-05 20:15:36 +01:00