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
Huw Davies
48b9ab37ac
riched20: Pass the character ptr and string length directly to the break proc helper.
2013-02-05 10:51:26 +01:00
Huw Davies
86f077b163
riched20: Add an explicit run length member and use it rather than accessing the string length.
2013-01-31 16:32:12 +01:00
Huw Davies
27578f8bb6
riched20: Add a helper to retrieve the run text.
2013-01-30 17:19:31 +01:00
Huw Davies
c17af77b5c
riched20: Add a helper to debug the run text.
2013-01-30 17:19:28 +01:00
Huw Davies
dee40e90ce
riched20: Move undo handling to a different set of structs as the display item structs are not a good fit.
2013-01-29 17:50:17 +01:00
Huw Davies
7a27ffb28c
riched20: Avoid an unnecessary string duplication.
2013-01-22 19:13:07 +01:00
Dan Kegel
4996043374
riched20: Don't need to redraw when changing selection from none to none.
2012-05-10 08:30:58 +02:00
Frédéric Delanoy
7ed4f20305
riched20: Remove dead assignment (Clang).
2011-07-06 11:29:18 +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
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
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
01777ac5ce
riched20: Remove variable yprev which is not really used from ME_ArrowPageDown.
2010-05-03 15:37:31 +02:00
David Hedberg
534398a57e
richedit: GTL_PRECISE to GETTEXTLENGTHEX implies GTL_NUMBYTES.
...
If GTL_PRECISE is passed without specifying either GTL_NUMCHARS or
GTL_NUMBYTES, behave as if GTL_NUMBYTES was passed.
2010-03-01 11:33:01 +01:00
Dylan Smith
9106860c85
richedit: Prevent crash on word selection at end of paragraph.
2010-02-18 12:18:17 +01:00