Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336683 - XslFoDocumentBuilder should allow for basic page styling
Summary: XslFoDocumentBuilder should allow for basic page styling
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.6.0   Edit
Assignee: Torkild Resheim CLA
QA Contact: David Green CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2011-02-09 03:42 EST by Torkild Resheim CLA
Modified: 2011-08-05 16:38 EDT (History)
0 users

See Also:
greensopinion: iplog+


Attachments
Added basic page styling for XslFoDocumentBuilder (12.28 KB, patch)
2011-02-10 06:05 EST, Torkild Resheim CLA
greensopinion: iplog+
Details | Diff
mylyn/context/zip (26.05 KB, application/octet-stream)
2011-02-10 06:05 EST, Torkild Resheim CLA
no flags Details
mylyn/context/zip (31.60 KB, application/octet-stream)
2011-08-05 16:37 EDT, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torkild Resheim CLA 2011-02-09 03:42:12 EST
The XslFoDocumentBuilder is rather limited when it comes to page styling. At least some of the properties available should be supported so that users can define various page sizes, regions and margins.

We should allow for the following properties to be set on *simple-page-master*:
* page-width
* page-height
* margin-top
* margin-bottom
* margin-left
* margin-right
* reference-orientation

The following properties should be allowed on *region-body* inside of *simple-page-master*:
* margin-top
* margin-bottom
* margin-left
* margin-right

And we should allow for the following elements inside *region-body*
* region-before (extent & precedence)
* region-after (extent & precedence)
* region-start (extent & precedence)
* region-end (extent & precedence)
Comment 1 Torkild Resheim CLA 2011-02-10 06:05:19 EST
Created attachment 188674 [details]
Added basic page styling for XslFoDocumentBuilder

I missed the fact that page-width and page-height was already supported but some other changes have been done:
* Unless a value is assigned to the *pageMargins* member variable the existing "margin" value will be used on the *simple-page-master*. 
* Likewise if a value is assigned to *bodyMargins* member variable it will override the margin set by the automatic footer.
* Similar is handling of *region-after*. If the region has been specified it will override the automatically generated region.
* Other regions may also be specified.
Comment 2 Torkild Resheim CLA 2011-02-10 06:05:21 EST
Created attachment 188675 [details]
mylyn/context/zip
Comment 3 Torkild Resheim CLA 2011-06-01 07:46:08 EDT
I consider this issue fixed. The patch just needs to be applied if there is any interest.
Comment 4 David Green CLA 2011-08-05 16:37:16 EDT
Patch applied, thanks Torkild!
Comment 5 David Green CLA 2011-08-05 16:37:21 EDT
Created attachment 201023 [details]
mylyn/context/zip