I'm not certain but this might not hurt more than it's going to help!
It looks like you can get to the header row, but I'm not certain how.
I have an Open Office document which has approximately a dozen tables.
if I use:
CPAN::Forum
OpenOffice-OODoc - Re: No thoughts on table headings?
| Posted on Fri Oct 28 05:55:55 2005 by bob in response to 1249 (See the whole thread of 4) |
| Re: No thoughts on table headings? |
|
I'm not certain but this might not hurt more than it's going to help! It looks like you can get to the header row, but I'm not certain how. I have an Open Office document which has approximately a dozen tables. if I use:
my @rows = $content->getTableRows($table);
and then look at the first element, $rows[0], in all cases, _but one_, it does not see the header row. There is one table for which it returns the header row. and that table seems to start off with a simpler table definition :
<table:table table:name="distribution" table:style-name="distribution">
<table:table-column table:number-columns-repeated="4" table:style-name="distributio\
n.A"/>
<table:table-row>
<table:table-cell table:style-name="distribution.A1" table:value-type="string">
<text:p text:style-name="Table Heading">To</text:p>
</table:table-cell>
<table:table-cell table:style-name="distribution.A1" table:value-type="string">
<text:p text:style-name="Table Heading">Address</text:p>
</table:table-cell>
<table:table-cell table:style-name="distribution.A1" table:value-type="string">
<text:p text:style-name="Table Heading">Fax</text:p>
</table:table-cell>
<table:table-cell table:style-name="distribution.D1" table:value-type="string">
<text:p text:style-name="Table Heading">Phone</text:p>
</table:table-cell>
</table:table-row>
<table:table-row>
whereas the other is:
<table:table table:name="emg_le" table:style-name="emg_le">
<table:table-column table:style-name="emg_le.A"/>
<table:table-column table:style-name="emg_le.B"/>
<table:table-column table:style-name="emg_le.C"/>
<table:table-column table:style-name="emg_le.D"/>
<table:table-column table:style-name="emg_le.E"/>
<table:table-column table:style-name="emg_le.F"/>
<table:table-column table:style-name="emg_le.G"/>
<table:table-column table:style-name="emg_le.H"/>
<table:table-column table:style-name="emg_le.I"/>
<table:table-header-rows>
<table:table-row>
<table:table-cell table:style-name="emg_le.A1" table:value-type="string">
<text:p text:style-name="P3">SIDE</text:p>
</table:table-cell>
<table:table-cell table:style-name="emg_le.B1" table:value-type="string">
<text:p text:style-name="P3">NERVE</text:p>
</table:table-cell>
<table:table-cell table:style-name="emg_le.B1" table:value-type="string">
<text:p text:style-name="P3">STUDY TYPE</text:p>
</table:table-cell>
<table:table-cell table:style-name="emg_le.B1" table:value-type="string">
<text:p text:style-name="P3">STIMULATION SITE</text:p>
</table:table-cell>
I have no recollection of how I created the table that uses 'table-number-columns-repeated=4'
If you find out let me know. I'd like to be able to get to the header row for each table too. Bob |
| Direct Responses: 1270 | Write a response |
(4)
]