Hello,

I try to reformulate my email. Perhaps my first email was not clear enough.

I want to receive events every time a user moves the XTextViewCursor. This can be done either by using the mouse, or the keyboard.

That's why I registered my class “MySelectionChangeListener” to the XtextViewCursorSupplier. This class implements XSelectionChangeListener.

So far so good, the method “selectionChanged()” of the listener gets called every time the user either clicks somewhere in the document with his mouse or then he moves the XTextViewCursor up and down with the arrow keys.

The matter is: "selectionChanged()" isn't called then the user moves the XTextViewCursor left and right with the arrow keys.

My question is: Is this a bug (should I fill a bug report for it?) or is this the intended behavior?

Daniel

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]


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

Reply via email to