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

          Priority: medium
            Bug ID: 74552
          Assignee: [email protected]
           Summary: EDITING: User defined header styles need demoting and
                    promoting, even if they know their right outline level
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.1.4.2 release
         Component: Writer
           Product: LibreOffice

Created attachment 93435
  --> https://bugs.freedesktop.org/attachment.cgi?id=93435&action=edit
An example odt file

Problem description: 

User defined header styles do not behave as default header styles. The user
needs to demote or promote each header paragraph in the text editor to the
right level, even if the new styles know their right Outline level from Format
> Styles and Formatting > Paragraph Styles
I add that outline level is correctly used by automatic table of contents.

This bug could be similar to:
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=62032

Steps to reproduce:

1. Open: Format > Styles and Formatting > List Styles

2. Create new numbering style "Outline numbering for appendix"
perfectly identical to the wired "Outline numbering" except for numbering of
the first level: use letters instead of numbers (eg. Appendix A)

3. Open: Format > Styles and Formatting > Paragraph Styles
and create new styles "Heading 1 Appendix", "Heading 2 Appendix", ... linked
with corresponding "Heading 1", "Heading 2", ...

4. Set for each new style the correct Outline level:
- level 1 for "Heading 1 Appendix",
- level 2 for "Heading 2 Appendix",
- ...
and Numbering style: "Outline numbering for appendix"

5. Back in the text create a new headers for appendix: "Title of appendix level
1", "Title of appendix level 2", ...
then assign the right new style to each one: "Heading 1 Appendix", "Heading 2
Appendix", ...


Current behavior:

In the text, both "Title of appendix level 1", "Title of appendix level 2"
appear as level 1:

A. Title of appendix level 1
B. Title of appendix level 2

I have to demote "title of appendix level 2" to obtain the desired behaviour:

A. Title of appendix level 1
A.1 Title of appendix level 2


Expected behavior:

I expect this second behavior automatically:

A. title of appendix level 1
A.1 title of appendix level 2

Each new appendix heading style knows its Outline level from Format > Styles
and Formatting > Paragraph Styles

There should be no need to demote the appendix heading to obtain the desired
behavior.

These new headings (eg. "Heading 1 Appendix"...) should be treated as much as
possible as the default ones from Tools > Outline numbering

Thank you very much for your kind attention.
Operating System: Fedora
Version: 4.1.4.2 release

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to