Hi Dominique,
Dominique De Munck schrieb:
Hi,
Thx for the lead.
However, I don't find any indication how to use this
XTransferableSupplier interface.
Unfortunatly, the "currentController" does not support this interface,
as you thought in
the following thread:
ok, let's try:
If you have selected your XTextRange, you can get the transferable with
XTransferableSupplier xTransferableSupplier =
(XTransferableSupplier) UnoRuntime.queryInterface(
XTransferableSupplier.class,
document.getCurrentController()
);
XTransferable xTransferable = xTransferableSupplier.getTransferable();
The same way you can insert your xTransferable on another selection
(maybe in another document):
xTransferableSupplier.insertTransferable(xTransferable);
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]