Bug 76225 - paragraph's numbering style inherited from template isn't applied
Summary: paragraph's numbering style inherited from template isn't applied
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.7.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles-Paragraph
  Show dependency treegraph
 
Reported: 2014-03-16 06:42 UTC by Yury
Modified: 2019-04-07 07:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
template with specific numbering style 'Heading' for the headings (11.15 KB, application/vnd.oasis.opendocument.text-template)
2014-07-11 19:30 UTC, Yury
Details
document inst-ed from the vak_copy template (11.44 KB, application/vnd.oasis.opendocument.text)
2014-07-11 19:31 UTC, Yury
Details
document with switched template (11.43 KB, application/vnd.oasis.opendocument.text)
2014-07-11 19:38 UTC, Yury
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yury 2014-03-16 06:42:22 UTC
I have template with headings having specific numbering style applied to them (setting numbers styles, positions, prefixes etc.).

If I create a document from this template, I have headings with correct appearance of numberings, and switching numbering on paragraph off/on returns to the correct appearance, however:

problem 1) paragraph style 'Outline & numbering' tab has 'Outline numbering' (instead of specific name) in 'Numbering style' field, and that field is grayed out, too.

problem 2) If a document is created from another template (or from blank) and then assigned a template (using the Template Changer 1.2.5 extension), then template's paragraphs' numbering styles are never propagated to the respective paragraph styles in document, regardless of any subsequent changes to template and LibO offering to 'update styles because template was changed' -- generic numbering styles are used. The respective field in paragraph style looks like in problem 1.

***

I cannot compare that with the 4 series behaviour because there's either no DocumentInfo.Template or DocumentInfo.TemplateFileName field in 4 series document structures, so Template Changer 1.2.5 extension doesn't work.
Comment 1 Yury 2014-03-16 06:44:22 UTC
I couldn't really make sense from these issues:

https://bugs.freedesktop.org/show_bug.cgi?id=62032
https://bugs.freedesktop.org/show_bug.cgi?id=69813

but these seem to be related.
Comment 2 Yousuf Philips (jay) (retired) 2014-07-11 19:01:54 UTC
Dear Yury,

Thank you for submitting the bug. Can you possibly supply us with the template so we can test the functionality. Can you also test the template in a newer version of LibreOffice like 4.2.5.
Comment 3 Yury 2014-07-11 19:30:40 UTC
Created attachment 102639 [details]
template with specific numbering style 'Heading' for the headings
Comment 4 Yury 2014-07-11 19:31:33 UTC
Created attachment 102640 [details]
document inst-ed from the vak_copy template
Comment 5 Yury 2014-07-11 19:36:24 UTC
First two attachments illustrate the problem (1):

In the template, all heading styles on levels 1-3 have 'Heading' numbering style in their definitions. In the document (one line in 'Heading 2' style), the individual paragraph setting for the numbering is set manually to 'Heading', but that same paragraph style definition has grayed out 'Outline numbering' numbering style in its definition.

Works precisely the same in the versions 3.6.7.2 and 4.3.0.2.
Comment 6 Yury 2014-07-11 19:38:57 UTC
Created attachment 102641 [details]
document with switched template
Comment 7 Yury 2014-07-11 19:43:26 UTC
The thirs attachment illustrates problem (2), which seems to be just the aspect of the problem (1):

This document was created in default template, then switched to template 'vak_copy' with help of the addon 'Template Changer'. Same 'Heading 2' single line has default numbering style after switching numbering on. The numbering choice in the corresponding tab of the style definition is unchangeable. Individual paragraphs may be set to use the arbitrary numbering style, one by one.

Tested on 3.6.7.2, can't test on 4.* series, as the 'Template Changer' addon doesn't work there.
Comment 8 Buovjaga 2014-11-25 10:57:12 UTC
Confirmed and reproduced from scratch the problem 1 (Heading style Outline numbering).

Win 7 64-bit Version: 4.5.0.0.alpha0+
Build ID: 772befa08f02b08da1ab493896a0744bc73781c7
TinderBox: Win-x86@51-TDF, Branch:MASTER, Time: 2014-11-23_22:39:02
Comment 9 QA Administrators 2016-02-21 08:35:36 UTC Comment hidden (obsolete)
Comment 10 Yury 2016-04-18 07:50:10 UTC
Problem 1 still there on 5.1.2.1.0.

TemplateChanger doesn't work in 4.* and 5.* series, so can't check on problem 2.
Comment 11 Yury 2016-04-18 12:25:48 UTC
(In reply to Yury from comment #10)
> Problem 1 still there on 5.1.2.1.0.
> 
> TemplateChanger doesn't work in 4.* and 5.* series, so can't check on
> problem 2.

Found updated TemplateChanger 1.2.7c in #60592, and the problem 2 is still there, too -- I don't get correct numbering styles in paragraph (heading) styles.
Comment 12 QA Administrators 2017-05-22 13:23:36 UTC Comment hidden (obsolete)
Comment 13 Roman Kuznetsov 2019-04-06 22:32:23 UTC
>problem 1) paragraph style 'Outline & numbering' tab has 'Outline numbering' (instead of specific name) in 'Numbering style' field, and that field is grayed out, too.

It isn't a problem. Paragraph with Outline level that not equal "Text body" should to have own "Chapter Numbering" style
Comment 14 Buovjaga 2019-04-07 07:50:01 UTC
Good point. Let's close as notabug, then.