Page 1 of 1

java sdk draw document : where is XTransferableSupplier

PostPosted: Tue Sep 06, 2016 6:16 pm
by quodlibetarian
Question:

Writer and Calc documents both have XTransferableSupplier interfaces available

XComponent xComponent = ...

XModel2 xModel2 = UnoRuntime.queryInterface(XModel2.class, xComponent);

XController xController = xModel2.getCurrentController();

XTransferableSupplier xTransferableSupplier = UnoRuntime.queryInterface(XController.class, xController);


But Draw docucuments do not have the XTransferableSupplier interface and throws an exception at the last line above.

Where can I find the XTransferableSupplier interface in the Draw Document?


Objective:

I am trying to copy selected shapes from one draw document to the other

Re: java sdk draw document : where is XTransferableSupplier

PostPosted: Tue Sep 06, 2016 7:05 pm
by floris v