Hi Robert,
Robert Vojta wrote:
[..]
In OOo3.0 you are able to query the "RowSpan" property. If the value is
negative, it is an invisible cell.
Hmm, this sounds good, but what about this small modification. Merge
A4:A6 cells and it would be nice if RowSpan can contain these values
...
A4.RowSpan = 2
A5.RowSpan = -1
A6.RowSpan = -2
If we have this issue with the names of invisible cells, you will not
get the name of invisible cells and you will not able to create a cell
cursor with the name of a invisible cell.
So you will never see a negative RowSpan attribute, because all visible
cells have a positive value.
... it gives you a possibility to say that master cell of hidden cell
A6 is A[6 - 2 = 4]. So, final logic of RowSpan in this case is ...
- RowSpan = 1 => simple cell,
- RowSpan >= 1 => cell spanned over rows,
- RowSpan = 0 => invisible cell, master cell is on the same row
(ColumnSpan says where)
- RowSpan < 0 => invisible cell, master cell is Abs( RowSpan) rows up.
And it would be nice if there will be introduced ColumnSpan property
too with the same logic.
There are no plans for a ColumnSpan property at the moment.
I work a lot of with complex tables, spreadsheet components, etc. The
ideal API for tables should allow me to ...
- retrieve RowSpan, ColumnSpan as I described (not only -1, but -3,
-4, -5, ...)
- getCellNames() should return all cell names (even invisible)
- travel over all cells, even invisible
... then I can easily reconstruct table structure, find master cells,
check if cell is hidden or not, ...
I have a questions. Is there a plan (document) which describes future
work in this area (complex text tables)? I would like to see it if it
exists and if it is possible.
No, there is no such document and our current plan is to fix the bug by
hiding "invisible" cells for the API.
Regards
Andreas
--
Andreas Martens (ama) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]