Issue 70748 - RFE: inserting headings into text documents
Summary: RFE: inserting headings into text documents
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 2.0.4
Hardware: All All
: P3 Trivial with 3 votes (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: ms_interoperability, usability
: 78355 (view as issue list)
Depends on:
Blocks: 41923 78301 5038 67281
  Show dependency tree
 
Reported: 2006-10-23 15:11 UTC by Oliver-Rainer Wittmann
Modified: 2013-08-07 14:43 UTC (History)
14 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver-Rainer Wittmann 2006-10-23 15:11:32 UTC
Currently, the only way to get a heading on a certain outline level into a text
document is to apply a certain paragraph style to a paragraph. This paragraph
style has to be assigned to the corresponding  list level of the outline style -
the outline style is a special list style, which is managed via menu "Tools -
Outline Numbering". By default, these paragraph styles are "Heading 1" for
outline level 1, "Heading 2" for outline level 2, ... and "Heading 10" for
outline level 10.
Thus, each heading by default is numbered according to the outline style
definition - by default, the outline style definition has numbering "none" on
each list level.

Insertion of headings into a text document should be independent from a certain
paragraph style and the outline style. The Writer should directly support
headings, which aren't numbered. This feature makes the Writer more usable in
the handling with headings.

This feature is also important for the compatibility to Microsoft Word.
Comment 1 Oliver-Rainer Wittmann 2006-10-23 15:12:37 UTC
accepted.
Comment 2 Oliver-Rainer Wittmann 2006-10-23 15:19:00 UTC
adding keywords.
Comment 4 michael.ruess 2007-06-13 07:11:37 UTC
*** Issue 78355 has been marked as a duplicate of this issue. ***
Comment 5 rbos 2007-08-16 09:06:11 UTC
For some reason the paragraph style -> numering style has been changed from
<blank> to <none>, which results in no numbering.  It is however not possible
at the moment to change the numbering style back to <blank>.
 
Is there a possible workaround, to set the numbering style back to <blank>?

Comment 6 Oliver-Rainer Wittmann 2007-08-17 07:42:55 UTC
OD->rbos:
A <blank> numbering style means, that an automatic (internal and unnamed)
numbering style is applied at the paragraph or the paragraph style. The special
numbering style for the outline/headings, which is managed under menu Tools -
Outline Numbering, is also such an automatic numbering style.
(Note: Hopefully, I will get the resources for OOo 3.0 to change these unnamed
numbering styles into named ones.)

I think you experienced a defect in OOo Writer, but the information you have
given is too less. I propose, that you submit a new defect issue for this - this
issue is a feature issue to implement a the new feature specified in the given
specification. Please provide as many information as you can about your defect
in the new issue and if possible attach a corresponding text document to
reproduce the defect. Thx.
Comment 7 rbos 2007-08-27 13:53:01 UTC
rbos->od

I don't think I encountered a bug, it seems to work as designed.  I though it does
not work as it is not intuitive what is currently happening.

I changed a setting via:
"Styles and Formatting" (F11) -> Heading 1 (modify)
The Paragraph Style: Heading 1 pops up -> in the tab "numbering" Numbering style 
is "blank".  Change change Numbering Style to "none".
This removes the number in front of the Heading 1 texts.

Now to get this back one has to go to tools -> outline numbering -> numbering ->
Change paragraph style from "none" to Heading 1.  While one would expect to be
able to change this via the "Styles and Formatting" (F11) -> Heading 1 (modify)
The Paragraph Style: Heading 1 widget.....




Comment 8 Oliver-Rainer Wittmann 2007-09-03 15:03:02 UTC
OD->rbos:

Sorry, I misunderstood you first comment.
Yes, you are right - this is the current inconsistent behavior.

Please have a look at the specification "Introduction of an outline level
attribute for paragraphs and paragraph styles", found at
http://specs.openoffice.org/writer/numbering/OutlineLevel.odt. In sub chapter
1.4 you will find the changes, we want to implement. Namely, we want to disable
the list box for the numbering style in the format paragraph style dialog, pane
"Numbering", if the paragraph style is assign to the outline style (menu Tools -
Outline Numbering).

By the way, the above given specification is the specification for this feature
issue, but I've forgotten to post it here. Now, it's done ;-)
Comment 9 Mathias_Bauer 2007-11-08 13:57:04 UTC
target 3.0
Comment 10 Oliver-Rainer Wittmann 2007-12-06 12:15:43 UTC
issue 5038 should be solved by the implementation of above mentioned specification
Comment 11 Oliver-Rainer Wittmann 2008-02-26 09:44:08 UTC
assigning to zhaojianwei, who is working on the implementation in cws outlinelevel
Comment 12 zhjwemail 2008-02-27 16:04:44 UTC
accepted
Comment 13 zhjwemail 2008-03-21 04:50:12 UTC
change milestone from OOo3.0 to OOo3.1
Comment 14 lendo 2008-10-20 13:39:38 UTC
Will this handy feature be implemented in OOo 3.1?
Comment 15 Oliver-Rainer Wittmann 2008-10-21 15:23:15 UTC
OD->lendo:
Yes. zhaojianwei has finished the main work in cws outlinelevel.
We are currently doing testing. There are also smaller task opened, which needed
to be done, before given the cws into the QA.
Comment 16 Oliver-Rainer Wittmann 2008-12-10 15:02:31 UTC
done in cws outlinelevel
Comment 17 Oliver-Rainer Wittmann 2008-12-10 15:04:05 UTC
OD->MRU: Please verify.
Comment 18 michael.ruess 2008-12-18 21:32:44 UTC
Verified in CWS outlinelevel.
Comment 19 warnerpj 2008-12-19 00:15:17 UTC
->OD. This fix has the same spec as 5038, so I doubt it addresses the problem
(specifically wrt figure and table numbering incrementing inside chapters, but
independant of headings).

Very happy to test it, but this issue is not listed in the latest snapshot. Any
link to a build with this issue 'fixed'?
Comment 20 warnerpj 2008-12-19 00:58:00 UTC
->OD: Actually, looking at 78301 & 5038, I think 5038 is not a duplicate of this
issue, if anything this issue is a subset of 5038. Ditto 78301.

In some sense the dependency tree should look like

70748-+
        + ---- 5038
78301-+
Comment 21 warnerpj 2008-12-19 07:12:06 UTC
Will verify check as soon as I can find an installer with this version.

My main concerns are that:

 - If I have a Heading 1 in Chapter 1, numbered 1.1, and I cut and paste this to
appendix 1, is should automatically be numbered A.1.

 - I need to be able to define table, figure, map & plate numbering that is
independant of heading numbering, but increments inside chapters. So if the
first FIGURE appears under a Heading 3 item that is numbered 5.2.3, then I would
expect the figure to be numbered 5.1.

 - If I change the top level heading format in a chapter from 'Chapter' to
'Appendix', all sub-headings should automatically change appropriately (g. from
'5.2.3' to 'A.2.3').

 - The ability to construct a List-of-Figures (and List-of-Plates etc) that
works like a TOC, but for the specified paragraph types.

 - The ability to have sub-figures (eg. Fig 1(a)) that function similarly to
paragraphs in terms of counter incrementing etc.

I'll be very happy if this has all been achieved!
Comment 22 Oliver-Rainer Wittmann 2008-12-19 10:42:06 UTC
->warnerpj:

Regarding the dependence structure of the mentioned issues you may be right. I
think implementing the specification of this issue is the first big step to
solve the problems and enhancement wishes of these issues. When cws outlinelevel
is integrated into the DEV300 code line of OOo 3.1, we can continue to work out
what is still missing around with feature area.

Regarding your concerns:
<quote>
 - If I have a Heading 1 in Chapter 1, numbered 1.1, and I cut and paste this to
appendix 1, is should automatically be numbered A.1.
</quote>
I think this will not work in cws outlinelevel. Such a feature depends on how
you build up your numbering. One condition that is needed to be hold to make
this feature work is that the cut-and-pasted paragraph (numbered 1.1) and the
paragraph "appendix 1" (numbered A) needs to be in the same list OR the
cut-and-pasted paragraph has to be moved from its list to the list of paragraph
"appendix 1".

<quote>
 - I need to be able to define table, figure, map & plate numbering that is
independant of heading numbering, but increments inside chapters. So if the
first FIGURE appears under a Heading 3 item that is numbered 5.2.3, then I would
expect the figure to be numbered 5.1.
</quote>
This is already possible since OOo 1.x.
Menu Insert - Fields - Others - pane "Variables" - type "Number range" - e.g.
selection "Table" - use feature "Numbering by chapter"

<quote>
 - If I change the top level heading format in a chapter from 'Chapter' to
'Appendix', all sub-headings should automatically change appropriately (g. from
'5.2.3' to 'A.2.3').
</quote>
This seems to be something like your first point.

<quote>
 - The ability to construct a List-of-Figures (and List-of-Plates etc) that
works like a TOC, but for the specified paragraph types.
</quote>
I do not know what you really mean. You can already create a table of contents,
which is only build-up by user defined paragraph styles.

<quote>
 - The ability to have sub-figures (eg. Fig 1(a)) that function similarly to
paragraphs in terms of counter incrementing etc.
</quote>
Here I am also unsure about what kind of feature do you mean.
Comment 23 warnerpj 2008-12-19 12:11:15 UTC
->OD:

Thanks for the quick reply!

<quote>
Regarding the dependence structure of the mentioned issues you may be right. I
think implementing the specification of this issue is the first big step...
</quote>

Sounds reasonable, but you may want to change the status of Issue 5038 to
reflect this. Otherwise the efforts of various contributors to 5038 will be lost.

<quote>
   <quote>
     - If I have a Heading 1 in Chapter 1, numbered 1.1, and I cut and 
       paste this to appendix 1, is should automatically be numbered A.1.
    </quote>

    I think this will not work in cws outlinelevel.... and the
    paragraph "appendix 1" (numbered A) needs to be in the same list OR the
    cut-and-pasted paragraph has to be moved from its list to the list of 
    paragraph "appendix 1".
</quote>

It would be great if we could define/override numbering formats at the paragraph
level so that an 'Appendix' paragraph format could be defined based on 'Chapter'
that just overrides the numbering (and restarts it).

<quote>
    <quote>
     - I need to be able to define table, figure, map & plate numbering that is
     independant of heading numbering, but increments inside chapters. So if the
     first FIGURE appears under a Heading 3 item that is numbered 5.2.3, then 
     I would expect the figure to be numbered 5.1.
    </quote>

    This is already possible since OOo 1.x.

</quote>

Last time I looked it was hard to define a 'Figure 2' (and 'Figure 3') format
that worked like 'heading 2/3' in terms of numbering; I want to be able to
specify that 'Figure 2' has numbering 'inside' of 'Figure 1' and that that the
format is lower case alpha. eg. 'Figure 1(a)'.

<quote>
    <quote>
     - If I change the top level heading format in a chapter from 'Chapter' to
    'Appendix', all sub-headings should automatically change appropriately 
    (eg. from '5.2.3' to 'A.2.3').
    </quote>

    This seems to be something like your first point.

</quote>

You are correct; I just wanted to emphasize the point and make it clear the
extent to which I htink it needs to be integrated.

<quote>
    <quote>
     - The ability to construct a List-of-Figures (and List-of-Plates etc) that
     works like a TOC, but for the specified paragraph types.
    </quote>

    I do not know what you really mean. You can already create a table 
    of contents, which is only build-up by user defined paragraph styles.
</quote>

afaict, TOC workd only on 'outline' paragraphs. We need a parallel mechanism
that produces a 'List of Figures' which is exactly like a TOC, but for 'Figure
1', 'Figure 2' etc.

Ditto for 'List of Plates' (based on paragraph formats for 'Plate 1', 'Plate 2' etc.

These lists are separate from the TOC, but would be formatted similarly. Bear in
mind that some books number Plates (usually pictures) in a numbering system that
is *outside* Chapter numbering, while others number them inside chapters.

<quote>
    <quote>
    - The ability to have sub-figures (eg. Fig 1(a)) that function similarly 
    to paragraphs in terms of counter incrementing etc.
    </quote>

    Here I am also unsure about what kind of feature do you mean.

</quote> 

See above. Let me know if you need more clarification. I am very happy to help.

The above requirements are why I suggested it would be more useful to associate
a counter with a paragraph format (in the thread for Issue 5038), and that we
should allow a counter to have an (optional) parent. We would also need to allow
the paragraph to specify/overide the numbering at the given outline level.



 

Comment 24 michael.ruess 2009-01-19 14:12:00 UTC
Checked in DEV300m39.