Bug 145701 - When applying the style, it does not set the expected number format
Summary: When applying the style, it does not set the expected number format
Status: RESOLVED DUPLICATE of bug 62032
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-15 14:57 UTC by Regis Perdreau
Modified: 2021-11-21 08:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
chapter numbering settings (37.35 KB, image/png)
2021-11-15 14:58 UTC, Regis Perdreau
Details
paragraph style settings (33.00 KB, image/png)
2021-11-15 14:59 UTC, Regis Perdreau
Details
List style settings (33.36 KB, image/png)
2021-11-15 15:00 UTC, Regis Perdreau
Details
Test document (10.23 KB, application/vnd.oasis.opendocument.text)
2021-11-15 15:02 UTC, Regis Perdreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regis Perdreau 2021-11-15 14:57:30 UTC
Description:
Not sure it's really a bug but need some explanation.
When applying the style, it does not set the level expected number format .
We expect "1.1.1.1" and we have "1." 

Steps to Reproduce:
1. Clear chapter numbering level (tools->chapter numbering) by settings "none" in "number" and "paragraph style". See fig1.png
2. Select heading 3 in the style windows and click on "modify" with the right mouse button
3.In the paragraphe style windows (fig2.png), select "outline & list" tab
4. Check you have "Level 4" and "Numbering 123" (fig2.png)
5. click on the "edit style" button, the list style windows is open
6. click on the "outline" tab, select 1 .. 1.1 1.1.1 number format
7. click on the "customize" tab, check you have the preview with different level format as fig3.png (set "show sublevel" to 4 at level 4 if not)
8. click "apply" and close all settings windows
9. now select "Titre 3" with the mouse and click on Heading 3 on the style windows 

Actual Results:
We get "1 Titre 3"

Expected Results:
expected to get "1.1.1.1 Titre 3" as we can see in the preview


Reproducible: Always


User Profile Reset: No



Additional Info:
The question is bug or feature ?
Comment 1 Regis Perdreau 2021-11-15 14:58:45 UTC
Created attachment 176269 [details]
chapter numbering settings
Comment 2 Regis Perdreau 2021-11-15 14:59:34 UTC
Created attachment 176270 [details]
paragraph style settings
Comment 3 Regis Perdreau 2021-11-15 15:00:04 UTC
Created attachment 176271 [details]
List style settings
Comment 4 Regis Perdreau 2021-11-15 15:02:32 UTC
Created attachment 176272 [details]
Test document
Comment 5 Regis Perdreau 2021-11-15 15:12:28 UTC
The goal is to set line numbering independantly from chapter numbering with a style
Comment 6 phv 2021-11-16 15:11:55 UTC
Could you update the LibreOffice suite to version 7.2.2.2 (the last one)?
There has been a lot of fixes with the chapter and the multilevel outline since version 6.4.

This report seems to be a duplicate of bug #143990 but the affected version number does not match.

Thank you!
Comment 7 Regis Perdreau 2021-11-17 08:22:49 UTC
HI,

Same problem with Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded
Comment 8 Regis Perdreau 2021-11-17 09:02:38 UTC
It seems to be a numbering problem only , the numbering level is not set as expected (?) .Other attributes are set.
Comment 9 Kevin Suo 2021-11-17 14:30:52 UTC
This is not a bug. Per your test document, although in the numbering style the numbering for level 4 is set to show to the last level (i.e. 1.1.1.1), however for the actual text in your document the numbering level is still 1, thus it (correctly shows as 1.) 

In order to let it show 1.1.1.1, you need either hit tab 4 times in this paragrapsh, or use the numbering toolbar to increase the numbering level of your numbered paragraph.

With the "chapter numbering" function, this is handled by the chapter numbering function, but if you want to apply the numbering manually you should set the correct level by yourself.

In other words, for a Heading 4, its numbering level may be 3, but can also be 1. In your case it is set 1. This can be observed from the bottom-right of the screen (for your document it shows "numbering 123: level 1, outline 4). 

Close as NOTABUG.
Comment 10 Regis Perdreau 2021-11-17 14:54:32 UTC
ok, 

I understand the manual setting with tab, but the style preview shows hierarchical level, so user expects to obtain what the preview shows. What is the utility to specify the hierarchical level in this case ? There is something i don't understand probably...
Comment 11 Mike Kaganski 2021-11-21 08:08:08 UTC
To amend comment 9.

Outline level is something separate from list level, although often they are used together. As a separate thing, setting outline level on a paragraph does not mean that applying (connecting to) a list to the paragraph would also set corresponding list level.

There is an enhancement request tdf#62032, asking for allowing a paragraph style not only connect to list style, but also define its list level (which would be a pre-requisite for extending list style + paragraph style to cover what is only possible today using Chapter Numbering). See also tdf#104206 for my wording regarding this proposed feature.
Comment 12 Mike Kaganski 2021-11-21 08:11:44 UTC

*** This bug has been marked as a duplicate of bug 62032 ***