OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Proposal for refinement of Table Templates


Dear TC members,

while implementing the table templates we have agreed a while ago, 
Christian noticed an issue with the current schema, that he described 
below, together with a proposal how to solve the issue.

Best regards

Michael

> In ODF 1.2 I proposed a change to Section "14.5 Table Templates" and added
> "8.1.1.3 Table Template Name", "8.1.1.8 Use Banding Rows Styles" and
> "8.1.1.9 Use Banding Columns Styles".
> 
> This proposal allowed to add dynamic templates to tables. For example if the user
> wants to have odd rows to have different colors than even rows he can set
> the "table:use-banding-rows-styles" to "true" and assign a table template style
> by using the "table:template-name". The table template style can have different
> styles for even and for odd rows. Now if the user inserts new rows the application
> knows how to reassign the styles for even and odd rows.
> 
> In "14.5 Table Templates" there is a priority defined for each style of a table template.
> There even rows and odd rows have priority before even columns and odd columns.
> Now if a user wants to have banding for both rows and columns, this is not possible.
> Each cell is already either on an even or odd row, so the even/odd column styles will
> never have a priority. To solve this problem, the designer of a table template could
> omit the style for either the odd or even rows.
> 
> But this is not possible because currently the styles for odd and even rows are grouped
> inside an optional element in the relaxng of the <table:template> element.
> 
> To enable users to create table templates that work with both banded rows and columns
> I propose a change to the relaxng of the <table:template> element.
> 
> change
> [...]
> <optional>
>  <ref name="table-even-rows"/>
>  <ref name="table-odd-rows"/>
> </optional>
> <optional>
>  <ref name="table-even-columns"/>
>  <ref name="table-odd-columns"/>
> </optional>
> [...]
> 
> to
> [...]
> <optional>
>  <ref name="table-even-rows"/>
> </optional>
> <optional>
>  <ref name="table-odd-rows"/>
> </optional>
> <optional>
>  <ref name="table-even-columns"/>
> </optional>
> <optional>
>  <ref name="table-odd-columns"/>
> </optional>
> [...]
> 
> 
> Regards,
> Christian


-- 
Michael Brauer, Technical Architect Software Engineering
StarOffice/OpenOffice.org
Sun Microsystems GmbH             Nagelsweg 55
D-20097 Hamburg, Germany          michael.brauer@sun.com
http://sun.com/staroffice         +49 40 23646 500
http://blogs.sun.com/GullFOSS

Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
	   D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]