Files
Neil Roberts ab4a841068 tdf#171135 Disable unrelated auto-format options when making bullets
If bSetNumRule and bSetNumRuleAfterSpace are set then auto formatting is
applied whenever space is pressed on a line with only two characters in
order to convert the two characters to a bullet point if applicable.
However this would also end up running all of the other auto-format
options such as removing trailing spaces. These aren’t designed to be
executed in the middle of editing a paragraph so it would end up
removing the space that the user just tried to type. This patch fixes
that by disabling any unrelated flags in SvxSwAutoFormatFlags before
executing the auto formatting so that only the bullet point formatting
will be applied.

A new method is added to SvxSwAutoFormatFlags to reset all of the flags
to false so that the bullet code can re-enable the relevant ones. In
order to avoid having a long list of assignments that is likely to get
out of sync as new options are added, the flag members of
SvxSwAutoFormatFlags are now declared using a macro that can be reused
to define the assignments.

Change-Id: I33155f45ba6cfd316222ad4d552beeb7979f8f4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205225
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit b16d490e5a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205347
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2026-05-19 19:57:41 +02:00
..
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-11-07 14:44:59 +01:00
2025-01-10 19:38:37 +01:00
2026-05-12 08:41:30 +02:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-10-10 11:13:00 +02:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-05-20 13:25:08 +02:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
…
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-08-17 13:40:18 +02:00
2025-01-10 19:38:37 +01:00
2025-10-10 11:13:00 +02:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-01-10 19:38:37 +01:00
2025-05-15 09:24:48 +02:00