Issue 114329 - table of contents not correct when outline level set by conditional style
Summary: table of contents not correct when outline level set by conditional style
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 3.2.1
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2010-09-06 01:37 UTC by Joe Smith
Modified: 2017-05-20 11:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample document for testing and further information (13.93 KB, application/vnd.oasis.opendocument.text)
2010-09-06 01:38 UTC, Joe Smith
no flags Details
Sample document showing problem (183.40 KB, image/png)
2010-09-06 01:39 UTC, Joe Smith
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Joe Smith 2010-09-06 01:37:10 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.
Comment 1 Joe Smith 2010-09-06 01:38:11 UTC
Created attachment 71572 [details]
Sample document for testing and further information
Comment 2 Joe Smith 2010-09-06 01:39:40 UTC
Created attachment 71573 [details]
Sample document showing problem
Comment 3 Joe Smith 2010-09-06 03:08:33 UTC
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.
Comment 4 Regina Henschel 2010-09-06 08:11:12 UTC
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.
Comment 5 michael.ruess 2010-09-06 14:42:39 UTC
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.
Comment 6 Marcus 2017-05-20 11:19:34 UTC
Reset assigne to the default "issues@openoffice.apache.org".