Where is XTransferableSupplier in the draw document java sdk?

asked 2016-09-06 18:38:24 +0200

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

edit retag flag offensive close merge delete

Comments

floris v gravatar imagefloris v ( 2016-09-06 19:05:57 +0200 )edit