summaryrefslogtreecommitdiff
path: root/wizards/source/tools
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2001-08-30 12:15:37 +0000
committerBehrend Cornelius <bc@openoffice.org>2001-08-30 12:15:37 +0000
commit565d8433aff68c5912c63947419ef54053ebdc29 (patch)
tree749d11a75c237cc43a843300b9760c2ae097750a /wizards/source/tools
parent6eccbb9a0c5f2088b1d522f10af8373aed289ee6 (diff)
#91711# Filedialog and folderDialog Routines modified
Diffstat (limited to 'wizards/source/tools')
-rw-r--r--wizards/source/tools/ModuleControls.xba12
1 files changed, 8 insertions, 4 deletions
diff --git a/wizards/source/tools/ModuleControls.xba b/wizards/source/tools/ModuleControls.xba
index 99b972934a13..defcf3ed9612 100644
--- a/wizards/source/tools/ModuleControls.xba
+++ b/wizards/source/tools/ModuleControls.xba
@@ -164,8 +164,10 @@ Dim sPath as String
Dim InitPath as String
Dim RefControlName as String
Dim oUcb as object
- oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
+ &apos;Note: The following services have to be called in the following order
+ &apos; because otherwise Basic does not remove the FolderDialog Service
oFolderDialog = CreateUnoService(&quot;com.sun.star.ui.dialogs.FolderPicker&quot;)
+ oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
InitPath = ConvertToUrl(oRefModel.Text)
If InitPath = &quot;&quot; Then
InitPath = GetPathSettings(&quot;Work&quot;)
@@ -191,8 +193,10 @@ Dim InitPath as String
Dim RefControlName as String
Dim oUcb as object
&apos;Dim ListAny(0)
- oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
+ &apos;Note: The following services have to be called in the following order
+ &apos; because otherwise Basic does not remove the FileDialog Service
oFileDialog = CreateUnoService(&quot;com.sun.star.ui.dialogs.FilePicker&quot;)
+ oUcb = createUnoService(&quot;com.sun.star.ucb.SimpleFileAccess&quot;)
&apos;ListAny(0) = com.sun.star.ui.dialogs.TemplateDescription.FILEOPEN_SIMPLE
&apos;oFileDialog.initialize(ListAny())
AddFiltersToDialog(FilterNames(), oFileDialog)
@@ -249,7 +253,7 @@ Dim FilterIndex as Integer
End Function
-Sub AddFiltersToDialog(FilterNames() as String, oDialog as Object)
+Sub AddFiltersToDialog(FilterNames() as String, oDialog as Object)
Dim i as Integer
Dim MaxIndex as Integer
MaxIndex = Ubound(FilterNames(), 1)
@@ -260,4 +264,4 @@ Dim MaxIndex as Integer
End Sub
-</script:module> \ No newline at end of file
+</script:module>