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

            Bug ID: 151840
           Summary: API: Text Table Cursor has no notion of row and
                    columns, and no sane way to loop through the selection
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When a bunch of cells are selected in Writer,
ThisComponent.getCurrentSelection() returns a css:text:TextTableCursor. That
provides no sane way to traverse (loop through) the selection, nor to get the
boundaries of the selection, etc.

There is a getRangeName() and a gotoCellByName(...) which allow to do it, by...
manually parsing and constructing string cell range names like "A4:C53". That
is not a sane, programmer-friendly interface.

The goXXX() methods kinda make sense as a general cursor in the table, but are
not useful in the context of the selection; they will happily exit the
selection without any indication that they did so.

As a side-note, the choice to have goRight/goLeft silently wrap to
next/previous row is maybe also not the most useful API choice. We are stuck
with that for compatibility reasons, so I won't mention it any more.

Steps to Reproduce:
.

Actual Results:
.

Expected Results:
.


Reproducible: Always


User Profile Reset: No

Additional Info:
.

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

Reply via email to