https://bugs.documentfoundation.org/show_bug.cgi?id=151840
--- Comment #6 from Rafael Lima <rafael.palma.l...@gmail.com> --- (In reply to Mike Kaganski from comment #5) > So if you think there should be something new implemented, there should > appear some specific discussion which scenario is simplified (or even > becomes possible) with the new stuff, and why it is relevant. To be honest, I'm not an expert in API design, so my arguments are from a end-user perspective only. Initially I wish it were possible to run the following code in a Writer document with a table selected (assuming that the selection implemented XTextTable): oSel = ThisComponent.CurrentSelection If HasUnoInterfaces(oSel, "com.sun.star.text.XTextTable") Then ' For the sake of an example, print the number of rows selected MsgBox oSel.getRows().getCount() End If But maybe the code above is a bit naive. >From your suggestion, if the CurrentSelection had a TextTable property, the same could be written as: oSel = ThisComponent.CurrentSelection oTab = oSel.TextTable MsgBox oTab.getRows().getCount() Is this what you're proposing? -- You are receiving this mail because: You are the assignee for the bug.