summaryrefslogtreecommitdiff
path: root/wizards/source/tools
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2002-09-03 08:46:05 +0000
committerBehrend Cornelius <bc@openoffice.org>2002-09-03 08:46:05 +0000
commit3c513867a5f9538014c141a4d9c9867922d53821 (patch)
tree41b639abd454e9306e5734a1bef685806339956c /wizards/source/tools
parent17b23e68f3e75c9b9bd3b8964e688044f57770f1 (diff)
#101991# now storedialog disposed after call
Diffstat (limited to 'wizards/source/tools')
-rw-r--r--wizards/source/tools/ModuleControls.xba6
1 files changed, 5 insertions, 1 deletions
diff --git a/wizards/source/tools/ModuleControls.xba b/wizards/source/tools/ModuleControls.xba
index f9a2561008bd..508239ad97d7 100644
--- a/wizards/source/tools/ModuleControls.xba
+++ b/wizards/source/tools/ModuleControls.xba
@@ -227,12 +227,14 @@ Dim ListAny(0) as Long
Dim UIFilterName as String
Dim FilterName as String
Dim FilterIndex as Integer
- ListAny(0) = com.sun.star.ui.dialogs.TemplateDescription.FILESAVE_AUTOEXTENSION_PASSWORD_FILTEROPTIONS
+ ListAny(0) = com.sun.star.ui.dialogs.TemplateDescription.FILESAVE_AUTOEXTENSION_PASSWORD
oStoreDialog = CreateUnoService(&quot;com.sun.star.ui.dialogs.FilePicker&quot;)
oStoreDialog.Initialize(ListAny())
AddFiltersToDialog(FilterNames(), oStoreDialog)
oStoreDialog.SetDisplayDirectory(DisplayDirectory)
oStoreDialog.SetDefaultName(DefaultName)
+ oStoreDialog.setValue(com.sun.star.ui.dialogs.ExtendedFilePickerElementIds.CHECKBOX_AUTOEXTENSION,0, true)
+
iAccept = oStoreDialog.Execute()
If iAccept = 1 Then
sPath = oStoreDialog.Files(0)
@@ -255,12 +257,14 @@ Dim FilterIndex as Integer
oDocument.StoreAsUrl(sPath, oStoreProperties())
End If
End If
+ oStoreDialog.dispose()
StoreDocument() = sPath
Exit Function
NOSAVING:
If Err &lt;&gt; 0 Then
&apos; Msgbox(&quot;Document cannot be saved under &apos;&quot; &amp; ConvertFromUrl(sPath) &amp; &quot;&apos;&quot;, 48, GetProductName())
sPath = &quot;&quot;
+ oStoreDialog.dispose()
Resume NOERROR
NOERROR:
End If