Bug 151629 - Styles->Load Styles from Template should import chapter numbering
Summary: Styles->Load Styles from Template should import chapter numbering
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Templates
  Show dependency treegraph
 
Reported: 2022-10-18 19:55 UTC by Steve Kelem
Modified: 2022-11-09 12:42 UTC (History)
4 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 Steve Kelem 2022-10-18 19:55:10 UTC
Description:
Styles->Load Styles from Template doesn't import Chapter Numbering
It's important to have the same set of Styles for every chapter (separate file) in a book.

Steps to Reproduce:
1.Edit a document, go to Tools->Chapter Numbering. Click on Numbering tab if not already selected.
2.For the first 4 levels, click on the level, set Numbering to 1,2,3,...
3.Click OK.
4.Save document.
5.Open new document.
6.Click on Styles->Load Styles from Template
7.Under Categories, scroll down, select Styles
8.Select Paragraph and Character, List, Frame, Page, Overwrite.
9.Select "From File...", choose the first file, saved above.

Actual Results:
The Chapter Numbering settings are not copied from the first document to the open document.

Expected Results:
I had to find and fill out the Chapter Numbering settings for every chapter that I want to be part of my book.
Chapter Numbering should be part of the saved Styles. If not, why not?


Reproducible: Always


User Profile Reset: No



Additional Info:
The software should have copied the Chapter Numbering when all the other Styles were copied.
Comment 1 Dieter 2022-11-02 06:29:24 UTC
I confirm the behaviour with

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Since chapter numbering is not part of a paragraph styl current behaviour might be the expected one. So I would treat it as enhancement request and add design-team. But if you add all settings of template in the new document, why don't you simply use the template itself?

cc: Design-Team
Comment 2 Heiko Tietze 2022-11-07 15:08:24 UTC
You define the list style per chapter numbering but don't assign it to the paragraph style (Outline > Outline Level; use the top-most Heading in the hierarchy). Works with templates, as Dieter commented, but apparently not for "Load Styles from Template".

Do we miss something, Mike?
Comment 3 Mike Kaganski 2022-11-07 16:25:14 UTC
(In reply to Heiko Tietze from comment #2)
> Do we miss something, Mike?

I don't quite get the question. Anyway, we are free to define how UI works, and IMO it would be reasonable to import chapter numbering settings together with list styles.
Comment 4 Dieter 2022-11-07 16:41:42 UTC
(In reply to Heiko Tietze from comment #2)
> You define the list style per chapter numbering but don't assign it to the
> paragraph style (Outline > Outline Level; use the top-most Heading in the
> hierarchy).

I don't understand this sentence. Heading 1-10 have list style "Chapter Numbering", but I can't see, where this list is defined. It's not part of the list syles in style tab of sidebar. Regarding to LO Help [1] i assme, that it is defined in Tools -> Chapter Numbering. If this is true, chapter numbering is part of the PS and should be imported with "Load Styles from Template". (So I've changed my opinion from comment 1).