[Libreoffice-commits] core.git: sc/qa wizards/source

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Sat Nov 7 09:54:43 UTC 2020


 sc/qa/unit/scshapetest.cxx                   |    2 +-
 wizards/source/scriptforge/SF_Array.xba      |    8 ++++----
 wizards/source/scriptforge/SF_Dictionary.xba |   10 +++++-----
 wizards/source/scriptforge/SF_Exception.xba  |    8 ++++----
 wizards/source/scriptforge/SF_FileSystem.xba |   12 ++++++------
 wizards/source/scriptforge/SF_L10N.xba       |   12 ++++++------
 6 files changed, 26 insertions(+), 26 deletions(-)

New commits:
commit efca0ebee5a5d80a309487bceb76f7828740e822
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Fri Nov 6 12:21:15 2020 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat Nov 7 10:54:01 2020 +0100

    Fix typos
    
    Change-Id: I7ba612d8880833057269290212bcd9d864bb7395
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105399
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/sc/qa/unit/scshapetest.cxx b/sc/qa/unit/scshapetest.cxx
index 15d083e17380..49bad113610e 100644
--- a/sc/qa/unit/scshapetest.cxx
+++ b/sc/qa/unit/scshapetest.cxx
@@ -154,7 +154,7 @@ void ScShapeTest::testTdf115655_HideDetail()
 {
     // The document contains an image inside a cell anchored "To Cell (resize with cell)". The cell
     // belongs to a group. On loading the group is expanded.
-    // Error was, that after collapsing the group, save and reload, and exanding the group, the image
+    // Error was, that after collapsing the group, save and reload, and expanding the group, the image
     // was "lost". Actually is was resized to zero height.
     OUString aFileURL;
     createFileURL("tdf115655_HideDetail.ods", aFileURL);
diff --git a/wizards/source/scriptforge/SF_Array.xba b/wizards/source/scriptforge/SF_Array.xba
index 914f42269867..8ffc64127a0f 100644
--- a/wizards/source/scriptforge/SF_Array.xba
+++ b/wizards/source/scriptforge/SF_Array.xba
@@ -32,7 +32,7 @@ REM ============================================================ MODULE CONSTANT
 
 Const MAXREPR					= 50	'	Maximum length to represent an array in the console
 
-REM ===================================================== CONSTRUCTOR/DESCTRUCTOR
+REM ===================================================== CONSTRUCTOR/DESTRUCTOR
 
 REM -----------------------------------------------------------------------------
 Public Function Dispose() As Variant
@@ -375,7 +375,7 @@ Public Function CountDims(Optional ByRef Array_ND As Variant) As Integer
 '''	Count the number of dimensions of an array - may be > 2
 '''	Args:
 '''		Array_ND: the array to be examined
-'''	Return: the number of dimensions: -1 = not array, 0 = unitialized array, else >= 1
+'''	Return: the number of dimensions: -1 = not array, 0 = uninitialized array, else >= 1
 '''	Examples:
 '''		Dim a(1 To 10, -3 To 12, 5)
 '''		CountDims(a) returns 3
@@ -2387,7 +2387,7 @@ Dim lSwap As Long				'	For index swaps
 	For i = (lMax + lMin) \ 2 To lMin Step -1
 		SF_Array._HeapSort1(pvArray, vIndexes, i, lMin, lMax, pbCaseSensitive)
 	Next i
-	'	Next heapifies
+	'	Next heapify
 	For i = lMax To lMin + 1 Step -1
 		'	Only indexes as swapped, not the array items themselves
 		lSwap = vIndexes(i)
@@ -2546,4 +2546,4 @@ Dim iCompare As Integer, iVarType1 As Integer, iVarType2 As Integer
 End Function	'	ScriptForge.SF_Array._ValCompare
 
 REM ================================================= END OF SCRIPTFORGE.SF_ARRAY
-</script:module>
\ No newline at end of file
+</script:module>
diff --git a/wizards/source/scriptforge/SF_Dictionary.xba b/wizards/source/scriptforge/SF_Dictionary.xba
index e84db342fd5b..6cce27ea4a48 100644
--- a/wizards/source/scriptforge/SF_Dictionary.xba
+++ b/wizards/source/scriptforge/SF_Dictionary.xba
@@ -23,11 +23,11 @@ Option Explicit
 '''			- one collection mapping keys and entries in the array
 '''			- one 1-column array: key + data
 '''
-'''		Why a Dictionay class beside the builtin Collection class ?
+'''		Why a Dictionary class beside the builtin Collection class ?
 '''			A standard Basic collection does not support the retrieval of the keys
 '''			Additionally it may contain only simple data (strings, numbers, ...)
 '''
-'''		Service instanciation example:
+'''		Service instantiation example:
 '''			Dim myDict As Variant
 '''			myDict = CreateScriptService("Dictionary")		'	Once per dictionary
 '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
@@ -55,7 +55,7 @@ Private MapItems			As Variant		' Array of ItemMaps
 Private _MapSize			As Long			' Total number of entries in the dictionary
 Private _MapRemoved			As Long			' Number of inactive entries in the dictionary
 
-REM ===================================================== CONSTRUCTOR/DESCTRUCTOR
+REM ===================================================== CONSTRUCTOR/DESTRUCTOR
 
 REM -----------------------------------------------------------------------------
 Private Sub Class_Initialize()
@@ -480,7 +480,7 @@ Public Function ImportFromJson(Optional ByVal InputStr As Variant _
 '''			& ",'children': ['Q','M','G','T'],'spouse': null}"
 '''		s = Replace(s, "'", """")
 '''		myDict.ImportFromJson(s, OverWrite := True)
-'''			'	The (sub)-dictionaries "adress" and "phoneNumbers(0) and (1) are reduced to Empty	
+'''			'	The (sub)-dictionaries "address" and "phoneNumbers(0) and (1) are reduced to Empty	
 
 Dim bImport As Boolean			'	Return value
 Dim vArray As Variant			'	JSON string converted to array
@@ -949,4 +949,4 @@ Const cstSeparator = ", "
 End Function	'	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_Exception.xba b/wizards/source/scriptforge/SF_Exception.xba
index 09e930a9ba90..30da6907f4f5 100644
--- a/wizards/source/scriptforge/SF_Exception.xba
+++ b/wizards/source/scriptforge/SF_Exception.xba
@@ -131,7 +131,7 @@ REM ============================================================ MODULE CONSTANT
 Const RUNTIMEERRORS				=	2000			' Upper limit of Basic run-time errors
 Const CONSOLENAME				=	"ConsoleLines"	' Name of control in the console dialog
 
-REM ===================================================== CONSTRUCTOR/DESCTRUCTOR
+REM ===================================================== CONSTRUCTOR/DESTRUCTOR
 
 REM -----------------------------------------------------------------------------
 Public Function Dispose() As Variant
@@ -339,7 +339,7 @@ Public Function ConsoleToFile(Optional ByVal FileName As Variant) As Boolean
 ''' Export the content of the console to a text file
 '''	If the file exists and the console is not empty, it is overwritten without warning
 '''	Args:
-'''		FileName: the complete file name to export to. It it exists, it will be overwritten without warning
+'''		FileName: the complete file name to export to. If it exists, is overwritten without warning
 '''	Returns:
 '''		True if the file could be created
 '''	Examples:
@@ -728,7 +728,7 @@ Try:
 				sMessage = sLocation _
 					& "\n" & "\n" & "\n" & .GetText("VALIDATEERROR", pvArgs(0)) _
 					& "\n" & "\n" & .GetText("UNKNOWNFOLDER", pvArgs(0), pvArgs(1))
-			Case NOTAFILEERROR			'	SF_FileSystem.CopyFiler/MoveFile/DeleteFile(ArgName, Filename)
+			Case NOTAFILEERROR			'	SF_FileSystem.CopyFile/MoveFile/DeleteFile(ArgName, Filename)
 				sMessage = sLocation _
 					& "\n" & "\n" & "\n" & .GetText("VALIDATEERROR", pvArgs(0)) _
 					& "\n" & "\n" & .GetText("NOTAFILE", pvArgs(0), pvArgs(1))
@@ -1104,4 +1104,4 @@ Private Function _Repr() As String
 End Function	'	ScriptForge.SF_Exception._Repr
 
 REM ============================================ END OF SCRIPTFORGE.SF_EXCEPTION
-</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 a0d124da3b5b..3a985b9efee1 100644
--- a/wizards/source/scriptforge/SF_FileSystem.xba
+++ b/wizards/source/scriptforge/SF_FileSystem.xba
@@ -60,7 +60,7 @@ Const cstForReading				=	1
 Const cstForWriting				=	2
 Const cstForAppending			=	8
 
-REM ===================================================== CONSTRUCTOR/DESCTRUCTOR
+REM ===================================================== CONSTRUCTOR/DESTRUCTOR
 
 REM -----------------------------------------------------------------------------
 Public Function Dispose() As Variant
@@ -621,7 +621,7 @@ Public Function DeleteFolder(Optional ByVal FolderName As Variant) As Boolean
 '''		NOTAFOLDERERROR				Argument is a file, not a folder
 '''	Example:
 '''		FSO.FileNaming = "SYS"
-'''		FSO.DeleteFolder("C:\Temp\*")		'	Only solders are deleted, filesin the parent folder are not
+'''		FSO.DeleteFolder("C:\Temp\*")		'	Only olders are deleted, files in the parent folder are not
 
 Dim bDelete As Boolean			'	Return value
 
@@ -1441,7 +1441,7 @@ Public Function PickFile(Optional ByVal DefaultFile As Variant _
 '''	Returns:
 '''		The selected FileName in URL format or "" if the dialog was cancelled
 '''	Example:
-'''		FSO.FineNaming = "SYS"
+'''		FSO.FileNaming = "SYS"
 '''		FSO.PickFile("C:\", "OPEN", "txt")		' Only *.txt files are displayed
 
 Dim oFileDialog As Object		'	com.sun.star.ui.dialogs.FilePicker
@@ -1525,7 +1525,7 @@ Public Function PickFolder(Optional ByVal DefaultFolder As variant _
 '''		The selected FolderName in URL or operating system format
 '''		The zero-length string if the dialog was cancelled
 '''	Example:
-'''		FSO.FineNaming = "SYS"
+'''		FSO.FileNaming = "SYS"
 '''		FSO.PickFolder("C:\", "Choose a folder or press Cancel")
 
 Dim oFolderDialog As Object		'	com.sun.star.ui.dialogs.FolderPicker
@@ -1766,7 +1766,7 @@ Dim bFile As Boolean			'	True if File, False if Folder
 Dim oSfa As Object				'	com.sun.star.ucb.SimpleFileAccess
 Dim bWildCards As Boolean		'	True if wildcards found in Source
 Dim bCreateFolder As Boolean	'	True when the destination folder should be created
-Dim bDestExists As Boolean		'	True if desination exists
+Dim bDestExists As Boolean		'	True if destination exists
 Dim sSourceUrl As String		'	Alias for Source
 Dim sDestinationUrl As String	'	Alias for Destination
 Dim sDestinationFile As String	'	Destination FileName
@@ -2081,4 +2081,4 @@ Dim sFolder As String		'	Folder
 End Function	'	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_L10N.xba b/wizards/source/scriptforge/SF_L10N.xba
index 6ff222543a00..fcb87ef1471b 100644
--- a/wizards/source/scriptforge/SF_L10N.xba
+++ b/wizards/source/scriptforge/SF_L10N.xba
@@ -62,7 +62,7 @@ REM =============================================================== PRIVATE TYPE
 '''	The recognized elements of an entry in a PO file are (other elements are ignored) :
 '''		#. Extracted comments (given by the programmer to the translator)
 '''		#, flag (the kde-format flag when the string contains tokens)
-'''		msgctxt Context (to store an acronym associated with the message, this is a distorsion of the norm)
+'''		msgctxt Context (to store an acronym associated with the message, this is a distortion of the norm)
 '''		msgid untranslated-string
 '''		msgstr translated-string
 '''	NB: plural forms are not supported
@@ -91,7 +91,7 @@ Private _POFile				As String		' PO file in URL format
 Private _Encoding			As String		' Used to open the PO file, default = UTF-8
 Private _Dictionary			As Object		' SF_Dictionary
 
-REM ===================================================== CONSTRUCTOR/DESCTRUCTOR
+REM ===================================================== CONSTRUCTOR/DESTRUCTOR
 
 REM -----------------------------------------------------------------------------
 Private Sub Class_Initialize()
@@ -181,7 +181,7 @@ Public Function AddText(Optional ByVal Context As Variant _
 Dim bAdd As Boolean				'   Output buffer
 Dim sKey As String				'	The key part of the new entry in the dictionary
 Dim vItem As POEntry			'	The item part of the new entry in the dictionary
-Const cstPipe = "|"				'	Pipe forbedden in MsgId's
+Const cstPipe = "|"				'	Pipe forbidden in MsgId's
 Const cstThisSub = "L10N.AddText"
 Const cstSubArgs = "[Context=""""], MsgId, [Comment=""""]"
 
@@ -234,8 +234,8 @@ Public Function ExportToPOTFile(Optional ByVal FileName As Variant _
 '''		or by a successful invocation of the L10N service with the FolderName argument
 '''	The generated file should pass successfully the "msgfmt --check 'the pofile'" GNU command
 '''	Args:
-'''		FileName: the complete file name to export to. It it exists, it will be overwritten without warning
-'''		Header: Comments that will appear on top of the generated file. Do not include any leadung "#"
+'''		FileName: the complete file name to export to. If it exists, is overwritten without warning
+'''		Header: Comments that will appear on top of the generated file. Do not include any leading "#"
 '''			If the string spans multiple lines, insert escape sequences (\n) where relevant
 '''			A standard header will be added anyway
 '''		Encoding: The character set that should be used
@@ -693,4 +693,4 @@ Private Function _Repr() As String
 End Function	'	ScriptForge.SF_L10N._Repr
 
 REM ============================================ END OF SCRIPTFORGE.SF_L10N
-</script:module>
\ No newline at end of file
+</script:module>


More information about the Libreoffice-commits mailing list