コード例 #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
ファイル: 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");
 }