[Solved] [Java]How do I know what interfaces supported?
Posted: Wed Mar 25, 2009 2:48 am
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!
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!