Contenuto
Indice 🔎︎

# List of all ScriptForge methods and properties

This help page shows all methods and properties available in the ScriptForge library by service with links to the corresponding documentation.

The Basic source code for all ScriptForge services is available via Application Macros and Dialogs and is distributed in multiple libraries: ScriptForge, SFDatabases, SFDialogs, SFDocuments, SFUnitTests and SFWidgets. The Python portion of the source code is available in the program\scriptforge.py file under the LibreOfficeDev installation directory.

## Servizio ScriptForge.Array

Elenco dei metodi del servizio Array
Append AppendColumn AppendRow Contains ConvertToDictionary Copy CountDims Difference ExportToTextFile ExtractColumn ExtractRow | Flatten ImportFromCSVFile IndexOf Insert InsertSorted Intersection Join2D Prepend PrependColumn PrependRow RangeInit | Reverse Shuffle Slice Sort SortColumns SortRows Transpose TrimArray Union Unique

## Servizio SFDocuments.Base

Elenco dei metodi del servizio Base
CloseFormDocument FormDocuments Forms GetDatabase | IsLoaded OpenFormDocument OpenQuery OpenTable | PrintOut SetPrinter

This service also supports the methods and properties defined in the Document service, which includes methods that are generic to all document types.

## Servizio ScriptForge.Basic

Elenco dei metodi del servizio Basic
CDate CDateFromUnoDateTime CDateToUnoDateTime ConvertFromUrl ConvertToUrl CreateUnoService CreateUnoStruct DateAdd | DateDiff DatePart DateValue Format GetDefaultContext GetGuiType GetPathSeparator GetSystemTicks | GlobalScope.BasicLibraries GlobalScope.DialogLibraries InputBox MsgBox Now RGB Xray

Elenco delle proprietà del servizio Basic
IDABORT IDCANCEL IDIGNORE IDNO IDOK IDRETRY IDYES MB_ABORTRETRYIGNORE | MB_DEFBUTTON1 MB_DEFBUTTON2 MB_DEFBUTTON3 MB_ICONEXCLAMATION MB_ICONINFORMATION MB_ICONQUESTION MB_ICONSTOP MB_OK | MB_OKCANCEL MB_RETRYCANCEL MB_YESNO MB_YESNOCANCEL StarDesktop ThisComponent ThisDatabaseDocument

## Servizio SFDocuments.Calc

Elenco dei metodi del servizio Calc
A1Style Activate Charts ClearAll ClearFormats ClearValues CompactLeft CompactUp CopySheet CopySheetFromFile CopyToCell CopyToRange CreateChart CreatePivotTable DAvg | DCount DMax DMin DSum ExportRangeToFile Forms GetColumnName GetFormula GetValue ImportFromCSVFile ImportFromDatabase InsertSheet MoveRange MoveSheet Offset | OpenRangeSelector PrintOut Printf RemoveDuplicates RemoveSheet RenameSheet SetArray SetCellStyle SetFormula SetValue ShiftDown ShiftLeft ShiftRight ShiftUp SortRange

Elenco delle proprietà del servizio Calc
CurrentSelection FirstCell FirstColumn FirstRow Height LastCell | LastColumn LastRow Range Region Sheet SheetName | Sheets Width XCellRange XSheetCellCursor XSpreadsheet

This service also supports the methods and properties defined in the Document service, which includes methods that are generic to all document types.

## Servizio SFDocuments.Chart

Elenco dei metodi del servizio Chart
ExportToFile | Resize

Elenco delle proprietà del servizio Chart
ChartType Deep Dim3D Exploded Filled | Legend Percent Stacked Title XTitle | YTitle XChartObj XDiagram XShape XTableChart

## Servizio SFDatabases.Database

Elenco dei metodi del servizio Database
CloseDatabase DAvg DCount DMin | DMax DSum DLookup GetRows | OpenQuery OpenSql OpenTable RunSql

Elenco delle proprietà del servizio Database
Queries Tables | XConnection | XMetaData

## Servizio SFDatabases.Datasheet

Elenco dei metodi del servizio Datasheet
Activate CloseDatasheet CreateMenu | GetText GetValue | GoToCell RemoveMenu

Elenco delle proprietà del servizio Datasheet
ColumnHeaders CurrentColumn CurrentRow DatabaseFileName Filter | LastRow OrderBy ParentDatabase Source | SourceType XComponent XControlModel XTabControllerModel

## Servizio SFDialogs.Dialog

Elenco dei metodi del servizio Dialog
Activate Center Controls | EndExecute Execute GetTextsFromL10N | Resize SetPageManager Terminate

Elenco delle proprietà del servizio Dialog
CANCELBUTTON Caption Height Modal Name OKBUTTON OnFocusGained OnFocusLost | OnKeyPressed OnKeyReleased OnMouseDragged OnMouseEntered OnMouseExited OnMouseMoved OnMousePressed OnMouseReleased | Page Visible Width XChartObj XDiagram XDialogModel XDialogView XTableChart

## Servizio SFDialogs.DialogControl

Elenco dei metodi del servizio DialogControl
AddSubNode AddSubTree CreateRoot | FindNode SetFocus | SetTableData WriteLine

Elenco delle proprietà del servizio DialogControl
Cancel Caption ControlType CurrentNode Default Enabled Format ListCount ListIndex | Locked MultiSelect Name Page Parent Picture RootNode RowSource | Text TipText TripleState Value Visible XControlModel XControlView XTreeDataModel

## Servizio ScriptForge.Dictionary

Elenco dei metodi del servizio Dictionary
Add ConvertToArray ConvertToJson ConvertToPropertyValues | Exists ImportFromJson ImportFromPropertyValues Item | Remove RemoveAll ReplaceItem ReplaceKey

Elenco delle proprietà del servizio Dictionary
Count | Items | Keys

## Servizio SFDocuments.Document

Elenco dei metodi del servizio Document
Activate CloseDocument CreateMenu ExportAsPDF | PrintOut RemoveMenu RunCommand Save | SaveAs SaveCopyAs SetPrinter

Elenco delle proprietà del servizio Document
CustomProperties Description DocumentProperties DocumentType ExportFilters ImportFilters | IsBase IsCalc IsDraw IsImpress IsMath IsWriter | Keywords Readonly Subject Title XComponent

## Servizio ScriptForge.Exception

Elenco dei metodi del servizio Exception
Clear Console ConsoleClear ConsoleToFile | DebugDisplay DebugPrint PythonPrint | PythonShell Raise RaiseWarning

Elenco delle proprietà del servizio Exception
Description | Number | Source

## Servizio ScriptForge.FileSystem

Elenco dei metodi del servizio FileSystem
BuildPath CompareFiles CopyFile CopyFolder CreateFolder CreateTextFile DeleteFile DeleteFolder ExtensionFolder | FileExists Files FolderExists GetBaseName GetExtension GetFileLen GetFileModified GetName GetParentFolderName | GetTempName HashFile MoveFile MoveFolder Normalize OpenTextFile PickFile PickFolder SubFolders

Elenco delle proprietà del servizio FileSystem
ConfigFolder ExtensionsFolder FileNaming HomeFolder | InstallFolder Subject TemplatesFolder TemporaryFolder | Title UserTemplatesFolder XComponent

## Servizio SFDocuments.Form

Elenco dei metodi del servizio Form
Activate CloseFormDocument Controls GetDatabase | MoveFirst MoveLast MoveNext MoveNew | MovePrevious Requery SubForms

Elenco delle proprietà del servizio Form
AllowDeletes AllowInserts AllowUpdates BaseForm Bookmark CurrentRecord Filter LinkChildFields LinkParentFields Name | OnApproveCursorMove OnApproveParameter OnApproveReset OnApproveRowChange OnApproveSubmit OnConfirmDelete OnCursorMoved OnErrorOccurred OnLoaded OnReloaded | OnReloading OnResetted OnRowChanged OnUnloaded OnUnloading OrderBy Parent RecordSource XForm

## Servizio SFDocuments.FormControl

Elenco dei metodi del servizio FormControl
Controls | SetFocus

Elenco delle proprietà del servizio FormControl
Action Caption ControlSource ControlType Default DefaultValue Enabled Format ListCount ListIndex ListSource ListSourceType Locked MultiSelect Name OnActionPerformed | OnAdjustmentValueChanged OnApproveAction OnApproveReset OnApproveUpdate OnChanged OnErrorOccurred OnFocusGained OnFocusLost OnItemStateChanged OnKeyPressed OnKeyReleased OnMouseDragged OnMouseEntered OnMouseExited OnMouseMoved | OnMousePressed OnMouseReleased OnResetted OnTextChanged OnUpdated Parent Picture Required Text TipText TripleState Value Visible XControlModel XControlView

## Servizio ScriptForge.L10N

Elenco dei metodi del servizio L10N
AddText AddTextsFromDialog | ExportToPOTFile | GetText

Elenco delle proprietà del servizio L10N
Folder | Language | Locale

## Servizio SFWidgets.Menu

Elenco dei metodi del servizio Menu
AddCheckBox | AddItem | AddRadioButton

Elenco delle proprietà del servizio Menu
ShortcutCharacter | SubmenuCharacter

## Servizio ScriptForge.Platform

Elenco delle proprietà del servizio Platform
Architecture ComputerName CPUCount CurrentUser Extensions FilterNames Fonts | FormatLocale Locale Machine OfficeLocale OfficeVersion OSName OSPlatform | OSRelease OSVersion Printers Processor PythonVersion SystemLocale

## Servizio SFWidgets.PopupMenu

Elenco dei metodi del servizio PopupMenu
AddCheckBox AddItem | AddRadioButton | Execute

Elenco delle proprietà del servizio PopupMenu
ShortcutCharacter | SubmenuCharacter

## Servizio ScriptForge.Region

Elenco dei metodi del servizio Region
DSTOffset LocalDateTime | Number2Text TimeZoneOffset | UTCDateTime UTCNow

Elenco delle proprietà del servizio Region
Country Currency DatePatterns DateSeparator DayAbbrevNames | DayNames DayNarrowNames DecimalPoint Language ListSeparator | MonthAbbrevNames MonthNames MonthNarrowNames ThousandSeparator TimeSeparator

## Servizio ScriptForge.Session

Elenco dei metodi del servizio Session
ExecuteBasicScript ExecuteCalcFunction ExecutePythonScript GetPDFExportOptions HasUnoMethod | HasUnoProperty OpenURLInBrowser RunApplication SendMail SetPDFExportOptions | UnoMethods UnoProperties UnoObjectType WebService

Elenco delle proprietà del servizio Session
SCRIPTISAPPLICATION SCRIPTISEMBEDDED SCRIPTISOXT | SCRIPTISPERSONAL SCRIPTISPERSOXT | SCRIPTISSHARED SCRIPTISSHAROXT

## Servizio ScriptForge.String

Elenco dei metodi del servizio String
Capitalize Count EndsWith Escape ExpandTabs FilterNotPrintable FindRegex HashStr HtmlEncode IsADate IsAlpha IsAlphaNum IsAscii IsDigit IsEmail | IsFileName IsHexDigit IsIBAN IsIPv4 IsLike IsLower IsPrintable IsRegex IsSheetName IsTitle IsUpper IsUrl IsWhitespace JustifyCenter JustifyLeft | JustifyRight Quote ReplaceChar ReplaceRegex ReplaceStr Represent Reverse SplitLines SplitNotQuoted StartsWith TrimExt Unescape Unquote Wrap

Elenco delle proprietà del servizio Dictionary
sfCR sfLF | sfCRLF sfNEWLINE | sfTAB

## Servizio ScriptForge.TextStream

Elenco dei metodi del servizio TextStream
CloseFile ReadAll | ReadLine SkipLine | WriteBlankLines WriteLine

Elenco delle proprietà del servizio TextStream
AtEndOfStream Encoding | FileName IOMode | Line NewLine

## Servizio ScriptForge.Timer

Elenco dei metodi del servizio Timer
Continue Restart | Start Suspend | Terminate

Elenco delle proprietà del servizio Timer
Duration IsStarted | IsSuspended SuspendDuration | TotalDuration

## Servizio ScriptForge.UI

Elenco dei metodi del servizio UI
Activate CreateBaseDocument CreateDocument (*) GetDocument Maximize | Minimize OpenBaseDocument OpenDocument (*) Resize | RunCommand SetStatusBar (*) ShowProgressBar WindowExists

Elenco delle proprietà del servizio UI
ActiveWindow Documents Height | MACROEXECALWAYS MACROEXECNEVER MACROEXECNORMAL | Width X Y

## Servizio ScriptForge.UnitTest

Elenco dei metodi del servizio UnitTest
AssertAlmostEqual AssertEqual AssertFalse AssertGreater AssertGreaterEqual AssertIn AssertIsInstance AssertIsNothing AssertLike | AssertNotRegex AssertIsNull AssertLess AssertLessEqual AssertNotAlmostEqual AssertNotEqual AssertNotIn AssertNotInstance AssertNotLike | AssertNotNothing AssertNotNull AssertRegex AssertTrue Fail Log ReportError RunTest SkipTest

Elenco delle proprietà del servizio UnitTest
LongMessage ReturnCode | Verbose | WhenAssertionFails

Argomenti correlati

La libreria ScriptForge

Creazione di script in Python con ScriptForge