Examples of insertDocumentFromURL()


Examples of com.sun.star.document.XDocumentInsertable.insertDocumentFromURL()

            String fileUrl = "file:///" + tempFile.getCanonicalPath().replace("\\", "/");

            XTextCursor textCursor = destination.createTextCursorByRange(textRange);
            XDocumentInsertable insertable = as(XDocumentInsertable.class, textCursor);

            insertable.insertDocumentFromURL(fileUrl, new PropertyValue[0]);
        } finally {
            FileUtils.deleteQuietly(tempFile);
        }
    }
}
View Full Code Here

Examples of com.sun.star.document.XDocumentInsertable.insertDocumentFromURL()

      return;
    try {
      XDocumentInsertable xDocumentInsertable = (XDocumentInsertable) UnoRuntime
          .queryInterface(XDocumentInsertable.class, xTextCursor);
      if (xDocumentInsertable != null)
        xDocumentInsertable.insertDocumentFromURL(URLAdapter
            .adaptURL(url), new PropertyValue[0]);
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

Examples of com.sun.star.document.XDocumentInsertable.insertDocumentFromURL()

          loadProps[1] = new PropertyValue();
          loadProps[1].Name = "FilterName"; //$NON-NLS-1$
          loadProps[1].Value = filter
              .getFilterDefinition(textDocument);

          xDocumentInsertable.insertDocumentFromURL("private:stream",
              loadProps);
        }
      }
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
View Full Code Here

Examples of com.sun.star.document.XDocumentInsertable.insertDocumentFromURL()

    if(url == null)
      return;
    try {
      XDocumentInsertable xDocumentInsertable = (XDocumentInsertable)UnoRuntime.queryInterface(XDocumentInsertable.class, xTextCursor);
      if(xDocumentInsertable != null)
        xDocumentInsertable.insertDocumentFromURL(URLAdapter.adaptURL(url), new PropertyValue[0]);
    }
    catch(Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

Examples of com.sun.star.document.XDocumentInsertable.insertDocumentFromURL()

 
          loadProps[1] = new PropertyValue();
          loadProps[1].Name = "FilterName"//$NON-NLS-1$
          loadProps[1].Value = filter.getFilterDefinition(textDocument);
 
          xDocumentInsertable.insertDocumentFromURL("private:stream", loadProps)
        }
      }
    }
    catch(Throwable throwable) {
      throw new NOAException(throwable);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.