To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=68878 Issue #|68878 Summary|XSelectionChangeListener doesn't receive all selection | change events Component|Word processor Version|OOo 2.0.1 Platform|All URL| OS/Version|Linux Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|programming Assigned to|mru Reported by|helloworld82
------- Additional comments from [EMAIL PROTECTED] Wed Aug 23 02:29:55 -0700 2006 ------- First: I found this bug then using StarOffice8. I have no possibility to test it against OpenOffice.org, for reason which doesn't belong in this bug report. I submit it here because I think, this bug certainly also exist in OpenOffice.org. I want to receive events every time a user moves the XTextViewCursor. The matter is: "selectionChanged()" isn't called then the user moves the XTextViewCursor left and right with the arrow keys or then he enters new text inside the text document. Steps to reproduce my observation: 1) implements a XSelectionChangeListener and register it against the XTextViewCursorSupplier 2) start StarOffice writer. Use the key "left arrow" and "right arrow" to navigate inside the Text, or enter new text in the StarOffice Writer. The method “selectionChanged()” doesn't get called. As a side remark, "selectionChanged()" gets called then a user either clicks somewhere in the document with his mouse or then he moves the XTextViewCursor up and down with the arrow keys. (so in this case, it works well). Code: OOoBean bean = new OOoBean(); OfficeDocument doc = bean.getDocument(); XController currentDesktopController = doc.getCurrentController(); XTextViewCursorSupplier xTextViewCursorSupplier = (XTextViewCursorSupplier) UnoRuntime.queryInterface(XTextViewCursorSupplier.class,currentDesktopController); XSelectionSupplier xSelectionSupplier = (XSelectionSupplier) UnoRuntime.queryInterface(XSelectionSupplier.class,xTextViewCursorSupplier); xSelectionSupplier.addSelectionChangeListener(new SelectionChangeListener()); --------------------------------------------------------------------- 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]
