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