Bug 120464 - Creating a new Heading style from one assigned to Chapter Numbering does not inherit outline level
Summary: Creating a new Heading style from one assigned to Chapter Numbering does not ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 161819 (view as bug list)
Depends on:
Blocks: Writer-Styles-Heading
  Show dependency treegraph
 
Reported: 2018-10-09 16:46 UTC by Mike Kaganski
Modified: 2024-08-22 06:16 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2018-10-09 16:46:50 UTC
When creating a new paragraph style based on a pre-existing Heading N style (or, generally, on a style which is used in Chapter Numbering), the newly created style does not have the parent's outline level (it has "Body text" level). It's natural that participation in Chapter Numbering cannot be inherited; but the level itself should.

The problem here is that users don't expect *some* property of heading styles to not be inherited, and are confused not seeing the newly created styles in Navigator/ToC etc. Also, maintaining the structure could be more difficult in case of changing the level, because children styles need to be modified separately.

Steps to reproduce:

1. Create a new text document.
2. Make sure that Heading 1 is used in Chapter Numbering function.
3. Right-click the Heading 1 style in Styles sidebar pane, and choose New...

Actual:
On the Outline & Numbering page, see that outline level is Body text.

Expected:
The outline level is the same that Heading 1 has. If Heading 1 outline level changes (e.g., editing Chapter Numbering), children that haven't overridden the setting explicitly should also get the change.
Comment 1 Roman Kuznetsov 2018-10-11 16:21:16 UTC
confirm in

Версия: 6.1.2.1 (x64)
ID сборки: 65905a128db06ba48db947242809d14d3f9a93fe
Потоков ЦП: 4; ОС:Windows 10.0; Отрисовка ИП: GL; 
Локаль: ru-RU (ru_RU); Calc: CL
Comment 2 Xisco Faulí 2018-10-12 12:26:27 UTC
Also reproduced in

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 3 QA Administrators 2021-04-08 03:39:20 UTC Comment hidden (obsolete, spam)
Comment 4 Justin L 2022-04-09 12:04:21 UTC
Actually, there is a lot of very specific code that very intentionally makes sure this anomaly happens. Changed the title to clarify that it isn't Heading X per se, but just because they tend to be assigned to Chapter Numbering.

Quite  honestly, the whole concept of a Chapter Numbering (as one specific style) seems pointless to me. It may have served a purpose when we didn't have the plumbing to handle it generically, but most of the plumbing is now there. Based on the code I saw, I at first assumed it was a MS concept, but I found it was actually a LO thing that was really messing up compatibility with MS documents.
Comment 5 Justin L 2022-04-20 08:40:18 UTC
/sw/source/core/doc/fmtcol.cxx  SwTextFormatColl::AssignToListLevelOfOutlineStyle
Comment 6 QA Administrators 2024-04-20 03:15:35 UTC Comment hidden (obsolete, spam)
Comment 7 Buovjaga 2024-08-22 06:16:03 UTC
*** Bug 161819 has been marked as a duplicate of this bug. ***