OpenOffice-OODoc - Table headings (or, first row of a table)

Posted on Thu Oct 6 23:55:08 2005 by mlcohen
Table headings (or, first row of a table)
My latest issue...
If you create a table in openoffice writer, the first row is automatically a "heading" row, with a different style. When you try to read the first row with oodoc, however, you get the first row of content, which is really the second row. This happens when using row,column addressing and also spreadsheet style letter/number addressing. This would be a great feature if it were easy to read the column names. I don't see any way of doing this without poking into the xml. And using the xml directly seems to be very difficult. Ideally, I'd like something like
@firstRow = $inFile->getTableHeadings($myTable);

The xml-access methods don't seem to make it easy to read this information. Maybe I'm missing an obvious way, I don't know. It seems like the easiest way would almost be to read in the xml as a text file and process it that way, avoiding oodoc altogether. But that can't be right, can it?

Thanks,
Matt
Write a response