Sascha Jensen wrote:
Hi again,

since i got no answer:
is my question hard to understand (bad formulation) or is there simply no possibility to achieve this.

This is what I do to insert text on drop. But it is always inserted at the wrong cursor position. It is inserted where the cursor has been before d&d started. Not where the cursor was positioned during d&d.

void  DropTargetListener::drop(const ::cssdd::DropTargetDropEvent& dtde)
{
    /*
    getting the TextDocument and TextViewCursorSupplier here
    ...
    */
::css::uno::Reference< ::css::text::XTextRange > textRange ( textViewCursor, ::css::uno::UNO_QUERY);
    ::css::uno::Reference< ::css::text::XText > xText =
textRange->getText(); ::css::uno::Reference< ::css::text::XSimpleText > simpleText (
        xText, ::css::uno::UNO_QUERY);
    simpleText ->insertString( textRange ,
        ::rtl::OUString::createFromAscii("DROP"), sal_False);
}
Hi,
the drop cursor is a special cursor that is not accessible via API.

Regards,
Oliver

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

Reply via email to