My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3500: Adding support " multi- parameter" to officebean - iibreoffice4.4
2 people starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Aug 1
Cc:  David.Os...@gmail.com


Sign in to add a comment
 
Reported by 7577thierry, Jul 28, 2015
Impossible to pass several options to OfficeBean.
java -Dcom.sun.star.officebean.Options="-env:UserInstallation=file://$HOME/.myconf/bureautissimo" myapp ==> Work
java -Dcom.sun.star.officebean.Options="--norestore" myapp ==> Work
java -Dcom.sun.star.officebean.Options="--norestore -env:UserInstallation=file://$HOME/.myconf/bureautissimo" myapp ==> not work

Proposition de correction :

svn diff -r 28332 officebean/com/sun/star/comp/beans/LocalOfficeConnection.java
Index: officebean/com/sun/star/comp/beans/LocalOfficeConnection.java
===================================================================
--- officebean/com/sun/star/comp/beans/LocalOfficeConnection.java	(révision 28332)
+++ officebean/com/sun/star/comp/beans/LocalOfficeConnection.java	(copie de travail)
@@ -683,6 +683,7 @@
         {
             int nSizeCmdArray = 4;
             String sOption = null;
+            String[] aOption = null;
             // examine if user specified command-line options in system properties.
             // We may offer later a more sophisticated way of providing options if
             // the need arises. Currently this is intended to ease the pain during
@@ -692,7 +693,10 @@
             try {
                 sOption = System.getProperty("com.sun.star.officebean.Options");
                 if (sOption != null)
-                    nSizeCmdArray ++;
+								{
+									aOption = sOption.split(" ");
+									nSizeCmdArray += aOption.length;
+								}
             } catch (java.lang.SecurityException e)
             {
                 e.printStackTrace();
@@ -717,7 +721,11 @@
                 throw new java.io.IOException( "not connection specified" );
 
             if (sOption != null)
-                cmdArray[4] = sOption;
+						{
+							int i = 0;
+							for (i = 0; i < aOption.length; i++)
+								cmdArray[4 + i] = aOption[i];
+						}
 
             // start process
             mProcess = Runtime.getRuntime().exec(cmdArray);
Aug 1, 2015
Project Member #1 david.pu...@sonymobile.com
This is the issue tracker for Gerrit Code Review, not Libre Office.

You can find the Libre Office issue tracker via this page:

https://wiki.documentfoundation.org/QA/BugReport

@David: Libre Office's Gerrit installation does not have the issue tracker URL configured, hence it defaults to this Gerrit tracker.

Status: Invalid
Cc: David.Os...@gmail.com
Sign in to add a comment

Powered by Google Project Hosting