Bug 438744 - Styles and themes cannot be extended
Summary: Styles and themes cannot be extended
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Birt-Report-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-02 11:28 EDT by Douglas Bader CLA
Modified: 2014-08-26 21:12 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 Douglas Bader CLA 2014-07-02 11:28:58 EDT
Currently it appears that styles and themes cannot be extended. We have a usecase where it would be very useful to extend a theme and or a style.

We have:

1. A standard theme for all reports.
2. A sub-set of reports for which we want to alter the styles slightly and add some additional styles that should not be available to all reports. e.g. for most reports the numeric style is right-justified but for a sub-set of reports the numeric style should be left-justified but should inherit all of the other style settings from the normal numeric style.

Currently this doesn't appear to be possible with report libraries. You can create one library that depends on another (and make alterations to data sets, for example) but you can't make alterations to an existing theme or style from another library. 

Is there a reason for this behaviour? Ours would appear to be a fairly standard usecase.
Comment 1 Rick Lu CLA 2014-08-15 14:59:44 EDT
The design is to make styles/themes as simple as possible. 

The extension self introduce lots of complications, even though in the very beginning the purpose is very simple.

For the case you mentioned about, what we suggestion is:
1. create common style, theme in the library;
2. let the report use the library
3. for any specified color, font size.. etc. Set the value on the report items directly.

It will be better if the submitter can provide some examples.