From e91f2d953177c5de27081c9e4485cc08c9e69ed7 Mon Sep 17 00:00:00 2001 From: Ilmari Lauhakangas Date: Tue, 19 Oct 2021 12:47:38 +0300 Subject: Remove whitespace in heading ids Change-Id: I16631a67b01e1df2567330a63a302164154b5076 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/123808 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas --- source/text/sbasic/shared/03/sf_dialog.xhp | 36 ++++++++++++------------- source/text/sbasic/shared/03/sf_exception.xhp | 18 ++++++------- source/text/sbasic/shared/03/sf_form.xhp | 22 +++++++-------- source/text/sbasic/shared/03/sf_formcontrol.xhp | 2 +- source/text/sbasic/shared/03/sf_methods.xhp | 4 +-- 5 files changed, 41 insertions(+), 41 deletions(-) (limited to 'source') diff --git a/source/text/sbasic/shared/03/sf_dialog.xhp b/source/text/sbasic/shared/03/sf_dialog.xhp index 3c1ad74832..eef18e9e3f 100644 --- a/source/text/sbasic/shared/03/sf_dialog.xhp +++ b/source/text/sbasic/shared/03/sf_dialog.xhp @@ -401,12 +401,12 @@ Dialog service;Activate -

Activate

+

Activate

Set the focus on the current Dialog instance. Return True if focusing was successful. This method is called from a dialog or control event, or when a dialog is displayed in non-modal mode. -

+

svc.Activate(): bool -

+

Dim oDlg As Object Set oDlg = CreateScriptService(,, "myDialog") @@ -427,7 +427,7 @@ Dialog service;Controls -

Controls

+

Controls

Return either: @@ -437,12 +437,12 @@ a DialogControl class instance based on its name -

+

svc.Controls(): str[0..*] svc.Controls(controlname: str): svc -

+

ControlName : A valid control name as a case-sensitive string. If absent, the list of control names is returned as a zero-based array. -

+

Dim myDialog As Object, myList As Variant, myControl As Object Set myDialog = CreateScriptService("SFDialogs.Dialog", , "Standard", "Dialog1") @@ -460,14 +460,14 @@ Dialog service;EndExecute -

EndExecute

+

EndExecute

Ends the display of a modal dialog and gives back the argument as return value for the current Execute() running action. EndExecute() is usually contained in the processing of a macro triggered by a dialog or control event. -

+

svc.EndExecute(returnvalue: int) -

+

returnvalue: The value passed to the running Execute() method. -

+

Using %PRODUCTNAME Basic: Sub OnEvent(poEvent As com.sun.star.lang.EventObject) @@ -489,7 +489,7 @@ Execute -------------------------------------------------------------------------------------------------------------------------- Dialog service;Execute -

Execute

+

Execute

Display the dialog box and, when modal, wait for its termination by the user. The returned value is either: @@ -503,11 +503,11 @@ For non-modal dialog boxes the method always returns 0 and the execution of the macro continues. -

+

svc.Execute(modal: bool = True): int -

+

modal: False when non-modal dialog. Default = True. -

+

In this Basic example myDialog dialog is stored in current document's Standard library. Dim oDlg As Object, lReturn As Long @@ -530,11 +530,11 @@ Dialog service;Terminate -

Terminate

+

Terminate

Terminate the Dialog service for the current instance. Return True if the termination was successful. -

+

svc.Terminate(): bool -

+

Below Basic and Python examples open DlgConsole and dlgTrace non-modal dialogs. They are respectively stored in ScriptForge and Access2Base shared libraries. Dialog close buttons are disabled and explicit termination is performed at the end of a running process. In this example a button in DlgConsole is substituting inhibited window closing: diff --git a/source/text/sbasic/shared/03/sf_exception.xhp b/source/text/sbasic/shared/03/sf_exception.xhp index ac6425397f..66158a4e3b 100644 --- a/source/text/sbasic/shared/03/sf_exception.xhp +++ b/source/text/sbasic/shared/03/sf_exception.xhp @@ -161,7 +161,7 @@ Exception service;Clear -

Clear

+

Clear

Resets the current error status and clears the SF_Exception properties. @@ -192,7 +192,7 @@ Exception service;Console -

Console

+

Console

Displays the console messages in a modal or non-modal dialog. In both modes, all the past messages issued by a DebugPrint() method or resulting from an exception are displayed. In non-modal mode, subsequent entries are added automatically. If the console is already open, when non-modal, it is brought to the front. A modal console can only be closed by the user. A non-modal console can either be closed by the user or upon macro termination. @@ -218,7 +218,7 @@ Exception service;ConsoleClear -

ConsoleClear

+

ConsoleClear

Clears the console keeping an optional number of recent messages. If the console is activated in non-modal mode, it is refreshed. @@ -243,7 +243,7 @@ Exception service;ConsoleToFile -

ConsoleToFile

+

ConsoleToFile

Exports the contents of the console to a text file. If the file already exists and the console is not empty, it will be overwritten without warning. Returns True if successful. @@ -267,7 +267,7 @@ Exception service;DebugDisplay -

DebugDisplay

+

DebugDisplay

Concatenates all the arguments into a single human-readable string and displays it in a MsgBox with an Information icon and an OK button. The final string is also added to the Console. @@ -292,7 +292,7 @@ Exception service;DebugPrint -

DebugPrint

+

DebugPrint

Assembles all the given arguments into a single human-readable string and adds it as a new entry in the console. @@ -342,7 +342,7 @@ Exception service;PythonShell -

PythonShell

+

PythonShell

Opens an APSO Python shell as a non-modal window. The Python script keeps running after the shell is opened. The output from print statements inside the script are shown in the shell. Only a single instance of the APSO Python shell can be opened at any time. Hence, if a Python shell is already open, then calling this method will have no effect. @@ -369,7 +369,7 @@ Exception service;Raise -

Raise

+

Raise

Generates a run-time error. An error message is displayed to the user and reported in the console. The execution is stopped. The Raise() method can be placed inside the normal script flow or in a dedicated error-handling routine. @@ -434,7 +434,7 @@ Exception service;RaiseWarning -

RaiseWarning

+

RaiseWarning

This method has exactly the same syntax, arguments and behavior as the Raise() method. However, when a warning is raised, the macro execution is not stopped. diff --git a/source/text/sbasic/shared/03/sf_form.xhp b/source/text/sbasic/shared/03/sf_form.xhp index c002d54f66..9d0a88eacc 100644 --- a/source/text/sbasic/shared/03/sf_form.xhp +++ b/source/text/sbasic/shared/03/sf_form.xhp @@ -575,7 +575,7 @@ Form service;Activate -

Activate

+

Activate

Sets the focus on the current Form instance. Returns True if focusing was successful. The behavior of the Activate method depends on the type of document where the form is located: @@ -614,7 +614,7 @@ Form service;CloseFormDocument -

CloseFormDocument

+

CloseFormDocument

Closes the form document containing the actual Form instance. The Form instance is disposed. svc.CloseFormDocument(): bool @@ -633,7 +633,7 @@ Form service;Controls -

Controls

+

Controls

The value returned by the Controls method depends on the arguments provided: @@ -666,7 +666,7 @@ Form service;GetDatabase -

GetDatabase

+

GetDatabase

Return a SFDatabases.Database instance giving access to the execution of SQL commands on the database the current form is connected to and/or that is stored in the current Base document. Each form has its own database connection, except in Base documents where they all share the same connection. @@ -688,7 +688,7 @@ Form service;MoveFirst -

MoveFirst

+

MoveFirst

The form cursor is positioned on the first record. Returns True if successful. svc.MoveFirst(): bool @@ -706,7 +706,7 @@ Form service;MoveLast -

MoveLast

+

MoveLast

The form cursor is positioned on the last record. Returns True if successful. svc.MoveLast(): bool @@ -724,7 +724,7 @@ Form service;MoveNew -

MoveNew

+

MoveNew

The form cursor is positioned on the new record area. Returns True if successful. svc.MoveNew(): bool @@ -742,7 +742,7 @@ Form service;MoveNext -

MoveNext

+

MoveNext

The form cursor is positioned on the next record. Returns True if successful. svc.MoveNext(opt offset: int): bool @@ -762,7 +762,7 @@ Form service;MovePrevious -

MovePrevious

+

MovePrevious

The form cursor is positioned on the previous record. Returns True if successful. svc.MovePrevious(opt offset: int): bool @@ -781,7 +781,7 @@ Form service;Requery -

Requery

+

Requery

Reloads the current data from the database and refreshes the form. The cursor is positioned on the first record. Returns True if successful. svc.Requery(): bool @@ -799,7 +799,7 @@ Form service;Subforms -

Subforms

+

Subforms

The value returned by the Subforms method depends on the arguments provided: diff --git a/source/text/sbasic/shared/03/sf_formcontrol.xhp b/source/text/sbasic/shared/03/sf_formcontrol.xhp index afc8ba2b77..8c6a81394e 100644 --- a/source/text/sbasic/shared/03/sf_formcontrol.xhp +++ b/source/text/sbasic/shared/03/sf_formcontrol.xhp @@ -1060,7 +1060,7 @@ FormControl service;Controls -

Controls

+

Controls

This method is applicable only to controls of the TableControl type. The returned value depends on the arguments provided. If the optional argument controlname is absent, then a zero-based Array containing the names of all controls is returned. On the other hand, if a controlname is provided, the method returns a FormControl class instance corresponding to the specified control. diff --git a/source/text/sbasic/shared/03/sf_methods.xhp b/source/text/sbasic/shared/03/sf_methods.xhp index 43bf608958..219669b9f7 100644 --- a/source/text/sbasic/shared/03/sf_methods.xhp +++ b/source/text/sbasic/shared/03/sf_methods.xhp @@ -32,7 +32,7 @@

Basic only service method

Typographical characters such as brackets, ellipsis or curly braces denote optional, repetitive or compulsory arguments: -

+

FSO.HashFile(FileName As String, _ Algorithm As String = {MD5|SHA1|SHA224|SHA256|SHA384|SHA512}) As String @@ -203,7 +203,7 @@ -

+

svc.Forms( opt form: any ): svc[0..*] svc.MsgBox( prompt: str, buttons = svc.MB_OK , opt title: str ): opt str svc.InputBox( prompt: str, default = "", [ title: str ], [ xpostwips: int, ypostwips: int ] ): str -- cgit