Code: Select all
XViewSettingsSupplier xViewSettings = (XViewSettingsSupplier) UnoRuntime.queryInterface(XViewSettingsSupplier.class,xcontroller);
XPropertySet viewSettings=xViewSettings.getViewSettings();
Object o=viewSettings.getPropertyValue("PageCount");
Code: Select all
XServiceInfo factory = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, xcontroller);
String[] availableServiceNames = factory.getSupportedServiceNames();
for (String string : availableServiceNames) {
System.out.println(string);
}
output:
com.sun.star.text.TextDocumentView
com.sun.star.view.OfficeDocumentView