You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Keiron Liddle <ke...@aftexsw.com> on 2000/12/08 11:53:33 UTC

Tables - improvements

All,

I have implemented some extra functionality for tables.
Please take a look, try it out and make any comments.

Its got table headers, footers (a bit dodgy) and some other changes.

It still needs lots more work, especially in handling errors and
possible infinite loops.

Attached is a file with a diff and two new files.

Keiron

Re: Tables - improvements

Posted by Keiron Liddle <ke...@aftexsw.com>.
Karen,

I leave those things to you since you have some code and I will probably 
be doing some other stuff in the near future.
I am still looking at some minor problems with the current table code.

Karen Lease wrote:

> Keiron,
> 
> Since I seem to be stuck in properties, I'm glad that you have fixed the
> most urgent table bugs.
> I had written code for something called a VSpanMgr which is supposed to
> manage vertical spans (ie, row spans). I had also done some code to
> handle cells directly in table body (header, footer) without rows, and
> to handle proportional column widths. But I haven't looked into trying
> to integrate it with your latest version. I would like to do this over
> the Christmas holidays, unless you have plans to attack it yourself.
> -Karen
> 


Re: Tables - improvements

Posted by Karen Lease <kl...@club-internet.fr>.
Keiron,

Since I seem to be stuck in properties, I'm glad that you have fixed the
most urgent table bugs.
I had written code for something called a VSpanMgr which is supposed to
manage vertical spans (ie, row spans). I had also done some code to
handle cells directly in table body (header, footer) without rows, and
to handle proportional column widths. But I haven't looked into trying
to integrate it with your latest version. I would like to do this over
the Christmas holidays, unless you have plans to attack it yourself.
-Karen

Keiron Liddle wrote:
> 
> I have fixed the tables so that the errors found in the example from
> Corinna now work properly.
> I have also fixed a problem where the space efter was not being removed
> from removed rows due to keep-with etc.
> The colspan works correctly and the information about the start offset
> is stored in the cell state.
> 
> I also added a bit of vertical alignment for table cell contents.
> 
> The row spanning looks a bit difficult since the table body will need to
> maintain a list of the cells that go for more than a row, the
> accumulative rows heights for the spanning cell and the current row that
> the spanning cell has spanned. And of course the problems with the
> spanning cell going over a page.
> 
> Corinna Hischke wrote
> 
> > - Table headers worked well.
> > - Table footers merge with the last and last but one row (see table 3 in the
> >   examples), if the table is continued on a third page.
> > - Whenever the effect with those merged rows takes place, the row after the
> >   table header vanishes (see again table 3, first and second row). This may
> > also
> >   be based on the "keep-with-next" property which I used there.
> > - If a table has a header and a footer, it may happen, that one page
> >   contains header and footer but no row (see table 3 on page 3).
> > - A cell spanning two columns at the beginning of a row is not displayed
> >   correctly, if the rest of the row is spanned by another cell (see table
> > 4).
> >
> > The example contains a fifth table for tests of spanned rows (which is not
> > contained in your patch, I assume).
> >
> > The example fo-file and the resulting pdf are attached.
> >
> > - Corinna



Re: Tables - improvements

Posted by Keiron Liddle <ke...@aftexsw.com>.
I have fixed the tables so that the errors found in the example from 
Corinna now work properly.
I have also fixed a problem where the space efter was not being removed 
from removed rows due to keep-with etc.
The colspan works correctly and the information about the start offset 
is stored in the cell state.

I also added a bit of vertical alignment for table cell contents.

The row spanning looks a bit difficult since the table body will need to 
maintain a list of the cells that go for more than a row, the 
accumulative rows heights for the spanning cell and the current row that 
the spanning cell has spanned. And of course the problems with the 
spanning cell going over a page.


Corinna Hischke wrote

> - Table headers worked well.
> - Table footers merge with the last and last but one row (see table 3 in the
>   examples), if the table is continued on a third page.
> - Whenever the effect with those merged rows takes place, the row after the
>   table header vanishes (see again table 3, first and second row). This may
> also
>   be based on the "keep-with-next" property which I used there.
> - If a table has a header and a footer, it may happen, that one page
>   contains header and footer but no row (see table 3 on page 3).
> - A cell spanning two columns at the beginning of a row is not displayed
>   correctly, if the rest of the row is spanned by another cell (see table
> 4).
> 
> The example contains a fifth table for tests of spanned rows (which is not
> contained in your patch, I assume).
> 
> The example fo-file and the resulting pdf are attached.
> 
> - Corinna


Re: Tables - improvements

Posted by Corinna Hischke <co...@infix.de>.
Hi Keiron

It's great you are working on tables! I missed especially the table headers.

I did some testing with your patch and found these effects:

- Table headers worked well.
- Table footers merge with the last and last but one row (see table 3 in the
  examples), if the table is continued on a third page.
- Whenever the effect with those merged rows takes place, the row after the
  table header vanishes (see again table 3, first and second row). This may
also
  be based on the "keep-with-next" property which I used there.
- If a table has a header and a footer, it may happen, that one page
  contains header and footer but no row (see table 3 on page 3).
- A cell spanning two columns at the beginning of a row is not displayed
  correctly, if the rest of the row is spanned by another cell (see table
4).

The example contains a fifth table for tests of spanned rows (which is not
contained in your patch, I assume).

The example fo-file and the resulting pdf are attached.

- Corinna

----- Original Message -----
From: "Keiron Liddle" <ke...@aftexsw.com>
To: <fo...@xml.apache.org>
Sent: Friday, December 08, 2000 11:53 AM
Subject: Tables - improvements


> All,
>
> I have implemented some extra functionality for tables.
> Please take a look, try it out and make any comments.
>
> Its got table headers, footers (a bit dodgy) and some other changes.
>
> It still needs lots more work, especially in handling errors and
> possible infinite loops.
>
> Attached is a file with a diff and two new files.
>
> Keiron
>