Bug 207285 - Automattic chapter numbering
Summary: Automattic chapter numbering
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on: 204262
Blocks:
  Show dependency tree
 
Reported: 2007-10-24 07:10 EDT by Antti Karanta CLA
Modified: 2010-10-18 04:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Karanta CLA 2007-10-24 07:10:00 EDT
It would be useful to be able to have an option for automatic chapter numbering.

What I mean is that if the report contains html headings and this option is on, the headings are automatically prefixed with the corresponging chapter number.

An example: a report contains 

<h1>Fist chapter</h1>
<h2>A topic</h2>
text here
<h2>Another topic</h2>
more text
<h1>Second chapter</h1>
more story

would be replaced with something like this (+appropriate formattings I can't show here in plain text):
1. Fist chapter
1.1. A topic
text here
1.2. Another topic
more text
2. Second chapter
more story

etc.

How to implement this depends on the render format; for html the numbers would have to be explicitly written, propably also for pdf (not familiar w/ that format). For word doc it would be sufficient to have the headings render having the style HeadingX where X denotes the level of heading and turning on the option Format->Bullets and numbering->Numbered. For this to work (for word docs), bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=204262 has to be fixed first.