Examples of XFileIdentifierConverter


Examples of com.sun.star.ucb.XFileIdentifierConverter

        loadProperties.putAll(inputFormat.getImportOptions());

        Map/*<String,Object>*/ storeProperties = outputFormat.getExportOptions(inputFormat.getFamily());

        synchronized (openOfficeConnection) {
      XFileIdentifierConverter fileContentProvider = openOfficeConnection.getFileContentProvider();
      String inputUrl = fileContentProvider.getFileURLFromSystemPath("", inputFile.getAbsolutePath());
      String outputUrl = fileContentProvider.getFileURLFromSystemPath("", outputFile.getAbsolutePath());
           
      try {
        loadAndExport(inputUrl, loadProperties, outputUrl, storeProperties);
            } catch (OpenOfficeException openOfficeException) {
                throw openOfficeException;
View Full Code Here

Examples of com.sun.star.ucb.XFileIdentifierConverter

        loadProperties.putAll(inputFormat.getImportOptions());

        Map/*<String,Object>*/ storeProperties = outputFormat.getExportOptions(inputFormat.getFamily());

        synchronized (openOfficeConnection) {
      XFileIdentifierConverter fileContentProvider = openOfficeConnection.getFileContentProvider();
      String inputUrl = fileContentProvider.getFileURLFromSystemPath("", inputFile.getAbsolutePath());
      String outputUrl = fileContentProvider.getFileURLFromSystemPath("", outputFile.getAbsolutePath());
           
      loadAndExport(inputUrl, loadProperties, outputUrl, storeProperties);
    }
  }
View Full Code Here

Examples of com.sun.star.ucb.XFileIdentifierConverter

    }
  }

  protected void convertInternal(File inputFile, DocumentFormat inputFormat, File outputFile, DocumentFormat outputFormat) {
    synchronized (openOfficeConnection) {
      XFileIdentifierConverter fileContentProvider = openOfficeConnection.getFileContentProvider();
      String inputUrl = fileContentProvider.getFileURLFromSystemPath("", inputFile.getAbsolutePath());
      String outputUrl = fileContentProvider.getFileURLFromSystemPath("", outputFile.getAbsolutePath());
      PropertyValue[] exportProperties = new PropertyValue[] {
        property("FilterName", outputFormat.getExportFilter(inputFormat.getFamily())),
        property("FilterData", toPropertyValues(outputFormat.getExportOptions()))
      };
      try {
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.