diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:20:20 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:20:20 +0200 |
commit | 4dc9c2aaf6a6b07c7afbc3620e2f34085a838294 (patch) | |
tree | c9977bbeaa286c1c906376b3f836d05eb43adea3 /odk/examples/java/DocumentHandling/DocumentLoader.java | |
parent | c7eab7eed6263bdc62f91a2336cc60fdc3d69a49 (diff) |
recreated tag libreoffice-3.3.3.1 which had these commits:
commit 1d0f0ac667d24a5e2584e81a20cf8aa52e784aa7 (tag: refs/tags/libreoffice-3.3.3.1)
Author: Petr Mladek <pmladek@suse.cz>
Date: Tue May 31 17:39:08 2011 +0200
Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
Notes:
split repo tag: sdk_libreoffice-3.3.3.1
split repo tag: sdk_libreoffice-3.3.4.1
Diffstat (limited to 'odk/examples/java/DocumentHandling/DocumentLoader.java')
-rw-r--r-- | odk/examples/java/DocumentHandling/DocumentLoader.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/odk/examples/java/DocumentHandling/DocumentLoader.java b/odk/examples/java/DocumentHandling/DocumentLoader.java index 8185cbf6da5f..a5a7fb5fc730 100644 --- a/odk/examples/java/DocumentHandling/DocumentLoader.java +++ b/odk/examples/java/DocumentHandling/DocumentLoader.java @@ -2,7 +2,7 @@ * * The Contents of this file are made available subject to the terms of * the BSD license. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * All rights reserved. * @@ -29,7 +29,7 @@ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * *************************************************************************/ import com.sun.star.uno.UnoRuntime; @@ -47,21 +47,21 @@ public class DocumentLoader { "java -jar DocumentLoader.jar \"private:factory/swriter\"" ); System.exit(1); } - + com.sun.star.uno.XComponentContext xContext = null; try { // get the remote office component context xContext = com.sun.star.comp.helper.Bootstrap.bootstrap(); System.out.println("Connected to a running office ..."); - + // get the remote office service manager com.sun.star.lang.XMultiComponentFactory xMCF = xContext.getServiceManager(); - + Object oDesktop = xMCF.createInstanceWithContext( "com.sun.star.frame.Desktop", xContext); - + com.sun.star.frame.XComponentLoader xCompLoader = (com.sun.star.frame.XComponentLoader) UnoRuntime.queryInterface( @@ -73,8 +73,8 @@ public class DocumentLoader { StringBuffer sbTmp = new StringBuffer("file:///"); sbTmp.append(sourceFile.getCanonicalPath().replace('\\', '/')); sUrl = sbTmp.toString(); - } - + } + // Load a Writer document, which will be automaticly displayed com.sun.star.lang.XComponent xComp = xCompLoader.loadComponentFromURL( sUrl, "_blank", 0, new com.sun.star.beans.PropertyValue[0]); |