public void _LineColor() { XServiceInfo xInfo = UnoRuntime.queryInterface(XServiceInfo.class, oObj); if (!xInfo.supportsService("com.sun.star.drawing.LineShapeDescriptor")) { log.println("Service not available !!!!!!!!!!!!!"); tRes.tested("Supported", false); } changeProp("LineColor"); }
/** * test if a Presentation Document is supported. This is important, because only presentation * documents have notes and handout pages */ public static boolean isImpressDocument(XComponent xComponent) { XServiceInfo xInfo = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, xComponent); return xInfo.supportsService("com.sun.star.presentation.PresentationDocument"); }