To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=106025
                 Issue #|106025
                 Summary|Selecting a single cell via API is not possible
               Component|Word processor
                 Version|OOo 3.1
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|programming
             Assigned to|writerneedsconfirm
             Reported by|leguff





------- Additional comments from [email protected] Mon Oct 19 09:49:20 
+0000 2009 -------
Try the following:
- create a new empty writer-document
- place a table in the text with at least 2 columns (it doesn't care, if there
is any text arround or not)
- run the following Basic code:
cellRange = 
ThisComponent.getTextTables().getByIndex(0).getCellRangeByName("A1:B1")
ThisComponent.getCurrentController().select(cellRange)
=> You'll see there is a selection of the cells A1 and B1
- just change the code slightly to:
ThisComponent.getTextTables().getByIndex(0).getCellRangeByName("A1:A1")
ThisComponent.getCurrentController().select(cellRange)
=> You'll see there's only the cursor placed in A1 but actually cell A1 is not
selected

This behaviour has several unnatural consequenses:
1. the clipboard/transferable-content will not be the same if one tries to work
with it after performing a selection
2. if one works with getSelection() he'll receive a table-cursor if A1:B1 is
selected and a text-cursor if A1 is selected

This issue occurs also with OOo3.1.1.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to