diff options
Diffstat (limited to 'toolkit/test/accessibility/OfficeConnection.java')
-rwxr-xr-x | toolkit/test/accessibility/OfficeConnection.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/toolkit/test/accessibility/OfficeConnection.java b/toolkit/test/accessibility/OfficeConnection.java index 4cc5bee1ed78..d98d48aabc3d 100755 --- a/toolkit/test/accessibility/OfficeConnection.java +++ b/toolkit/test/accessibility/OfficeConnection.java @@ -23,7 +23,7 @@ public class OfficeConnection mnDefaultPort = nPortNumber; connect (); } - + /** @descr Return the service manager that represents the connected StarOffice application */ @@ -33,7 +33,7 @@ public class OfficeConnection connect (); return maServiceManager; } - + /** @descr Return a flag that indicates if the constructor has been able to establish a valid connection. */ @@ -48,14 +48,14 @@ public class OfficeConnection { connect (msDefaultHost, mnDefaultPort); } - + private void connect (String hostname) { connect (hostname, mnDefaultPort); } - - /** @descr Connect to a already running StarOffice application that has - been started with a command line argument like + + /** @descr Connect to a already running StarOffice application that has + been started with a command line argument like "-accept=socket,host=localhost,port=5678;urp;" */ private void connect (String hostname, int portnumber) @@ -65,7 +65,7 @@ public class OfficeConnection String sConnectString = "uno:socket,host=" + hostname + ",port=" + portnumber + ";urp;StarOffice.ServiceManager"; - + // connect to a running office and get the ServiceManager try { @@ -76,7 +76,7 @@ public class OfficeConnection XUnoUrlResolver.class, aLocalServiceManager.createInstance ("com.sun.star.bridge.UnoUrlResolver") ); - + maServiceManager = (XMultiServiceFactory) UnoRuntime.queryInterface ( XMultiServiceFactory.class, aURLResolver.resolve (sConnectString) @@ -94,7 +94,7 @@ public class OfficeConnection private int mnDefaultPort = 5678; private final String msDefaultHost = "localhost"; private XMultiServiceFactory maServiceManager = null; - + /** A value of true just indicates that it has been tried to establish a connection, not that that has been successfull. */ |