ScriptForge Mga Lagda ng Pamamaraan

Pinagsasama-sama ng mga library ng ScriptForge ang mga mapagkukunan ng macro scripting para sa LibreOffice na ma-invoke mula sa mga Basic na macro o Python script. Ang mga module at klase nito ay ginagamit mula sa mga script ng user bilang "Mga Serbisyo" na naglalantad ng mga katangian, pamamaraan at kaganapan.

Pangunahing paraan lamang ng serbisyo

Ang mga typographical na character gaya ng mga bracket, ellipsis o curly braces ay tumutukoy sa opsyonal, paulit-ulit o sapilitang argumento:

Halimbawa:


       FSO.HashFile(FileName As String, _
           Algorithm As String = {MD5|SHA1|SHA224|SHA256|SHA384|SHA512}) As String
       SF_Array.ImportFromCSVFile(FileName As String, _
           [Delimiter = ","], [DateFormat As String]) As Variant
       SF_String.SplitNotQuoted(InputStr As String, _
          [Delimiter As String], [Occurrences As Long], [QuoteChar As String]) As Variant
    

Python o Basic na mga pamamaraan ng serbisyo

Ang mga sumusunod na panuntunan sa typographical ay pinaghahalo ang UML notation, ang API documentation layout at ang UNO object inspector user interface:

LibreOffice
Basic

Syntax

Python

Boolean

bool

bool

Date

datetime

datetime

Double

float

float

Integer

int

int

Long

int

int

Object

obj

Single

float

float

String

str

str

Variant

any

UNO Object

uno

Tinukoy ng User
Uri (UDT)

obj

ScriptForge
serbisyo

svc


Halimbawa:

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

Mangyaring suportahan kami!