From 05e6e8b4529ca5e71bfde1686faa6a6526024337 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Fri, 6 Nov 2020 12:21:31 +0100 Subject: Fix typos Change-Id: Ied10667ec70293267b6a7010f0e40ed345b6cb9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105400 Tested-by: Jenkins Reviewed-by: Julien Nabet --- wizards/source/scriptforge/SF_Platform.xba | 2 +- wizards/source/scriptforge/SF_Root.xba | 8 ++++---- wizards/source/scriptforge/SF_Services.xba | 10 +++++----- wizards/source/scriptforge/SF_Session.xba | 2 +- wizards/source/scriptforge/SF_String.xba | 22 +++++++++++----------- wizards/source/scriptforge/SF_TextStream.xba | 8 ++++---- 6 files changed, 26 insertions(+), 26 deletions(-) (limited to 'wizards') diff --git a/wizards/source/scriptforge/SF_Platform.xba b/wizards/source/scriptforge/SF_Platform.xba index c1ac6c8e0b3c..80f3ab97a182 100644 --- a/wizards/source/scriptforge/SF_Platform.xba +++ b/wizards/source/scriptforge/SF_Platform.xba @@ -29,7 +29,7 @@ REM ================================================================== EXCEPTION REM ============================================================ MODULE CONSTANTS -REM ===================================================== CONSTRUCTOR/DESCTRUCTOR +REM ===================================================== CONSTRUCTOR/DESTRUCTOR REM ----------------------------------------------------------------------------- Public Function Dispose() As Variant diff --git a/wizards/source/scriptforge/SF_Root.xba b/wizards/source/scriptforge/SF_Root.xba index 47e855421332..5be7766e03b9 100644 --- a/wizards/source/scriptforge/SF_Root.xba +++ b/wizards/source/scriptforge/SF_Root.xba @@ -65,7 +65,7 @@ Private ConfigurationProvider _ As Object ' com.sun.star.configuration.ConfigurationProvider Private MailService As Object ' com.sun.star.system.SimpleCommandMail or com.sun.star.system.SimpleSystemMail -' Specific psersistent services objects or properties +' Specific persistent services objects or properties Private FileSystemNaming As String ' If "SYS", file and folder naming is based on operating system notation Private PythonHelper As String ' File name of Python helper functions (stored in $(inst)/share/Scripts/python) Private Interface As Object ' ScriptForge own L10N service @@ -612,7 +612,7 @@ Try: & "%3: An identifier\n" _ & "%4: A string" _ ) - ' SF_Document._IsStllAlive + ' SF_Document._IsStillAlive .AddText( Context := "DOCUMENTDEAD" _ , MsgId := "The requested action could not be executed because the document was closed inadvertently.\n\n" _ & "The concerned document is '%1'" _ @@ -777,7 +777,7 @@ Try: , MsgId := "An SQL statement could not be interpreted or executed by the database system.\n" _ & "Check its syntax, table and/or field names, ...\n\n" _ & "SQL Statement : « %1 »" _ - , Comment := "SF_Database cannot interprete SQL statement\n" _ + , Comment := "SF_Database can't interpret SQL statement\n" _ & "%1: The statement" _ ) End With @@ -819,4 +819,4 @@ Public Sub _StackReset() End Sub ' ScriptForge.SF_Root._StackReset REM ================================================== END OF SCRIPTFORGE.SF_ROOT - \ No newline at end of file + diff --git a/wizards/source/scriptforge/SF_Services.xba b/wizards/source/scriptforge/SF_Services.xba index be62730838b9..be6482332d93 100644 --- a/wizards/source/scriptforge/SF_Services.xba +++ b/wizards/source/scriptforge/SF_Services.xba @@ -22,7 +22,7 @@ Option Explicit ''' Register for a library the list of services it implements ''' Each library in the framework must implement its own RegisterScriptServices method ''' This method consists in a series of invocations of next 2 methods -''' - ReisterService +''' - RegisterService ''' Register a single service ''' - RegisterEventManager ''' Register a single event manager @@ -189,7 +189,7 @@ Public Function RegisterEventManager(Optional ByVal ServiceName As Variant _ ''' Args: ''' ServiceName: the name of the service as a string. It the service exists ''' already for the library the method overwrites the existing entry -''' ServiceReference: the finction which will identify the source of the triggered event +''' ServiceReference: the function which will identify the source of the triggered event ''' something like: "libraryname.modulename.function" ''' Returns: ''' True if successful @@ -278,7 +278,7 @@ Public Sub RegisterScriptServices() As Variant ''' Each library pertaining to the framework must implement its own version of this method ''' This method may be stored in any standard (i.e. not class-) module ''' -''' Each individual service is reistered by calling the RegisterService() method +''' Each individual service is registered by calling the RegisterService() method ''' ''' The current version is given as an example ''' @@ -344,7 +344,7 @@ Private Function _FindModuleFromMethod(ByVal psLibrary As String _ ''' psLibrary: the name of the Basic library ''' psMethod: the method to locate ''' Returns: -''' The name of the module or a zero-lengt string if not found +''' The name of the module or a zero-length string if not found Dim vCategories As Variant ' "user" or "share" library categories Dim sCategory As String @@ -604,4 +604,4 @@ Catch: End Function ' ScriptForge.SF_Services._NewTimer REM ============================================== END OF SCRIPTFORGE.SF_SERVICES - \ No newline at end of file + diff --git a/wizards/source/scriptforge/SF_Session.xba b/wizards/source/scriptforge/SF_Session.xba index 19117bc5796e..a41bffa51377 100644 --- a/wizards/source/scriptforge/SF_Session.xba +++ b/wizards/source/scriptforge/SF_Session.xba @@ -52,7 +52,7 @@ Const cstSCRIPTISSHARED = "share" ' a library of LibreOffic Const cstSCRIPTISSHAROXT = "share:uno_packages" ' an extension for all users (PYTHON) Const cstSCRIPTISOXT = "uno_packages" ' an extension but install params are unknown (PYTHON) -REM ===================================================== CONSTRUCTOR/DESCTRUCTOR +REM ===================================================== CONSTRUCTOR/DESTRUCTOR REM ----------------------------------------------------------------------------- Public Function Dispose() As Variant diff --git a/wizards/source/scriptforge/SF_String.xba b/wizards/source/scriptforge/SF_String.xba index e482b1a8a846..272a2d1cefa7 100644 --- a/wizards/source/scriptforge/SF_String.xba +++ b/wizards/source/scriptforge/SF_String.xba @@ -25,7 +25,7 @@ Option Explicit ''' Space(32), HT(9), LF(10), VT(11), FF(12), CR(13), Next Line(133), No-break space(160), ''' Line separator(8232), Paragraph separator(8233) ''' A quoted string: -''' The quoting chararacter must be the double quote (") +''' The quoting character must be the double quote (") ''' To preserve a quoting character inside the quoted substring, use (\) or (") as escape character ''' => [str\"i""ng] means [str"i"ng] ''' Escape sequences: symbolic name(Ascii number) = escape sequence @@ -76,7 +76,7 @@ Const cstCHARSWITHACCENT = "ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙ Const cstCHARSWITHOUTACCENT = "AAAAAACEEEEIIIIDNOOOOOUUUUYaaaaaaceeeeiiiidnooooouuuuyySsYZz" _ & "AaDdIiUuOoUuAaAaAaAaAaAaAaAaAaAaAaAaEeEeEeEeEeEeEeEeIiIiOoOoOoOoOoOoOoOoOoOoOoOoUuUuUuUuUuUuUuYyYyYyYyd" -REM ===================================================== CONSTRUCTOR/DESCTRUCTOR +REM ===================================================== CONSTRUCTOR/DESTRUCTOR REM ----------------------------------------------------------------------------- Public Function Dispose() As Variant @@ -189,14 +189,14 @@ Public Function Count(Optional ByRef InputStr As Variant _ , Optional ByRef IsRegex As Variant _ , Optional ByVal CaseSensitive As Variant _ ) As Long -''' Counts the number of occurrences of a substring or a regular exprsession within a string +''' Counts the number of occurrences of a substring or a regular expression within a string ''' Args: ''' InputStr: the input stringto examine ''' Substring: the substring to identify ''' IsRegex: True if Substring is a regular expression (default = False) ''' CaseSensitive: default = False ''' Returns: -''' The numer of occurrences as a Long +''' The number of occurrences as a Long ''' Examples: ''' SF_String.Count("Lorem ipsum dolor sit amet, consectetur adipiscing elit.", "\b[a-z]+\b", IsRegex := True, CaseSensitive := True) ''' returns 7 (the number of words in lower case) @@ -1134,7 +1134,7 @@ Check: Try: If Len(InputStr) > 0 And Len(Pattern) > 0 Then - ' Substiture special chars by escaped chars + ' Substitute special chars by escaped chars sRegex = SF_String.ReplaceStr(Pattern, Split(cstSPecialChars, ","), Split(cstEscapedChars, ",")) bLike = SF_String.IsRegex(InputStr, sRegex, CaseSensitive) End If @@ -1405,7 +1405,7 @@ End Function ' ScriptForge.SF_String.IsUpper REM ----------------------------------------------------------------------------- Public Function IsUrl(Optional ByRef InputStr As Variant) As Boolean ''' Return True if the string is a valid absolute URL (Uniform Resource Locator) -''' The parsing is done by the ParseStrict methof of the URLTransformer UNO service +''' The parsing is done by the ParseStrict method of the URLTransformer UNO service ''' https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1util_1_1XURLTransformer.html ''' Args: ''' InputStr: the input string @@ -2119,7 +2119,7 @@ Public Function SplitLines(Optional ByRef InputStr As Variant _ , Optional ByVal KeepBreaks As Variant _ ) As Variant ''' Return an array of the lines in a string, breaking at line boundaries -''' Line boundariess include LF(10), VT(12), CR(13), LF+CR, File separator(28), Group separator(29), Record separator(30), +''' Line boundaries include LF(10), VT(12), CR(13), LF+CR, File separator(28), Group separator(29), Record separator(30), ''' Next Line(133), Line separator(8232), Paragraph separator(8233) ''' Args: ''' InputStr: the input string @@ -2153,7 +2153,7 @@ Check: End If Try: - ' In next list CR + LF must preceede CR and LF + ' In next list CR + LF must precede CR and LF vLineBreaks = Array(SF_String.sfCRLF, SF_String.sfLF, Chr(12), SF_String.sfCR _ , Chr(28), Chr(29), Chr(30), Chr(133), Chr(8232), Chr(8233)) @@ -2192,7 +2192,7 @@ Public Function SplitNotQuoted(Optional ByRef InputStr As Variant _ ''' Args: ''' InputStr: the input string ''' Might contain quoted substrings: -''' The quoting chararacter must be the double quote (") +''' The quoting character must be the double quote (") ''' To preserve a quoting character inside the quoted substring, use (\) or (") as escape character ''' => [str\"i""ng] means [str"i"ng] ''' Delimiter: A string of one or more characters that is used to delimit the input string @@ -2548,7 +2548,7 @@ Check: Try: If Len(InputStr) > 0 Then sWrap = SF_String.Unescape(InputStr) ' Replace symbolic breaks - sWrap = SF_String.ExpandTabs(sWrap, TabSize) ' Interprete TABs to have a meaningful Width + sWrap = SF_String.ExpandTabs(sWrap, TabSize) ' Interpret TABs to have a meaningful Width ' First, split full string vWrapLines = SF_String.SplitLines(sWrap, KeepBreaks := True) ' Keep pre-existing breaks If UBound(vWrapLines) = 0 And Len(sWrap) <= Width Then ' Output a single line @@ -2608,7 +2608,7 @@ Private Function _Repr(ByRef pvString As String) As String ''' the converted string Dim sString As String ' Return value -Dim sChar As String ' A single chararacter +Dim sChar As String ' A single character Dim lAsc As Long ' Ascii value Dim lPos As Long ' Position in sString Dim i As Long diff --git a/wizards/source/scriptforge/SF_TextStream.xba b/wizards/source/scriptforge/SF_TextStream.xba index 6b042f92e435..bb8ea78486f6 100644 --- a/wizards/source/scriptforge/SF_TextStream.xba +++ b/wizards/source/scriptforge/SF_TextStream.xba @@ -63,7 +63,7 @@ Private _ForceBlankLine As Boolean ' Workaround: XTextInputStream misses REM ============================================================ MODULE CONSTANTS -REM ===================================================== CONSTRUCTOR/DESCTRUCTOR +REM ===================================================== CONSTRUCTOR/DESTRUCTOR REM ----------------------------------------------------------------------------- Private Sub Class_Initialize() @@ -312,7 +312,7 @@ Public Function ReadAll() As String ''' Exceptions: ''' FILENOTOPENERROR File not open or already closed ''' FILEOPENMODEERROR File opened in write or append modes -''' ENDOFFILEERROR Previous reads aleardy reached the end of the file +''' ENDOFFILEERROR Previous reads already reached the end of the file ''' Examples: ''' Dim a As String ''' a = myFile.ReadAll() @@ -355,7 +355,7 @@ Public Function ReadLine() As String ''' Exceptions: ''' FILENOTOPENERROR File not open or already closed ''' FILEOPENMODEERROR File opened in write or append modes -''' ENDOFFILEERROR Previous reads aleardy reached the end of the file +''' ENDOFFILEERROR Previous reads already reached the end of the file ''' Examples: ''' Dim a As String ''' a = myFile.ReadLine() @@ -459,7 +459,7 @@ Public Sub SkipLine() ''' Exceptions: ''' FILENOTOPENERROR File not open or already closed ''' FILEOPENMODEERROR File opened in write or append modes -''' ENDOFFILEERROR Previous reads aleardy reached the end of the file +''' ENDOFFILEERROR Previous reads already reached the end of the file ''' Examples: ''' myFile.SkipLine() -- cgit