java sdk draw document : where is XTransferableSupplier

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
quodlibetarian
Posts: 3
Joined: Tue Sep 06, 2016 5:54 pm

java sdk draw document : where is XTransferableSupplier

Post 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
Open Office 3.1 on Kubuntu 14.04
User avatar
floris v
Volunteer
Posts: 4430
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: java sdk draw document : where is XTransferableSupplier

Post by floris v »

OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Post Reply