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
749c80bdaf
riched20: Pass a ME_Paragraph ptr to shape_para().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 19:45:35 +02:00
Huw Davies
7ef2c6c8d5
riched20: Pass a ME_Paragraph ptr to itemize_para().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 19:45:35 +02:00
Huw Davies
1500cfe8fa
riched20: Pass a ME_Paragraph ptr to WrapTextParagraph().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 19:45:35 +02:00
Huw Davies
94e34fa8ee
riched20: Store a ME_Paragraph ptr in the wrap context.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 19:45:35 +02:00
Huw Davies
7291506667
riched20: Move several of the wrapping functions to use ME_Run directly.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 19:45:35 +02:00
Huw Davies
14044d93fd
riched20: Simplify SplitByBacktracking().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-07 18:40:09 +02:00
Huw Davies
6f1cc1f3b5
riched20: Allow the style to remain selected in the context.
...
This avoids swapping out the font if the next run uses the same style.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-19 14:12:05 +02:00
Sergio Gómez Del Real
14984a169a
riched20: ME_CheckCharOffsets() calls should only be done when tracing.
...
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
Sergio Gómez Del Real
a60965a156
riched20: Cache number of rows in editor.
...
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
Sergio Gómez Del Real
195f84cfa1
riched20: Implement list of marked paragraphs.
...
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
Sergio Gómez Del Real
70a2fe5886
riched20: Move y-adjust to its own function.
...
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
Michael Stefaniuc
90aea35b9e
riched20: Use the ARRAY_SIZE() 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-09-11 11:12:08 +02:00
Huw Davies
8a428d52a7
riched20: Add support for displaying bulleted lists.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-07 13:12:13 +02:00
Huw Davies
ab65c269f7
riched20: Don't try to wrap the end-of-paragraph run.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-07 13:11:58 +02:00
Huw Davies
ef2e53f981
riched20: Move the wrap context struct into wrap.c .
...
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
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
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
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
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
Huw Davies
7a0a4ce7ab
riched20: Add uniscribe support.
2014-01-15 15:20:52 +01:00
Huw Davies
0d8800d467
riched20: Simplify the code by using an ME_Paragraph pointer.
2013-11-21 19:39:01 +01:00
Huw Davies
eb773e0dea
riched20: Use PointFromCharContext now that we can specify logical ordering.
2013-04-17 14:26:14 +02: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
e68e6ff740
riched20: Correctly set the row's x position.
2013-02-26 18:18:06 +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
c07212b3d0
riched20: Move run extent calculation to wrap.c.
2013-02-12 19:56:41 +01:00
Huw Davies
9e8a9f4f65
riched20: Move the split point calculation to wrap.c.
2013-02-08 19:31:09 +01:00
Huw Davies
68d72f4792
riched20: Move SplitRun to wrap.c and make it static.
2013-02-07 15:51:11 +01:00
Huw Davies
b730efc9b4
riched20: Pass character ptrs to the whitespace finding functions.
2013-02-05 20:15:37 +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
Dylan Smith
10d800b6b8
richedit: Invalidate a range of paragraphs without marking them.
2012-05-18 18:10:27 +02:00
Dylan Smith
1f8cbe1645
richedit: Avoid scanning all text for paragraphs to invalidate.
2012-05-09 11:55:58 +02:00
Dylan Smith
18fa3287f6
richedit: Remove always FALSE parameter from ME_PaintContent.
2012-05-08 09:42:16 +02:00
Thomas Faber
791d000f96
riched20: Simplify ME_PrepareParagraphForWrapping.
2011-10-24 19:54:02 +02:00
Thomas Faber
f3a3ce8a51
riched20: Avoid a forward declaration.
2011-10-24 19:37:08 +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
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
b88b007d95
richedit: Fix assignment to wrong variable (LLVM/Clang).
2010-05-25 12:02:28 +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
Dylan Smith
1f2575ba7c
richedit: Documented paragraph border widths are in points not pixels.
...
The border widths documented by msdn are in points which are 72 dpi, which
is not equivalent to pixels (normally 96 dpi). I pre-converted all the
border widths to 96 dpi resolution since this avoids needed to store
fractions, and often avoids the need for convertion to the displays
resolution.
2010-03-01 11:32:18 +01:00
Dylan Smith
535afbd3aa
richedit: Move function ME_GetParaLineSpace to make it static.
2010-02-10 11:32:31 +01:00
Dylan Smith
e9693d6272
richedit: Removed unused local variable yStart.
2010-02-05 10:06:30 +01:00
Dylan Smith
0342ab0df1
richedit: Use ITextHost interface in ME_LinkNotify.
...
Using the ITextHost interface allows this notification to be received
for windowless richedit controls. Windowed richedit conrols have an
ITextHost implementation that will fill in hwndFrom and idFrom, but
these should probably be initialized to 0 for windowless richedit
controls.
2009-09-28 12:54:16 +02:00
Dylan Smith
1a2ccfe9c7
richedit: Count graphics towards line width.
...
Images that are inserted into richedit controls store a space for the
text, since that is the character returned when getting the plain text
from the control.
When calculating the width of a line, the space character is skipped,
but images should not be skipped. This can be seen by inserting an
image into wordpad on a line by it's own, then centering the line. The
image will start from the center rather than being centered in the
control.
2009-03-11 13:03:30 +01:00
Dylan Smith
c8b4455565
richedit: Removed ME_StrRelPos, ME_StrRelPos2, & ME_PosToVPos functions.
...
These functions were just being used for addition, so it was simpler to
remove the functions and modify the places it was used.
The ME_StrRelPos2 and ME_PosToVPos were just simple wrappers around
ME_StrRelPos, and ME_PosToVPos wasn't being used.
2009-02-09 13:05:13 +01:00
Dylan Smith
5f15de0690
richedit: Removed ME_StrLen and ME_StrVLen field access functions.
...
These functions were probably previously needed because of some wierd
special handling of backspace characters, but currently there is no
reason why the nLen field can't be accessed directly.
Having to functions that just access the string length field just causes
slightly more effort for someone to look at the code, because they need
to enter the function to find out what it actually is doing.
2009-02-09 13:05:13 +01:00