List Info

Thread: Cursor Position during D&D operation




Cursor Position during D&D operation
user name
2007-11-05 09:59:42
Hi,

i have send this mail to devopenoffice.org before but I
was adviced 
that here might be a better place to ask this question.

My question si about TextCursor position during a drag and
drop 
operation. I use d&d in OOo Writer where i would like to
insert some 
text at the cursors position that is displayed while
dragging over the 
document.

I use the TextViewCursor available at the
TextViewCursorSupplier of the 
Document. But the TextViewCursor always has the same
position as before 
the d&d operation is started.
I can see that special cursor that visualizes the potential
drop 
position. Also I can get some coordinates from the
DropTargetDragEvent 
in
::com::sun::star::datatransfer::dnd::XDropTargetListener::dr
agOver. 
But it seems to me that can I neither get that special
cursor nor apply 
the DropTargetDragEvent location to a cursor.

So my questions are:
1. Can I somehow get the cursor that vizualizes the
potential drop 
position or is that cursor destroyed before the drop is
performed?

2. Is there a way to apply coordinates/position to a
TextViewCursor?

3. Am I overlooking some possibilities?

Thanks for any kind of help.
Greetings
Sascha

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )