diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 09:16:31 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 09:16:31 +0000 |
commit | 809cd02df45c3ecfe6be592b04b0f7676646bc43 (patch) | |
tree | 2f051b89e6319cdf6a59b5e40e3fce3f40b752a7 /wizards/com/sun/star/wizards | |
parent | 3c10eaf000620b99732a8879c511846a889484ca (diff) |
INTEGRATION: CWS extras6 (1.51.2); FILE MERGED
2003/05/16 10:24:36 bc 1.51.2.2: #109370# column index access corrected
2003/05/15 15:52:05 bc 1.51.2.1: #109370# dbcolumnindex access modified
Diffstat (limited to 'wizards/com/sun/star/wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/report/ReportWizard.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/report/ReportWizard.java b/wizards/com/sun/star/wizards/report/ReportWizard.java index e43298f62352..5f17a621484b 100644 --- a/wizards/com/sun/star/wizards/report/ReportWizard.java +++ b/wizards/com/sun/star/wizards/report/ReportWizard.java @@ -2,9 +2,9 @@ * * $RCSfile: ReportWizard.java,v $ * - * $Revision: 1.52 $ + * $Revision: 1.53 $ * - * last change: $Author: rt $ $Date: 2003-04-30 08:33:00 $ + * last change: $Author: vg $ $Date: 2003-05-22 10:16:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -95,6 +95,7 @@ import com.sun.star.uno.XNamingService; import com.sun.star.uno.AnyConverter; import com.sun.star.uno.Any; import com.sun.star.uno.Type; +import com.sun.star.ucb.XSimpleFileAccess; import com.sun.star.sheet.*; import com.sun.star.document.*; @@ -1960,10 +1961,19 @@ public class ReportWizard { WorkPath = Tools.getOfficePath(xMSF, "Work",""); ContentFiles = Tools.getFolderTitles(xMSF, "cnt", ReportPath); LayoutFiles = Tools.getFolderTitles(xMSF,"stl", ReportPath); + XInterface xUcbInterface = (XInterface) xMSF.createInstance("com.sun.star.ucb.SimpleFileAccess"); + XSimpleFileAccess xSimpleFileAccess = (XSimpleFileAccess) UnoRuntime.queryInterface(XSimpleFileAccess.class, xUcbInterface); + boolean bcntexists = xSimpleFileAccess.exists(ReportPath + "/cnt-default.stw"); + boolean bstlexists = xSimpleFileAccess.exists(ReportPath + "/stl-default.stw"); + if ((bcntexists == false) || (bstlexists == false)) + throw new Tools.NoValidPathException(xMSF); return true; } catch (Tools.NoValidPathException nopathexception){ return false; + } + catch (Exception exception){ + return false; }} } } |