diff options
author | Behrend Cornelius <bc@openoffice.org> | 2001-10-01 09:16:06 +0000 |
---|---|---|
committer | Behrend Cornelius <bc@openoffice.org> | 2001-10-01 09:16:06 +0000 |
commit | 0067e33ee9e2d5136958a118eee1ce212ff8ce7d (patch) | |
tree | 36627c3b5a16c049654fdd4a9d4626059a804c47 | |
parent | fce21e37ff27f6aede2e09da20d5f18fd03f26a2 (diff) |
#92590# Routines for Gimmicks macros added
-rw-r--r-- | wizards/source/tools/Debug.xba | 1 | ||||
-rw-r--r-- | wizards/source/tools/Listbox.xba | 2 | ||||
-rw-r--r-- | wizards/source/tools/Misc.xba | 14 | ||||
-rw-r--r-- | wizards/source/tools/ModuleControls.xba | 1 | ||||
-rw-r--r-- | wizards/source/tools/Strings.xba | 37 |
5 files changed, 14 insertions, 41 deletions
diff --git a/wizards/source/tools/Debug.xba b/wizards/source/tools/Debug.xba index 45d0ac0ff30e..ea03e82e967a 100644 --- a/wizards/source/tools/Debug.xba +++ b/wizards/source/tools/Debug.xba @@ -12,6 +12,7 @@ Dim sObjectStrings(2) as String Dim sProperties() as String Dim n as Integer Dim m as Integer +Dim MaxIndex as Integer sObjectStrings(0) = LocObject.dbg_Properties sObjectStrings(1) = LocObject.dbg_Methods sObjectStrings(2) = LocObject.dbg_SupportedInterfaces diff --git a/wizards/source/tools/Listbox.xba b/wizards/source/tools/Listbox.xba index b61afad93b55..5116d5256389 100644 --- a/wizards/source/tools/Listbox.xba +++ b/wizards/source/tools/Listbox.xba @@ -20,7 +20,7 @@ Dim NullArray() End Sub -Sub FormMoveSelected(aEvent as Object) +Sub FormMoveSelected() Call MoveSelectedListBox(oDialogModel.lstFields, oDialogModel.lstSelFields) Call FormSetMoveRights() oDialogModel.lstSelFields.Tag = True diff --git a/wizards/source/tools/Misc.xba b/wizards/source/tools/Misc.xba index cfc9684c65ed..b9e4848c2bf4 100644 --- a/wizards/source/tools/Misc.xba +++ b/wizards/source/tools/Misc.xba @@ -89,13 +89,21 @@ Dim oMasterKey End Function -Function GetRegistryKeyContent(sKeyName as string) +Function GetRegistryKeyContent(sKeyName as string, Optional bforUpdate as Boolean) Dim oConfigProvider as Object Dim aNodePath(0) as new com.sun.star.beans.PropertyValue oConfigProvider = createUnoService("com.sun.star.configuration.ConfigurationProvider") aNodePath(0).Name = "nodepath" aNodePath(0).Value = sKeyName - GetRegistryKeyContent = oConfigProvider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", aNodePath()) + If IsMissing(bForUpdate) Then + GetRegistryKeyContent() = oConfigProvider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", aNodePath()) + Else + If bForUpdate Then + GetRegistryKeyContent() = oConfigProvider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationUpdateAccess", aNodePath()) + Else + GetRegistryKeyContent() = oConfigProvider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", aNodePath()) + End If + End If End Function @@ -406,6 +414,7 @@ Sub Main Next i End Sub + Function GetDocumentType(oDocument) If oDocument.SupportsService("com.sun.star.sheet.SpreadsheetDocument") Then GetDocumentType() = "scalc" @@ -419,7 +428,6 @@ Function GetDocumentType(oDocument) End Function - Function GetNumberFormatType(oDocFormats, oFormatObject as Object) as Integer Dim ThisFormatKey as Long Dim oObjectFormat as Object diff --git a/wizards/source/tools/ModuleControls.xba b/wizards/source/tools/ModuleControls.xba index 1d6122ee6711..49db6b5b786f 100644 --- a/wizards/source/tools/ModuleControls.xba +++ b/wizards/source/tools/ModuleControls.xba @@ -267,5 +267,4 @@ Dim sProdName as String oDialog.SetCurrentFilter(FilterNames(0,0) End Sub - </script:module>
\ No newline at end of file diff --git a/wizards/source/tools/Strings.xba b/wizards/source/tools/Strings.xba index c1ab298bd677..9c46eb763c1c 100644 --- a/wizards/source/tools/Strings.xba +++ b/wizards/source/tools/Strings.xba @@ -285,41 +285,6 @@ Dim i%, OldReplLen%, BigLen% End Function -' Converts an "ordinary" path to a "URL-Path" -'Function ConverttoURL(ByVal BigString as String) as String -'Dim Separator as String -' If sProductname = "" Then -' sProductname = GetProductname() -' End If -' If BigString <> "" Then -' If IsFatOffice() Then -' Separator = GetPathSeparator() -' ' Is the delivered Path already a URL -' If Instr(1,UCase(BigString),"FILE:///") = 0 Then -' BigString = ReplaceString(BigString,"/",Separator) -' BigString = "file:///" & BigString -' End If -' End If -' ConvertToURL = BigString -' Else -' ConvertToUrl = "" -' End If -'End Function - - -' Converts an "URL-Path" to an ordinary "Path" -'Function ConvertfromURL(ByVal BigString as String) as String -'Dim Separator as String -' Separator = GetPathSeparator() -' If Left(Ucase(BigString),8)= "FILE:///" Then -' BigString = Mid(BigString, 9, Len(BigString)-8) -' BigString = ReplaceString(BigString,Separator,"/") -' BigString = ReplaceString(BigString,":","|") -' ConvertFromUrl = BigString -' End If -'End Function - - ' Retrieves the second value for a next to 'SearchString' in ' a two-dimensional string-Array Function FindSecondValue(SearchString as String, TwoDimList() as String ) as String @@ -353,7 +318,7 @@ End Function Function FileNameoutofPath(ByVal Path as String, Separator as String) as String Dim i as Integer Dim SepList() as String - SepList() = ArrayoutofString(Path,"/",i) + SepList() = ArrayoutofString(Path, Separator,i) FileNameoutofPath = SepList(i) End Function |