From 652eefba21035b7688e7c4c9808b5e63d3649104 Mon Sep 17 00:00:00 2001 From: Tom Verbeek Date: Mon, 30 Jul 2001 13:35:45 +0000 Subject: #89978# adapted to new registry settings --- wizards/source/tools/Misc.xba | 9 +++++---- wizards/source/tools/ModuleControls.xba | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/wizards/source/tools/Misc.xba b/wizards/source/tools/Misc.xba index 2b60febc3b42..9ceb5d637706 100644 --- a/wizards/source/tools/Misc.xba +++ b/wizards/source/tools/Misc.xba @@ -78,8 +78,8 @@ Dim aLocLocale As New com.sun.star.lang.Locale Dim sLocale as String Dim sLocaleList(1) Dim oMasterKey - oMasterKey = GetRegistryKeyContent("org.openoffice.UserProfile/International/") - sLocale = oMasterKey.getByName("Locale") + oMasterKey = GetRegistryKeyContent("org.openoffice.Setup/L10N/") + sLocale = oMasterKey.getByName("ooLocale") sLocaleList() = ArrayoutofString(sLocale, "-") aLocLocale.Language = sLocaleList(0) If Ubound(sLocaleList()) > 0 Then @@ -101,11 +101,12 @@ End Function Function GetProductname() as String Dim oProdNameAccess as Object +Dim omyNames(100) as Object Dim sVersion as String Dim sProdName as String oProdNameAccess = GetRegistryKeyContent("org.openoffice.Setup/Product") - sProdName = oProdNameAccess.getByName("Name") - sVersion = oProdNameAccess.getByName("Version") + sProdName = oProdNameAccess.getByName("ooName") + sVersion = oProdNameAccess.getByName("ooSetupVersion") GetProductName = sProdName & "." & sVersion End Function diff --git a/wizards/source/tools/ModuleControls.xba b/wizards/source/tools/ModuleControls.xba index c2c4d72fe7cc..fab31d51cf1f 100644 --- a/wizards/source/tools/ModuleControls.xba +++ b/wizards/source/tools/ModuleControls.xba @@ -158,7 +158,7 @@ End Function Sub GetFolderName(oRefModel as Object) -Dim oFolderDialog +Dim oFolderDialog as Object Dim iAccept as Integer Dim sPath as String Dim InitPath as String @@ -187,11 +187,11 @@ Dim sPath as String Dim InitPath as String Dim RefControlName as String Dim oUcb as object -Dim ListAny(0) +'Dim ListAny(0) oUcb = createUnoService("com.sun.star.ucb.SimpleFileAccess") oFileDialog = CreateUnoService("com.sun.star.ui.dialogs.FilePicker") - ListAny(0) = com.sun.star.ui.dialogs.TemplateDescription.FILEOPEN_SIMPLE - oFileDialog.Initialize(ListAny()) + 'ListAny(0) = com.sun.star.ui.dialogs.TemplateDescription.FILEOPEN_SIMPLE + 'oFileDialog.initialize(ListAny()) AddFiltersToDialog(FilterNames(), oFileDialog) InitPath = ConvertToUrl(oRefModel.Text) -- cgit v1.2.3