Hello
AFAICS number-columns-spanned are not recognized for
table-columns.
A) Specification:
The first question for me is of overlapping is allowed here? I
did not find an explicit comment on this - maybe I looked not
hard enough.
At a first glance (when reading the spec to from-table-column) it
looks like it was allowed and that only the pair of column-number
+ number-columns-spanned has to be unique to handle something
like that:
<fo:table-column text-align="left"/>
<fo:table-column text-align="right"/>
<fo:table-column column-number="1"
number-columns-spanned="2" text-align="center"/>
But I think it is not true.
B) Implementation:
Currently it is ignored and this fragment
<fo:table-column column-number="1" number-columns-spanned="2"/>
<fo:table-column column-number="3"/>
throws a gap-error, but should not.
B1) I filed a bug (38244) of a possible including of
number-columns-spanned into the addColumn (in a early state i
have to confess) that only changes two things:
B1a) Incorporate the number-columns-spanned for the calculation
of the following cell for number-columns-repeated according
to spec 7.26.12.
B1b) Using the same rule even if no number-culumns-repeated is
given. If no overlapping is allowed there is no other chance
for implicit column-number to work with number-columns-spanned.
B1c) Mark all columns spanned with the used-flag.
B1d) The TableColumn will be cloned (commented out for now)
The main con is that in the columns list of the table object the
positions that are spanned (except the first) are empty (null)
and all layoutmanagers that need information from the
table-column have to handle it by their own to get the value from
the initial column of the spanned range.
C) An alternative idea is to implement number-columns-spanned in
a kind of number-columns-repeated fake, so that a
<fo:table-column column-number="1" number-columns-spanned="3"/>
would end up in three TableColumn objects
<fo:table-column column-number="1" number-columns-spanned="3"/>
<fo:table-column column-number="2" number-columns-spanned="2"/>
<fo:table-column column-number="3" number-columns-spanned="1"/>
For my goal (from-table-column) both are equal but i want to do it
in that way that fits best (or does not break) the layoutmanagers.
gerhard
--
.''`. gerhard oettl on Debian/Gnu Linux
: :' :
`. `'` gpg key: 1024D/D59131AA 2002-06-18
`-