https://bugs.documentfoundation.org/show_bug.cgi?id=151840

--- Comment #7 from Mike Kaganski <mikekagan...@hotmail.com> ---
(In reply to Rafael Lima from comment #6)

First of all, cursor is not a table. Implementing XTextTable in the cursor
would be a wrong mix of concepts.
Then, in the context of *writer's* (in general case) non-rectangular tables,
"number of selected columns" makes no sense at all, and pretending that it
makes sense by providing respective API would be wrong.
Then, the TextTable property would not represent the selection, but the whole
table (that has *some* of its cells selected). In that view, it's unclear how
much this code makes sense:

oCellRange = oSel.TextTable.getCellRangeByName(oSel.getRangeName())

because, say, oSel.TextTable could be a 3-row table with first and third rows
having 5 cells, and second row having 2 cells; and oSel.getRangeName() could be
"B1:D3" - what is there in 2nd row selected? Does getCellRangeByName do the
same as mouse selection? In that case, enumeration access makes the most sense.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to