コード例 #1
0
 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");
 }
コード例 #2
0
 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();
   }
 }
コード例 #3
0
ファイル: PageHelper.java プロジェクト: luongit/blindside
 /**
  * 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");
 }