Commit Graph
13 Commits
Author SHA1 Message Date
RichardandVadim Zeitlin 9857cab934 Fix wxHTML line breaks around NBSP-only segments
Preserve non-breaking spaces in wxHtmlWinParser instead of converting them
to normal spaces, and prevent wxHtmlWordCell from allowing a line break
before NBSP-only text segments.

Add a parser regression test covering an  -only segment between words.

Fixes #20399.

Closes #26678.
2026-07-20 21:01:39 +02:00
RichardandVadim Zeitlin 272da6bcff Fix wxHTML BODY background colour in print rendering
Store BODY BGCOLOR in the wxHTML parser state even when there is no
window interface, then carry the parsed colour onto the renderer root
cell so wxHtmlDCRenderer fills printed pages with it instead of white.

Add a renderer regression test covering BODY BGCOLOR output.

Fixes #20652.

Closes #26677.
2026-07-20 20:53:16 +02:00
RichardandVadim Zeitlin c250dfb706 Fix HTML MIME fallback without registry content type
Let wxFileSystemHandler fall back to its built-in extension MIME map
when the MIME manager finds a file type but cannot return a MIME type.
This keeps .htm and .html files recognized as text/html on stripped
Windows systems missing the registry Content Type value.

Fixes #20967.

Closes #26675.
2026-07-20 20:42:00 +02:00
RichardandVadim Zeitlin e04e3260fc Handle context-help mouse capture loss
End wxContextHelp mode when mouse capture is lost and only release the
mouse if the help window still owns capture after the modal help loop.
Add coverage for the capture-loss path so context help exits without
using another input event.

Fixes #21534.

Closes #26674.
2026-07-20 20:35:07 +02:00
RichardandVadim Zeitlin 4e9b924ec6 HTML: Honor TABLE ALIGN as table placement
Apply TABLE ALIGN to the wrapper that positions the table instead of
using it as the default alignment for TD/TH content. Leave cell text
alignment controlled by row/cell alignment, with the existing TH default.

Add a parser layout regression test and sample markup for the centered
table case.

Fixes #21853.

Closes #26672.
2026-07-20 20:23:34 +02:00
RichardandVadim Zeitlin 34191600f2 Fix generic calendar day colour painting
Reset the default text foreground and background before drawing each
calendar day, using the control colours instead of the cached system
background. This prevents selected, surrounding, or attributed dates from
leaking colour state into neighbouring day cells on non-default colours.

Fixes #21885.

Closes #26671.
2026-07-20 20:17:31 +02:00
RichardandVadim Zeitlin fbc474f4ed Track active wxGrid editor while editing
Remember the editor instance used for the shown edit control and use it
for visibility checks, painting, hiding, and saving. This keeps the edit
control lifetime independent of later attribute changes, so replacing a
cell or column editor while editing does not make wxGrid hide or save
through the wrong editor.

Add a regression covering replacement of a column bool editor while its
cell is being edited.

Fixes #21986.

Closes #26670.
2026-07-20 20:12:44 +02:00
RichardandVadim Zeitlin cb77a4e904 Correct wxHTML IMG ALIGN=CENTER placement
Capture the current text metrics when parsing image cells and use them to
position ALIGN=CENTER images relative to the surrounding text center and
not to the total cell height.

Add a parser regression test for the image and adjacent word vertical
centers.

Fixes #2976.

Closes #26669.
2026-07-20 20:06:14 +02:00
Richard 6243faa945 Drop unused variable 2026-04-28 20:43:29 -06:00
Richard 084be11ee7 Specify imperial units in page setup dialog when page size is imperial
Fixes #9177
2026-04-28 20:33:31 -06:00
Richard fecee7773a Replace \275 (DOS character code for 1/2) with .5 in page size comments 2026-04-28 15:17:24 -06:00
RichardandVadim Zeitlin 745ea8dd1f Correct name of user CMake presets file
There was a typo in this file name when it was added in 7f2268c4a0 (Add
CMakePresets.json, 2023-03-09).

See #23335.

Closes #25826.
2025-09-23 15:04:07 +02:00
RichardandVadim Zeitlin 02cd327f0e Document that wxIMPLEMENT_APP must be used in global scope
As this macro defines main(), it can't be used inside any namespace.

Closes #25772.

Closes #25775.
2025-09-08 23:07:17 +02:00