コード例 #1
0
 public void openIdlDescription(String _sIDLUrl, String _sClassName, String _sAnchor) {
   try {
     String sIDLUrl = _sIDLUrl;
     String sAnchor = ""; // TODO find out how the Anchor may be set at the html file;  //_sAnchor;
     boolean bExists = Introspector.getIntrospector().getXSimpleFileAccess().exists(sIDLUrl);
     if (sIDLUrl.equals("") || (!bExists)) {
       sIDLUrl = "http://api.libreoffice.org/" + Inspector.sIDLDOCUMENTSUBFOLDER;
     }
     if (!sIDLUrl.endsWith("/")) {
       sIDLUrl += "/";
     }
     if (_sClassName.equals("")) {
       sIDLUrl += "index";
       sAnchor = "";
     } else {
       sIDLUrl += _sClassName.replace(".", "_1_1");
     }
     sIDLUrl += ".html";
     if (sAnchor != null) {
       if (!sAnchor.equals("")) {
         sIDLUrl += "#" + sAnchor;
       }
     }
     URL openHyperlink = getDispatchURL(".uno:OpenHyperlink");
     PropertyValue pv = new PropertyValue();
     pv.Name = "URL";
     pv.Value = sIDLUrl;
     getXDispatcher(openHyperlink).dispatch(openHyperlink, new PropertyValue[] {pv});
   } catch (Exception exception) {
     exception.printStackTrace(System.err);
   }
 }
コード例 #2
0
 private static XTypeDescriptionEnumerationAccess getXTypeDescriptionEnumerationAccess() {
   return Introspector.getIntrospector().getXTypeDescriptionEnumerationAccess();
 }
コード例 #3
0
 /** Creates a new instance of UnoNode */
 public UnoNode(Object _oUnoObject) {
   m_xComponentContext = Introspector.getIntrospector().getXComponentContext();
   m_xMultiComponentFactory = m_xComponentContext.getServiceManager();
   m_oUnoObject = _oUnoObject;
 }