We know, we can get supported interface from object using UnoRuntime.QueryInterface, and usually more than one interface supported by an object, for instance:
XComponent xSpreadsheetComponent = xComponentLoader.loadComponentFromURL(
"private:factory/scalc", "_blank", 0, loadProps);
//Get XSpreadsheetDocument interface
XSpreadsheetDocument xSpreadsheetDocument = (XSpreadsheetDocument)UnoRuntime.queryInterface(
XSpreadsheetDocument.class, xSpreadsheetComponent);
//Get XModel interface
XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xSpreadsheetComponent);
The question is: How much interfaces supported by an object, what interfaces, how do I know?
Thanks for your help!
[Solved] [Java]How do I know what interfaces supported?
[Solved] [Java]How do I know what interfaces supported?
Last edited by hawkx on Mon Mar 30, 2009 2:15 am, edited 1 time in total.
OOo 3.0.X on Ms Windows XP
Re: [Java] How do I know what interfaces supported by my object?
I'm not a Java user, so perhaps I don't understand your question correctly. There are a couple of Object inspection tools that I find are extremely useful when working on macros: MRI and XRay. They are very similar in their utility. I took a quick look at the documentation and they both seem to work with Java. If you download the SDK, these tools will also access the documentation for selected interfaces, methods etc.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: [Java] How do I know what interfaces supported by my object?
Try this: Using Xray from Java: http://www.oooforum.org/forum/viewtopic ... light=xray
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
Re: [Java] How do I know what interfaces supported by my object?
Yes, I got it. Thanks so much!hol.sten wrote:Try this: Using Xray from Java: http://www.oooforum.org/forum/viewtopic ... light=xray
OOo 3.0.X on Ms Windows XP
Re: [Java] How do I know what interfaces supported by my object?
If this has answered your question please go to your first post and use the Edit button, and add [Solved] to the start of the title. You can use the green tick icon at the same time if you like.
Ubuntu 14.10 Utopic Unicorn, LibreOffice Version: 4.3.3.2
Gurkha Welfare Trust
Gurkha Welfare Trust