Thanks Pierre and Rafael for the help on cleaning the list styles
For the record, the small piece of code is
8<--
Sub CleanListStyles
Dim sFamilies as Variant
sFamily = ThisComponent.StyleFamilies.getByName("ParagraphStyles")
Dim newStyle as Object
Set newStyle =
Hi
I think you can do the macro by recording:
- Search & replace the List1 paragraph style with an unused style (e.g.
Content10)
- Search for all paragraphs in Content10
- Apply the numbering via the toolbar
- Remove numbering via the toolbar
- Replace the paragraph style Contents10 with
Thanks Rafael.
The issue is a bit more complex, possibly a bug or enhancement bug. More
details in
https://bugs.documentfoundation.org/show_bug.cgi?id=139693
What happens is that a list is direct-applied over the paragraph style
which already has the same list style as property.
To say in
Hi Olivier,
The following macro will iterate over all paragraphs and remove all of the
items that contain empty strings (both in numbered and bulleted lists).
Sub RemoveEmptyItems
Dim oEnum, oPar
oEnum = ThisComponent.Text.CreateEnumeration()
Do While oEnum.HasMoreElements()
Hi...
The situation is illustrated in the document below
https://nextcloud.documentfoundation.org/s/8YceNLp9Jy43by3
Olivier
Em 14/07/2021 12:19, Olivier Hallot escreveu:
Hi
I am looking to some clue/Basic code to detect and correct paragraphs
with bullet lists which have an extra,
Hi
I am looking to some clue/Basic code to detect and correct paragraphs
with bullet lists which have an extra, overlaying bullet applied.
In all guides, we use Paragraph styles List 1 and List 2 which are
connected to list styles Bullet * and Bullet - respectively.
However in many lists