return new String[]{"checkImageManagerFromModule"};//, "checkImageManager"};
}
public void checkImageManagerFromModule() {
log.println(" **** ImageManager from ModuleUIConfigurationManager *** ");
XUIConfigurationManager xManager = null;
try {
Object o = (XInterface)xMSF.createInstance(
"com.sun.star.ui.ModuleUIConfigurationManagerSupplier");
XModuleUIConfigurationManagerSupplier xMUICMS =
(XModuleUIConfigurationManagerSupplier)UnoRuntime.queryInterface(
XModuleUIConfigurationManagerSupplier.class, o);
xManager = xMUICMS.getUIConfigurationManager(
"com.sun.star.text.TextDocument");
}
catch(com.sun.star.uno.Exception e) {
e.printStackTrace((PrintWriter)log);
failed("Exception. " + e.getMessage());
}
XImageManager xImageManager = (XImageManager)UnoRuntime.queryInterface(
XImageManager.class, xManager.getImageManager());
performChecks(xImageManager, "ModuleUIConfig", xManager);
}