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"); }
public static String getNodeDescription(Object _oUnoObject) { XServiceInfo xServiceInfo = UnoRuntime.queryInterface(XServiceInfo.class, _oUnoObject); if (xServiceInfo != null) { return xServiceInfo.getImplementationName(); } String sClassName = _oUnoObject.getClass().getName(); if (Introspector.isObjectPrimitive( _oUnoObject)) { // super.isO{sObjectClassName.equals("java.lang.String"))issClassName.equals("java.lang.String")) return _oUnoObject.toString(); } else { return _oUnoObject.getClass().getName(); } }
/** * 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"); }