Issue 57691 - A document should allow more than one Outline numbering rule
Summary: A document should allow more than one Outline numbering rule
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.0
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 17:04 UTC by jpfisher
Modified: 2013-02-07 22:38 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jpfisher 2005-11-10 17:04:33 UTC
When using numbering styles to control chapter titles and numbering, and NOT
using outline-level, numbering does not correctly re-order under some but not
all cases.
(see rejected bug http://www.openoffice.org/issues/show_bug.cgi?id=57531 for
more explanation)

recreate:
create an odt document with several pages. 
make sure that styles Heading1 and Heading2 have no numbering style.
modify (para style) Heading1 to start on a fresh page. ( probably irrelevant,
but... )
modify (list style) Numbering1 to be: before=" Chapter "  after="  "
numbering="1,2,3"  level="1-10"
modify Numbering2 to be: before=" Appendix " after="  " numbering="A,B,C"
level="1-10"

then

assign Heading1 to 6 or 8 lines through the doc.
for the first 4 or so, assign Numbering1
for the rest assign Numbering2

now

in Navigator you should see correct chapter and appendix numbering.

now try

changing the scheme as if you were editing and changing your mind about where
chapters start and how many there are. NOTE: you must use
format-bullets&num-remove as well as changing the para style to change the
scheme of chapters and appendices.

What I found:
The A,B,C numbering re-ordered itself correctly on additions, deletions, and
moves. The 1,2,3 numbering ( in Numbering1 ) did not. I got Chap1 - Chap3
-Chap4, or Chap1 - Chap1

thanks.
Comment 1 michael.ruess 2005-11-15 14:16:30 UTC
I do not know what you really expect here... You assign list styles (Numbering
1, Numbering 2) to certain Heading paragraphs which is one numbering rule. Than
you try to assign a "real" outline numbering to heading paragraphs via the
"Format.Numbering" dialog, which will lead to a new (second) numbering rule
(this is also the same you do when assigning a numbering to a heading paragraph
via "Tools.Outline numbering").
The paragraph which have assigned a list style will be of course counted
independently from all other paragraphs which do NOT have such a list style.

Please explain a bit more precisely, what you mean by "changing the scheme as if
you were editing..."
Comment 2 jpfisher 2005-11-15 16:58:11 UTC
OK sorry I was confusing ;)

I don't agree that your description fits what I am doing, so let me start over.
Please feel free to  describe a proper way - I've made no attempt to read the code.

goal:
maintain an odt doc with Chapters and Appendices both at heading level 1, with
automatic numbering, and 1,2,3 numbering for Chapters, and A,B,C numbering for
Appendices. They have to both be at level1, because I also have to create a pdf
with the same doc - its distributed as a pdf and in print.


> You assign list styles (Numbering
> 1, Numbering 2) to certain Heading paragraphs which is one numbering rule.

No, I have two list styles for one heading style & therefore two list styles for
one outline level.

> Than
> you try to assign a "real" outline numbering to heading paragraphs via the
> "Format.Numbering" dialog, which will lead to a new (second) numbering rule...
>>JF said "NOTE: you must use
>> format-bullets&num-remove as well as changing the para style to change the
>> scheme of chapters and appendices."

No, just the opposite, I am expressly not using local Format-Numbering, except
to remove all numbering. Not necessary with a fresh doc BTW. Needed if you
change Chaps&Appx because the numbering is carried in the manually assigned list
style, not automatically in the paragragh Heading style.

> (this is also the same you do when assigning a numbering to a heading paragraph
> via "Tools.Outline numbering").

Tools-OutlineNumbering is to be avoided in this workaround.

> The paragraph which have assigned a list style will be of course counted
> independently from all other paragraphs which do NOT have such a list style.

I don't understand what you are saying here, sorry.

> 
> Please explain a bit more precisely, what you mean by "changing the scheme as
> if  you were editing..."

Ah, That was poorly expressed. sorry. I mean as one writes a big document,
sometimes one needs to split a chapter, add or delete chapters and appendices. I
*should* be able to assign some arbitrary body text Heading1, assign Numbering1,
and automatically create a new  Chapter with proper numbering of all Chapters.
Same for Appendices with Numbering2. Same for deletion, or moving an existing
Chapter/Appx.

workaround technique:
1) Avoid local formatting with Format-Numbering dialog except to remove
Chap/Appx from text.

2) Avoid Tools-OutlineNumbering dialog altogether for level 1.

3) Use a combination of Heading1 style and an appropriate Numbering (i.e list)
style to produce a chapter or an appendix title.

4) To remove or move a chap/appx title you must undo both steps: change from
Heading1 to some other paragraph style, and use Format-Numbering to select
"none". { do not ever assign a dummy empty list style to all un-numbered
paragraphs - this slows the Navigator to a crawl.}

HTH, John


Comment 3 michael.ruess 2005-12-15 10:28:08 UTC
Reassigned to requirements.
Currently Writer can only support more than one Outline style via using list styles.