On 11/23/2010 22:42, TJ Frazier wrote:
Short take: Banding works fine, borders poorly.
*Banding problems (minor)*
1) Tables without headings start with a shaded row. That should be easy
to allow for.
Fixed. BandIt now recognizes the setting, Table > Heading rows repeat
2) Tables that page-break may start the second page with two shaded rows
(the header and the data row) if the break came at an odd number of
rows. Possible resolutions are (a) just ignore it; (b) maybe use the
View component to try to learn if a page break has occurred; (c) add new
macro to start at given row (which would be the first data row on the
new page); (d) push the offending table down a row.
Plan: just ignore it, unless somebody complains.
*Mysterious border problems*
1) Some tables work fine. Some, only the rows after a page break work.
Some, only the last row works. Some show no borders at all.
Investigation of the rows that work shows the cell properties have been
set to the table-border properties (how? I didn't do that!). This may be
somehow related to the AutoFormat facility, which does this kind of
thing. I have not yet investigated the object "User defined properties"
in the tables. So far, I am unable to account for any of this behavior.
Some of this is Writer's fault. For a table with "Heading rows repeat"
set, after BandIt formatting, borders are not displayed on the first
page (or intermediate pages) of the table, but only on the last page.
(Borders do display for tables without headers.) Bug. Will file.
Best workaround to date is with AutoFormat. Add a new AutoFormat from a
short table, and apply to the long one.
AutoFormats *do* save in templates, based on the following:
I created a new AutoFormat from an existing table, and saved the whole
document as a template. Then I edited out all the text, and re-saved. A
new (Untitled 1) document created from the template showed the new
AutoFormat as an option.
Probably the easiest way to save an AutoFormat in a template (I haven't
tried this) would be to edit a template, then paste in a table, and
create an AutoFormat from it, then delete the table again, and save.
There is no GUI way to move AutoFormat table styles around; they don't
show in the Template Management dialog.
*Testing*
I have been testing with the published v3.2 "0219WG3 - Keyboard
shortcuts" which has lots of tables, but frequently loads badly. The
Math Guide, 0800MG3, is a lot easier to work with. The "Attributes"
table shows the no-border problem; all other tables work fine. It also
has tables without headers, and a table that page-breaks on an odd row.
For anyone who wants the code, I will email it privately; it's only
about a 4 KB text file, of type ".bas", and loads with the "Insert Basic
Source" icon in the IDE.
--
/tj/
---------------------------------------------------------------------
To unsubscribe, e-mail: authors-unsubscr...@documentation.openoffice.org
For additional commands, e-mail: authors-h...@documentation.openoffice.org