Apache OpenOffice (AOO) Bugzilla – Issue 114329
table of contents not correct when outline level set by conditional style
Last modified: 2017-05-20 11:19:34 UTC
Goal: Create a long outline and automatically produce a (condensed) table of contents from the top two levels of the outline. Approach: Use conditional paragraph styles for the outline items and set the Outline & Numbering > Outline > Outline level property for the styles applied at the top two levels. That should allow the ToC to pick up the desired items from the outline. Problem: This works for the first creation of the ToC; however, if the outline structure is changed and the ToC updated, items at new levels may appear in the ToC when they should not, or may appear at the wrong level in the ToC. It seems this happens because the outline level property does not get adjusted when the list level changes (promote/demote) and a new paragraph style takes effect. Format > Paragraph > Outline & Numbering after promoting or demoting the item shows that the property has not changed along with the other style properties.
Created attachment 71572 [details] Sample document for testing and further information
Created attachment 71573 [details] Sample document showing problem
PS: It seems there is an easy workaround: after promoting or demoting a list item, Format > Default Formatting seems to reset the outline level property and the ToC can be updated correctly after that.
I can reproduce it as described using DEV300m86 on WinXP. Look at the status bar to see, that the outline levels are correctly set by changing the numbering level. This shows, that the condition works. The navigator shows the error too. In the navigator the text of the demoted (now body text) item is erased, but the space is still there.
MRU->OS: Outline paragraphs set via conditional style are displayed incorrectly in the TOC when their level becomes changed. Open attached document, demote paragraph 1.2 to level 3 (is then numbered 1.1.1), update the TOC -> it is still available in TOC (and aligned with 2nd level), though third style level does have "Outline" property set.
Reset assigne to the default "issues@openoffice.apache.org".