Hello,

I'm not sure about it, but I think I found a bug. I use StarOffice8.

I post my observation to the mailing list to be sure that it really is a bug. I want to listen to events everytime the TextView cursor moves - either by using the mouse or the keyboard. I added a selectionChangeListener as follows to the XSelectionSupplier:


XTextViewCursorSupplier xViewCursorSupplier = (XTextViewCursorSupplier) UnoRuntime
                     .queryInterface(XTextViewCursorSupplier.class,
                             currentDesktopController);

XSelectionSupplier xSelectionSupplier = (XSelectionSupplier) UnoRuntime
             .queryInterface(XSelectionSupplier.class,
                     xViewCursorSupplier);

xSelectionSupplier.addSelectionChangeListener(new MySelectionChangeListener());


Events are catched then I move the TextViewCursor with the mouse, or then I press the "up" and "down" keyboard keys. Events are not catched then I move the TextViewCursor to the left or to the right with the "left arrow" and "right arrow" keyboard keys.

Instead of using the SelectionChangeListener, I'm using now a combination of XKeyListener and XMouseClickListener.



Regards,
Daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to