summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-12-29 18:48:46 +0100
committerJulien Nabet <serval2412@yahoo.fr>2021-12-30 10:34:54 +0100
commit240b3ccaec684da6231d41309bd3aa79f139b055 (patch)
treea30f31049a8d67b41a0b7cf850fa2d83b1f98649 /wizards
parent00315ee52b09cb64de268f762809c2418716f49e (diff)
Fix case for "ByVal", "Variant", "UCase"
Change-Id: I136d292cd535d4208457ef91a7773fc7ac00d5c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127716 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/access2base/Control.xba4
-rw-r--r--wizards/source/access2base/DataDef.xba6
-rw-r--r--wizards/source/access2base/Database.xba4
-rw-r--r--wizards/source/access2base/DoCmd.xba4
-rw-r--r--wizards/source/access2base/Recordset.xba4
-rw-r--r--wizards/source/access2base/Trace.xba4
-rw-r--r--wizards/source/access2base/Utils.xba10
-rw-r--r--wizards/source/euro/ConvertRun.xba4
-rw-r--r--wizards/source/formwizard/tools.xba8
-rw-r--r--wizards/source/scriptforge/SF_Dictionary.xba6
-rw-r--r--wizards/source/scriptforge/SF_FileSystem.xba4
-rw-r--r--wizards/source/scriptforge/SF_Services.xba4
-rw-r--r--wizards/source/scriptforge/SF_Utils.xba4
-rw-r--r--wizards/source/scriptforge/_CodingConventions.xba2
-rw-r--r--wizards/source/sfdatabases/SF_Database.xba4
-rw-r--r--wizards/source/sfdocuments/SF_Form.xba4
-rw-r--r--wizards/source/sfdocuments/SF_FormControl.xba4
-rw-r--r--wizards/source/tools/Strings.xba8
18 files changed, 44 insertions, 44 deletions
diff --git a/wizards/source/access2base/Control.xba b/wizards/source/access2base/Control.xba
index e0f77b2e8f78..b22bb819b832 100644
--- a/wizards/source/access2base/Control.xba
+++ b/wizards/source/access2base/Control.xba
@@ -650,7 +650,7 @@ Property Get Text() As Variant
Text = _PropertyGet(&quot;Text&quot;)
End Property &apos; Text (get)
-Public Function pText() As variant
+Public Function pText() As Variant
pText = _PropertyGet(&quot;Text&quot;)
End Function &apos; pText (get)
@@ -2498,4 +2498,4 @@ Error_Function:
GoTo Exit_Function
End Function &apos; _PropertySet V1.1.0
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/access2base/DataDef.xba b/wizards/source/access2base/DataDef.xba
index 214987ca1151..8cc6b9bb1359 100644
--- a/wizards/source/access2base/DataDef.xba
+++ b/wizards/source/access2base/DataDef.xba
@@ -95,7 +95,7 @@ REM ----------------------------------------------------------------------------
Public Function CreateField(ByVal Optional pvFieldName As Variant _
, ByVal optional pvType As Variant _
, ByVal optional pvSize As Variant _
- , ByVal optional pvAttributes As variant _
+ , ByVal optional pvAttributes As Variant _
) As Object
&apos;Return a Field object
Const cstThisSub = &quot;TableDef.CreateField&quot;
@@ -262,7 +262,7 @@ Error_Function:
End Function &apos; Execute V1.1.0
REM -----------------------------------------------------------------------------------------------------------------------
-Public Function Fields(ByVal Optional pvIndex As variant) As Object
+Public Function Fields(ByVal Optional pvIndex As Variant) As Object
If _ErrorHandler() Then On Local Error Goto Error_Function
Dim cstThisSub As String
@@ -595,4 +595,4 @@ Error_Function:
GoTo Exit_Function
End Function &apos; _PropertySet
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/access2base/Database.xba b/wizards/source/access2base/Database.xba
index 685a6b39c3ca..5a5b1cf2b1f8 100644
--- a/wizards/source/access2base/Database.xba
+++ b/wizards/source/access2base/Database.xba
@@ -1372,7 +1372,7 @@ Private Function _OutputBooleanToHTML(ByVal pbBool As Boolean) As String
End Function &apos; _OutputBooleanToHTML V1.4.0
REM -----------------------------------------------------------------------------------------------------------------------
-Private Function _OutputClassToHTML(ByVal pvArray As variant) As String
+Private Function _OutputClassToHTML(ByVal pvArray As Variant) As String
&apos; Formats classes attribute of &lt;tr&gt; and &lt;td&gt; tags
If Not IsArray(pvArray) Then
@@ -1886,4 +1886,4 @@ Const cstSingleQuote = &quot;&apos;&quot;
End Function &apos; ReplaceSquareBrackets V1.1.0
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/access2base/DoCmd.xba b/wizards/source/access2base/DoCmd.xba
index 089486a872fa..73d3855843ba 100644
--- a/wizards/source/access2base/DoCmd.xba
+++ b/wizards/source/access2base/DoCmd.xba
@@ -820,7 +820,7 @@ Error_Function:
End Function &apos; GetHiddenAttribute V1.1.0
REM -----------------------------------------------------------------------------------------------------------------------
-Public Function GoToControl(Optional ByVal pvControlName As variant) As Boolean
+Public Function GoToControl(Optional ByVal pvControlName As Variant) As Boolean
&apos; Set the focus on the named control on the active form.
&apos; Return False if the control does not exist or is disabled,
@@ -2659,4 +2659,4 @@ Dim oShell As Object
End Sub &apos; _ShellExecute V0.8.5
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/access2base/Recordset.xba b/wizards/source/access2base/Recordset.xba
index 8260a900eef2..eaa186fa6985 100644
--- a/wizards/source/access2base/Recordset.xba
+++ b/wizards/source/access2base/Recordset.xba
@@ -481,7 +481,7 @@ Error_RowDeleted:
End Function &apos; Edit
REM -----------------------------------------------------------------------------------------------------------------------
-Public Function Fields(ByVal Optional pvIndex As variant) As Object
+Public Function Fields(ByVal Optional pvIndex As Variant) As Object
If _ErrorHandler() Then On Local Error Goto Error_Function
Const cstThisSub = &quot;Recordset.Fields&quot;
@@ -1271,4 +1271,4 @@ Error_Function:
GoTo Exit_Function
End Function &apos; _PropertySet
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/access2base/Trace.xba b/wizards/source/access2base/Trace.xba
index 990bb49d77c8..041bea53268f 100644
--- a/wizards/source/access2base/Trace.xba
+++ b/wizards/source/access2base/Trace.xba
@@ -234,7 +234,7 @@ Error_Sub:
End Sub &apos; TraceLevel V0.9.5
REM -----------------------------------------------------------------------------------------------------------------------
-Public Sub TraceLog(Byval psTraceLevel As String _
+Public Sub TraceLog(ByVal psTraceLevel As String _
, ByVal psText As String _
, ByVal Optional pbMsgBox As Boolean _
)
@@ -435,4 +435,4 @@ Dim vTraces As Variant, i As Integer
End Function &apos; TraceLevel
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/access2base/Utils.xba b/wizards/source/access2base/Utils.xba
index abd48d018f9d..eb314ea276ec 100644
--- a/wizards/source/access2base/Utils.xba
+++ b/wizards/source/access2base/Utils.xba
@@ -91,7 +91,7 @@ End Function &apos; CalledSub V0.8.9
REM -----------------------------------------------------------------------------------------------------------------------
Public Function _CheckArgument(pvItem As Variant _
, ByVal piArgNr As Integer _
- , Byval pvType As Variant _
+ , ByVal pvType As Variant _
, ByVal Optional pvValid As Variant _
, ByVal Optional pvError As Boolean _
) As Variant
@@ -212,7 +212,7 @@ End Function &apos; CStr V0.9.5
REM -----------------------------------------------------------------------------------------------------------------------
Public Function _CVar(ByRef psArg As String, ByVal Optional pbStrDate As Boolean) As Variant
&apos; psArg is presumed an output of _CStr (stored in the meantime in a text file f.i.)
-&apos; _CVar returns the corresponding original variant variable or Null/Nothing if not possible
+&apos; _CVar returns the corresponding original Variant variable or Null/Nothing if not possible
&apos; Return values may of types Array, Long, Double, Date, Boolean, String, Null or Empty
&apos; pbStrDate = True keeps dates as strings
@@ -795,7 +795,7 @@ Exit_False:
End Function &apos; IsPseudo V1.1.0
REM -----------------------------------------------------------------------------------------------------------------------
-Private Function _IsScalar(ByVal pvArg As Variant, Byval pvType As Variant, ByVal Optional pvValid As Variant) As Boolean
+Private Function _IsScalar(ByVal pvArg As Variant, ByVal pvType As Variant, ByVal Optional pvValid As Variant) As Boolean
&apos; Check type of pvArg and value in allowed pvValid list
_IsScalar = False
@@ -875,7 +875,7 @@ End Function &apos; _PercentEncode V1.4.0
REM -----------------------------------------------------------------------------------------------------------------------
Public Function _ReadFileIntoArray(ByVal psFileName) As Variant
-&apos; Loads all lines of a text file into a variant array
+&apos; Loads all lines of a text file into a Variant array
&apos; Any error reduces output to an empty array
&apos; Input file name presumed in URL form
@@ -1305,4 +1305,4 @@ Private Function _UTF8Encode(ByVal psChar As String) As String
End Function &apos; _UTF8Encode V1.4.0
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/euro/ConvertRun.xba b/wizards/source/euro/ConvertRun.xba
index 5e4f06e01491..e91d12e7a81d 100644
--- a/wizards/source/euro/ConvertRun.xba
+++ b/wizards/source/euro/ConvertRun.xba
@@ -288,9 +288,9 @@ End Sub
&apos; Returns &apos;True&apos; or &apos;False&apos;
Function FieldInList(LocList(), MaxIndex as integer, ByVal LocField ) As Boolean
Dim i as integer
- LocField = Ucase(LocField)
+ LocField = UCase(LocField)
For i = Lbound(LocList()) to MaxIndex
- If Ucase(LocList(i)) = LocField then
+ If UCase(LocList(i)) = LocField then
FieldInList = True
Exit Function
End if
diff --git a/wizards/source/formwizard/tools.xba b/wizards/source/formwizard/tools.xba
index 35a2436e2cf7..881552717864 100644
--- a/wizards/source/formwizard/tools.xba
+++ b/wizards/source/formwizard/tools.xba
@@ -113,17 +113,17 @@ Dim NullValue
End Function
-Function TwipToCM(BYVAL nValue as long) as String
+Function TwipToCM(ByVal nValue as long) as String
TwipToCM = trim(str(nValue / 567)) + &quot;cm&quot;
End function
-Function TwipTo100telMM(BYVAL nValue as long) as long
+Function TwipTo100telMM(ByVal nValue as long) as long
TwipTo100telMM = nValue / 0.567
End function
-Function TwipToPixel(BYVAL nValue as long) as long &apos; not an exact calculation
+Function TwipToPixel(ByVal nValue as long) as long &apos; not an exact calculation
TwipToPixel = nValue / 15
End function
@@ -276,7 +276,7 @@ Dim oControl as Object
End Sub
-Function CalcUniqueContentName(BYVAL oContainer as Object, sBaseName as String) as String
+Function CalcUniqueContentName(ByVal oContainer as Object, sBaseName as String) as String
Dim nPostfix as Integer
Dim sReturn as String
diff --git a/wizards/source/scriptforge/SF_Dictionary.xba b/wizards/source/scriptforge/SF_Dictionary.xba
index 9fb84de55418..fc92e24dd2ad 100644
--- a/wizards/source/scriptforge/SF_Dictionary.xba
+++ b/wizards/source/scriptforge/SF_Dictionary.xba
@@ -457,7 +457,7 @@ End Function &apos; ScriptForge.SF_Dictionary.GetProperty
REM -----------------------------------------------------------------------------
Public Function ImportFromJson(Optional ByVal InputStr As Variant _
- , Optional Byval Overwrite As Variant _
+ , Optional ByVal Overwrite As Variant _
) As Boolean
&apos;&apos;&apos; Adds the content of a Json string into the current dictionary
&apos;&apos;&apos; JSON = JavaScript Object Notation: https://en.wikipedia.org/wiki/JSON
@@ -544,7 +544,7 @@ End Function &apos; ScriptForge.SF_Dictionary.ImportFromJson
REM -----------------------------------------------------------------------------
Public Function ImportFromPropertyValues(Optional ByVal PropertyValues As Variant _
- , Optional Byval Overwrite As Variant _
+ , Optional ByVal Overwrite As Variant _
) As Boolean
&apos;&apos;&apos; Adds the content of an array of PropertyValues into the current dictionary
&apos;&apos;&apos; Names contain Keys, Values contain Items
@@ -952,4 +952,4 @@ Const cstSeparator = &quot;, &quot;
End Function &apos; ScriptForge.SF_Dictionary._Repr
REM ============================================ END OF SCRIPTFORGE.SF_DICTIONARY
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/scriptforge/SF_FileSystem.xba b/wizards/source/scriptforge/SF_FileSystem.xba
index 4551caf4973e..3f38d141e5fd 100644
--- a/wizards/source/scriptforge/SF_FileSystem.xba
+++ b/wizards/source/scriptforge/SF_FileSystem.xba
@@ -1517,7 +1517,7 @@ Catch:
End Function &apos; ScriptForge.SF_FileSystem.PickFile
REM -----------------------------------------------------------------------------
-Public Function PickFolder(Optional ByVal DefaultFolder As variant _
+Public Function PickFolder(Optional ByVal DefaultFolder As Variant _
, Optional ByVal FreeText As Variant _
) As String
&apos;&apos;&apos; Display a FolderPicker dialog box
@@ -2085,4 +2085,4 @@ Dim sFolder As String &apos; Folder
End Function &apos; ScriptForge.SF_FileSystem._SFInstallFolder
REM ============================================ END OF SCRIPTFORGE.SF_FileSystem
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/scriptforge/SF_Services.xba b/wizards/source/scriptforge/SF_Services.xba
index a2a96cb088c6..d77058cb3ba0 100644
--- a/wizards/source/scriptforge/SF_Services.xba
+++ b/wizards/source/scriptforge/SF_Services.xba
@@ -100,7 +100,7 @@ Dim vServicesList As Variant &apos; Output of RegisterScriptServices
Dim vSplit As Variant &apos; Array to split argument in
Dim sLibrary As String &apos; Library part of the argument
Dim sService As String &apos; Service part of the argument
-Dim vLibrary As variant &apos; Dictionary of libraries
+Dim vLibrary As Variant &apos; Dictionary of libraries
Dim vService As Variant &apos; An individual service object
Const cstThisSub = &quot;SF_Services.CreateScriptService&quot;
Const cstSubArgs = &quot;Service, arg0[, arg1] ...&quot;
@@ -612,4 +612,4 @@ Catch:
End Function &apos; ScriptForge.SF_Services._NewTimer
REM ============================================== END OF SCRIPTFORGE.SF_SERVICES
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/scriptforge/SF_Utils.xba b/wizards/source/scriptforge/SF_Utils.xba
index 2968209aafb3..8b8b8d7eea93 100644
--- a/wizards/source/scriptforge/SF_Utils.xba
+++ b/wizards/source/scriptforge/SF_Utils.xba
@@ -594,7 +594,7 @@ REM ----------------------------------------------------------------------------
Public Function _SetPropertyValue(ByVal pvPropertyValue As Variant _
, ByVal psName As String _
, ByRef pvValue As Variant _
- ) As variant
+ ) As Variant
&apos;&apos;&apos; Return the 1st argument (passed by reference), which is an array of property values
&apos;&apos;&apos; If the property psName exists, update it with pvValue, otherwise create it on top of the returned array
@@ -986,4 +986,4 @@ Dim iType As Integer &apos; VarType of argument
End Function &apos; ScriptForge.SF_Utils._VarTypeExt
REM ================================================= END OF SCRIPTFORGE.SF_UTILS
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/scriptforge/_CodingConventions.xba b/wizards/source/scriptforge/_CodingConventions.xba
index 71fb42c77201..913c8b254810 100644
--- a/wizards/source/scriptforge/_CodingConventions.xba
+++ b/wizards/source/scriptforge/_CodingConventions.xba
@@ -97,4 +97,4 @@ REM ============================================================================
&apos; * Comments about a code block should be left indented.
&apos; If it concerns only the next line, no indent required (may also be put at the end of the line).
&apos;&apos;&apos;
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/sfdatabases/SF_Database.xba b/wizards/source/sfdatabases/SF_Database.xba
index a03f90e6ee55..6d3aa99f6381 100644
--- a/wizards/source/sfdatabases/SF_Database.xba
+++ b/wizards/source/sfdatabases/SF_Database.xba
@@ -670,7 +670,7 @@ Private Function _GetColumnValue(ByRef poResultSet As Object _
&apos;&apos;&apos; as long as its length does not exceed a maximum length.
&apos;&apos;&apos; Default = False: binary fields are not returned, only their length
&apos;&apos;&apos; Returns:
-&apos;&apos;&apos; The variant value found in the column
+&apos;&apos;&apos; The Variant value found in the column
&apos;&apos;&apos; Dates and times are returned as Basic dates
&apos;&apos;&apos; Null values are returned as Null
&apos;&apos;&apos; Errors or strange data types are returned as Null as well
@@ -822,4 +822,4 @@ Private Function _Repr() As String
End Function &apos; SFDatabases.SF_Database._Repr
REM ============================================ END OF SFDATABASES.SF_DATABASE
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/sfdocuments/SF_Form.xba b/wizards/source/sfdocuments/SF_Form.xba
index 93beee283c37..43e6bb513351 100644
--- a/wizards/source/sfdocuments/SF_Form.xba
+++ b/wizards/source/sfdocuments/SF_Form.xba
@@ -1325,7 +1325,7 @@ Private Function _PropertyGet(Optional ByVal psProperty As String) As Variant
&apos;&apos;&apos; psProperty: the name of the property
Static oSession As Object &apos; Alias of SF_Session
-Dim vBookmark As variant &apos; Form bookmark
+Dim vBookmark As Variant &apos; Form bookmark
Dim cstThisSub As String
Const cstSubArgs = &quot;&quot;
@@ -1531,4 +1531,4 @@ Dim sParent As String &apos; To recognize the parent
End Function &apos; SFDocuments.SF_Form._Repr
REM ============================================ END OF SFDOCUMENTS.SF_FORM
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/sfdocuments/SF_FormControl.xba b/wizards/source/sfdocuments/SF_FormControl.xba
index ac120772e175..c0db1d6cf92b 100644
--- a/wizards/source/sfdocuments/SF_FormControl.xba
+++ b/wizards/source/sfdocuments/SF_FormControl.xba
@@ -1147,7 +1147,7 @@ Private Function _ListboxBound() As Boolean
&apos;&apos;&apos; If they are different, then there is a bound column
Dim bListboxBound As Boolean &apos; Return value
-Dim vValue() As variant &apos; Alias of the control model ValueItemList
+Dim vValue() As Variant &apos; Alias of the control model ValueItemList
Dim vString() As Variant &apos; Alias of the control model StringItemList
Dim i As Long
@@ -1885,4 +1885,4 @@ Private Function _Repr() As String
End Function &apos; SFDocuments.SF_FormControl._Repr
REM ============================================ END OF SFDOCUMENTS.SF_FORMCONTROL
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/tools/Strings.xba b/wizards/source/tools/Strings.xba
index 4c2802f1a8cb..bb1593a20c5a 100644
--- a/wizards/source/tools/Strings.xba
+++ b/wizards/source/tools/Strings.xba
@@ -161,7 +161,7 @@ End Sub
Function FieldInArray(LocArray(), MaxIndex as integer, LocField as String) As Boolean
Dim i as integer
For i = Lbound(LocArray()) to MaxIndex
- If Ucase(LocArray(i)) = Ucase(LocField) Then
+ If UCase(LocArray(i)) = UCase(LocField) Then
FieldInArray = True
Exit Function
End if
@@ -189,7 +189,7 @@ End Function
Function IndexInArray(SearchString as String, LocList()) as Integer
Dim i as integer
For i = Lbound(LocList(),1) to Ubound(LocList(),1)
- If Ucase(LocList(i,0)) = Ucase(SearchString) Then
+ If UCase(LocList(i,0)) = UCase(SearchString) Then
IndexInArray = i
Exit Function
End if
@@ -224,7 +224,7 @@ Dim CurFieldString as String
End If
For i = Lbound(SearchList()) to MaxIndex
CurFieldString = SearchList(i,SearchIndex)
- If Ucase(CurFieldString) = Ucase(SearchString) Then
+ If UCase(CurFieldString) = UCase(SearchString) Then
StringInMultiArray() = SearchList(i,ReturnIndex)
Exit Function
End if
@@ -293,7 +293,7 @@ End Function
Function FindSecondValue(SearchString as String, TwoDimList() as String ) as String
Dim i as Integer
For i = 0 To Ubound(TwoDimList,1)
- If Ucase(SearchString) = Ucase(TwoDimList(i,0)) Then
+ If UCase(SearchString) = UCase(TwoDimList(i,0)) Then
FindSecondValue = TwoDimList(i,1)
Exit For
End If