Package ooo.connector

Examples of ooo.connector.BootstrapSocketConnector


    try {
      if (officeProgressMonitor != null)
        officeProgressMonitor
            .beginSubTask(Messages
                .getString("LocalOfficeConnectionGhost_monitor_constructing_initial_context_message")); //$NON-NLS-1$
      bootstrapSocketConnector = new BootstrapSocketConnector(
          getProgramPath());
      XComponentContext xContext = bootstrapSocketConnector.connect();
      return xContext;
    } catch (com.sun.star.uno.RuntimeException exception) {
      System.out.println("--- RuntimeException:"); //$NON-NLS-1$
View Full Code Here


    try {
      if(officeProgressMonitor != null)
        officeProgressMonitor
            .beginSubTask(Messages
                .getString("LocalOfficeConnectionGhost_monitor_constructing_initial_context_message")); //$NON-NLS-1$
      bootstrapSocketConnector = new BootstrapSocketConnector(getProgramPath());
      XComponentContext xContext = bootstrapSocketConnector.connect();
      return xContext;
    }
    catch(com.sun.star.uno.RuntimeException exception) {
      System.out.println("--- RuntimeException:"); //$NON-NLS-1$
View Full Code Here

        List oooOptions = OOoServer.getDefaultOOoOptions();
        oooOptions.add("-nofirststartwizard");
        OOoServer oooServer = new OOoServer(OOO_EXEC_FOLDER, oooOptions);

        // Connect to OOo
        BootstrapSocketConnector bootstrapSocketConnector = new BootstrapSocketConnector(oooServer);
        XComponentContext remoteContext = bootstrapSocketConnector.connect();

        // Convert text document to PDF
        convert(loadUrl, storeUrl, remoteContext);

        // Disconnect and terminate OOo server
        bootstrapSocketConnector.disconnect();
    }
View Full Code Here

TOP

Related Classes of ooo.connector.BootstrapSocketConnector

Copyright © 2018 www.massapicom. 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.