diff --git a/source/text/sbasic/python/python_document_events.xhp b/source/text/sbasic/python/python_document_events.xhp index be5cae32e0..445d425e39 100644 --- a/source/text/sbasic/python/python_document_events.xhp +++ b/source/text/sbasic/python/python_document_events.xhp @@ -224,7 +224,7 @@ Const _LIBRARY = "Access2Base" : With GlobalScope.BasicLibraries If Not .IsLibraryLoaded(_LIBRARY) Then .LoadLibrary(_LIBRARY) End With : Access2Base.Trace.TraceLevel("DEBUG") - If IsMissing(evt) Then _txtMsg = "" Else _txtMsg = evt.EventName & "-" + If IsMissing(evt) Then _txtMsg = "" Else _txtMsg = evt.EventName & "-" Access2Base.Trace.TraceLog("INFO", _txtMsg & "Document events are being logged", UI_PROMPT) _evtAdapter = CreateUnoListener( "_", "com.sun.star.document.XDocumentEventListener" ) ThisComponent.addDocumentEventListener( _evtAdapter ) diff --git a/source/text/sbasic/shared/03/sf_l10n.xhp b/source/text/sbasic/shared/03/sf_l10n.xhp index 98c94c0661..e7422c9e75 100644 --- a/source/text/sbasic/shared/03/sf_l10n.xhp +++ b/source/text/sbasic/shared/03/sf_l10n.xhp @@ -77,7 +77,7 @@ The example above will result in an runtime error if the PO file for the current locale does not exist in the specified folder. In the example below, both the folder name and locale settings are explicitly defined to be Belgian French. - Set myPO = CreateScriptService("L10N", "C:\myPOFiles", "fr-BE") + Set myPO = CreateScriptService("L10N", "C:\myPOFiles", "fr-BE") PO files must be named in the form "la-CO.po" or "la.po", where "la" refers to the language and "CO" is the country. Some examples are: "en-US.po", "fr-BE.po" or "fr.po". It is recommended to free resources after use: diff --git a/source/text/sbasic/shared/03/sf_methods.xhp b/source/text/sbasic/shared/03/sf_methods.xhp index a06b536bc4..43bf608958 100644 --- a/source/text/sbasic/shared/03/sf_methods.xhp +++ b/source/text/sbasic/shared/03/sf_methods.xhp @@ -86,10 +86,10 @@ Date - datetime + datetime - datetime + datetime @@ -97,10 +97,10 @@ Double - float + float - float + float @@ -108,10 +108,10 @@ Integer - int + int - int + int @@ -119,10 +119,10 @@ Long - int + int - int + int @@ -130,7 +130,10 @@ Object - obj + obj + + + @@ -138,10 +141,10 @@ Single - float + float - float + float @@ -149,10 +152,10 @@ String - str + str - str + str @@ -160,7 +163,10 @@ Variant - any + any + + + @@ -168,7 +174,10 @@ UNO Object - uno + uno + + + @@ -176,7 +185,10 @@ User Defined
Type (UDT)
- obj + obj + + +
@@ -184,7 +196,10 @@ ScriptForge
service
- svc + svc + + +
diff --git a/source/text/sbasic/shared/03/sf_services.xhp b/source/text/sbasic/shared/03/sf_services.xhp index aaedbd394c..e8462b4268 100644 --- a/source/text/sbasic/shared/03/sf_services.xhp +++ b/source/text/sbasic/shared/03/sf_services.xhp @@ -35,7 +35,7 @@ This method is used to instantiate a ScriptForge service so it can be called in user scripts. The returned value is a Basic object or Nothing if an error occurred. - + svc.CreateScriptService(service: str, [arg0: any] ...): svc diff --git a/source/text/sbasic/shared/03/sf_session.xhp b/source/text/sbasic/shared/03/sf_session.xhp index 290d2dbc73..b2b2758ac5 100644 --- a/source/text/sbasic/shared/03/sf_session.xhp +++ b/source/text/sbasic/shared/03/sf_session.xhp @@ -320,7 +320,7 @@ args: The arguments to be passed to the called script.. - Consider the Python function odd_integers defined below that creates a list with odd integer values between v1 an v2. Suppose this function is stored in a file named my_macros.py in your user scripts folder. + Consider the Python function odd_integers defined below that creates a list with odd integer values between v1 and v2. Suppose this function is stored in a file named my_macros.py in your user scripts folder. def odd_integers(v1, v2): odd_list = [v for v in range(v1, v2 + 1) if v % 2 != 0] @@ -475,7 +475,7 @@ cc: A comma-separated list of email addresses (the "carbon copy" recipients). bcc: A comma-separated list of email addresses (the "blind carbon copy" recipients). subject: the header of the message. - body: The content of the message as an unformatted text. + body: The contents of the message as an unformatted text. filenames: a comma-separated list of file names. Each file name must respect the SF_FileSystem.FileNaming notation. editmessage: When True (default), the message is edited before being sent. diff --git a/source/text/sbasic/shared/03/sf_string.xhp b/source/text/sbasic/shared/03/sf_string.xhp index abe9fd7c11..fafd7f3122 100644 --- a/source/text/sbasic/shared/03/sf_string.xhp +++ b/source/text/sbasic/shared/03/sf_string.xhp @@ -396,7 +396,7 @@ inputstr: The string to be tested. - substring: The substring to be searched at the end of InputStr. + substring: The substring to be searched at the end of inputstr. casesensitive: The search can be case sensitive or not (Default = False). @@ -1363,7 +1363,7 @@ arr4 = svc.SplitNotQuoted(r'abc,"def\",ghi"",', ",") # arr4 = ('abc', '"def\\",ghi""', '') - Beware of the differences between Basic and Python when representing strings. For example, in Basic two "" characters inside a string are interpreted as a single " character. In Python, strings enclosed with single quotes can contain " characters without having to double them. + Beware of the differences between Basic and Python when representing strings. For example, in Basic two "" characters inside a string are interpreted as a single " character. In Python, strings enclosed with single quotes can contain " characters without having to double them.