summaryrefslogtreecommitdiff
path: root/wizards/source/formwizard
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2001-12-07 16:30:41 +0000
committerBehrend Cornelius <bc@openoffice.org>2001-12-07 16:30:41 +0000
commitcd16329eb7e03f8cbf60f9662482020568e6a3fd (patch)
treea07a5fd47d0cbb8da8d0117de9e8c6b8a5312095 /wizards/source/formwizard
parent8fed933384a64f3a18254b5945fb53d71e484a0e (diff)
#95287# New Typename for saving added
Diffstat (limited to 'wizards/source/formwizard')
-rw-r--r--wizards/source/formwizard/FormWizard.xba16
1 files changed, 8 insertions, 8 deletions
diff --git a/wizards/source/formwizard/FormWizard.xba b/wizards/source/formwizard/FormWizard.xba
index aed946d168aa..c1c8a91a14cd 100644
--- a/wizards/source/formwizard/FormWizard.xba
+++ b/wizards/source/formwizard/FormWizard.xba
@@ -64,7 +64,7 @@ Dim i as Integer
Dim SelCount as Integer
BasicLibraries.LoadLibrary(&quot;Tools&quot;)
BasicLibraries.LoadLibrary(&quot;WebWizard&quot;)
- bDebug = False
+ bDebug = True
If Not bDebug Then
On Local Error GoTo WIZARDERROR
End If
@@ -299,9 +299,9 @@ End Sub
Sub StoreForm()
Dim bDocIsStored as Boolean
-Dim FilterNames(0,2) as String
+Dim TypeNames(0,2) as String
Dim oMasterKey as Object
-Dim oFilters() as Object
+Dim oTypes() as Object
Dim sTargetPath as String
Dim sBookmarkName as String
Dim oDBBookmarks as Object
@@ -309,11 +309,11 @@ Dim bLinkExists as Boolean
Dim i as Integer
Dim sBaseBookmarkName as String
oMasterKey = GetRegistryKeyContent(&quot;org.openoffice.Office.TypeDetection/&quot;)
- oFilters() = oMasterKey.Filters
- FilterNames(0,0) = oFilters.GetByName(&quot;swriter: StarOffice XML (Writer)&quot;).UIName
- FilterNames(0,1) = &quot;*.sxw&quot;
- FilterNames(0,2) = &quot;&quot;
- sTargetPath = StoreDocument(oDocument, FilterNames(), &quot;Form_&quot; &amp; sDBName &amp; &quot;_&quot; &amp; TableName &amp; &quot;.sxw&quot;, WorkPath)
+ oTypes() = oMasterKey.Types
+ TypeNames(0,0) = oTypes.GetByName(&quot;writer_StarOffice_XML_Writer&quot;).UIName
+ TypeNames(0,1) = &quot;*.sxw&quot;
+ TypeNames(0,2) = &quot;&quot;
+ sTargetPath = StoreDocument(oDocument, TypeNames(), &quot;Form_&quot; &amp; sDBName &amp; &quot;_&quot; &amp; TableName &amp; &quot;.sxw&quot;, WorkPath)
If sTargetPath &lt;&gt; &quot;&quot; Then
sBookmarkName = GetFileNamewithoutExtension(FileNameoutofPath(sTargetPath))
sBaseBookmarkName = sBookmarkName