Package com.sun.star.frame

Examples of com.sun.star.frame.XStorable.storeToURL()


    newProperties[properties.length + 1].Name = "FilterName";
    newProperties[properties.length + 1].Value = filter.getFilterDefinition(document);
   
    XStorable xStorable = (XStorable)UnoRuntime.queryInterface(XStorable.class, document.getXComponent());
    try {
      xStorable.storeToURL("private:stream", newProperties);
    }
    catch(com.sun.star.io.IOException ioException) {
      throw new IOException(ioException.getMessage());
    }   
  } 
View Full Code Here


        props[0].Name = "OutputStream";
        props[0].Value = xOutputStream;
        props[1].Name = "FilterName";
        props[1].Value = filterName;
        XStorable xStorable = as(XStorable.class, xComponent);
        xStorable.storeToURL("private:stream", props);
    }


    protected XDispatchHelper createXDispatchHelper() throws Exception {
        Object o = xComponentContext.getServiceManager().createInstanceWithContext(
View Full Code Here

            {
                XStorable store =
                    (XStorable) UnoRuntime.queryInterface(
                        XStorable.class, _xComponent
                        );
                store.storeToURL(_sDestinationName, PropertyHelper.createPropertyValueArrayFormArrayList(aPropertyList));
            }
            catch (com.sun.star.io.IOException e)
            {
                GlobalLogWriter.get().println("IO Exception caught.");
                GlobalLogWriter.get().println("Message: " + e.getMessage());
View Full Code Here

        impl_stopObservingEvents( m_globalEvents, new String[] { "OnSave", "OnSaveDone" }, context );

        // XStorable.storeToURL
        context = "storeToURL";
        impl_startObservingEvents( context );
        storeDoc.storeToURL( createTempFileURL(), new PropertyValue[0] );
        assureEquals( "storetoURL is not expected to change the document URL", databaseDoc.getURL(), oldURL );
        impl_stopObservingEvents( m_globalEvents, new String[] { "OnSaveTo", "OnSaveToDone" }, context );

        // XStorable.storeAsURL
        newURL = createTempFileURL();
View Full Code Here

            {
                XStorable store =
                    (XStorable) UnoRuntime.queryInterface(
                        XStorable.class, _xComponent
                        );
                store.storeToURL(_sDestinationName, PropertyHelper.createPropertyValueArrayFormArrayList(aPropertyList));
            }
            catch (com.sun.star.io.IOException e)
            {
                GlobalLogWriter.get().println("IO Exception caught.");
                GlobalLogWriter.get().println("Message: " + e.getMessage());
View Full Code Here

            {
                oStoreProperties = new PropertyValue[0];
            }
            if (bStoreToUrl == true)
            {
                xStoreable.storeToURL(StorePath, oStoreProperties);
            }
            else
            {
                xStoreable.storeAsURL(StorePath, oStoreProperties);
            }
View Full Code Here

      properties = new PropertyValue[0];
    }
    XStorable xStorable = (XStorable)UnoRuntime.queryInterface(XStorable.class, document.getXComponent());
    try {
      if(URL.length() != 0) {
        xStorable.storeToURL(URL, properties);
      }
      else {
        xStorable.store();
      }
    }
View Full Code Here

    newProperties[properties.length].Name = "OutputStream";
    newProperties[properties.length].Value = xOutputStream;
   
    XStorable xStorable = (XStorable)UnoRuntime.queryInterface(XStorable.class, document.getXComponent());
    try {
      xStorable.storeToURL("private:stream", newProperties);
    }
    catch(com.sun.star.io.IOException ioException) {
      throw new IOException(ioException.getMessage());
    }   
  }
View Full Code Here

            {
                XStorable store =
                    (XStorable) UnoRuntime.queryInterface(
                        XStorable.class, _xComponent
                        );
                store.storeToURL(_sDestinationName, PDFArgs);
            }
            catch (com.sun.star.io.IOException e)
            {
                bWorked = false;
            }
View Full Code Here

                            PropertyValue[] props = new PropertyValue[1];
                            props[0] = new PropertyValue();
                            props[0].Name = "FilterName";
                            // use export filter for this doc type
                            props[0].Value = sDocTypeExportFilter[k][1];
                            xStorable.storeToURL(url, props);
                        }
                        catch(com.sun.star.io.IOException e) {
                            failed("Could not store to '" + url + "'", true);
                        }
                    }
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.