Kaydet (Commit) bfbfde95 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS qadev25 (1.5.2); FILE MERGED

2005/11/11 10:53:07 lla 1.5.2.1: #127811# convwatch cleanups
üst f7ed0c24
......@@ -4,9 +4,9 @@
*
* $RCSfile: DesktopTools.java,v $
*
* $Revision: 1.5 $
* $Revision: 1.6 $
*
* last change: $Author: kz $ $Date: 2005-11-02 17:44:20 $
* last change: $Author: obo $ $Date: 2006-01-19 14:24:30 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -195,11 +195,16 @@ public class DesktopTools {
public static XComponent loadDoc(XMultiServiceFactory xMSF, String url,
PropertyValue[] Args) {
XComponent oDoc = null;
try {
oDoc = getCLoader(xMSF)
.loadComponentFromURL(url, "_blank", 0, Args);
} catch (com.sun.star.uno.Exception e) {
if (Args == null)
{
Args = new PropertyValue[0];
}
try
{
oDoc = getCLoader(xMSF).loadComponentFromURL(url, "_blank", 0, Args);
}
catch (com.sun.star.uno.Exception e)
{
throw new IllegalArgumentException("Document could not be loaded");
}
......@@ -310,4 +315,4 @@ public class DesktopTools {
xTopWindow.toFront();
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment