Bug 156927 - Folding of ToC in Writer
Summary: Folding of ToC in Writer
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Outline-Folding
  Show dependency treegraph
 
Reported: 2023-08-25 22:40 UTC by Timur
Modified: 2023-08-28 20:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample ODT (84.59 KB, application/vnd.oasis.opendocument.text)
2023-08-25 22:40 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2023-08-25 22:40:13 UTC
Created attachment 189159 [details]
sample ODT

I do not know what exactly is at stake here, but something is..
In this document we can use Folding even in ToC, which is not usually the case. 
Users report this as a bug of partial folding, just level 1 and 2, not 3. 

But really there are 2 questions here:
1. Is folding normally possible in ToC? Why not? Would be nice to be able to fold all sublevels of selected heading. 
2. Why folding is possible here?
3. Why it works for document level 1 and 2 headings, which are not correct contents style level 1 headings, and stops at level 3 which is really level 1 contents.
Comment 1 Aron Budea 2023-08-26 02:45:45 UTC
Jim, since you implemented the feature, could you please add some insight here?
Comment 2 Jim Raykowski 2023-08-26 04:15:41 UTC
I think Contents 1-10 paragraph styles normally have their parent style as the Index paragraph style and have outline level none. In this document, paragraph styles Contents 1-4 have Default Paragraph Style as their parent. Content 1 has outline level 3, Content 3 has outline level 1, Content 2 and 4 have outline level none. So:

(In reply to Timur from comment #0)
> 1. Is folding normally possible in ToC? Why not? Would be nice to be able to
> fold all sublevels of selected heading.
I would say folding is not normally possible in ToC since normally Contents 1-10 have an outline level none. Bug 156282 maybe addresses folding all sublevels of a selected heading.
> 2. Why folding is possible here?
Folding is possible because paragraph styles Contents 1 and 3 have an outline level set other than none.
> 3. Why it works for document level 1 and 2 headings, which are not correct
> contents style level 1 headings, and stops at level 3 which is really level
> 1 contents.
I hope the explanations for questions 1 and 2 answer question 3.
Comment 3 Timur 2023-08-28 20:16:41 UTC
Thanks, Jim. 
I assume we may put this to Wont Fix for folding of default ToC. 
If not so, anyone is free to reopen this.