Innhald

# Liste over alle ScriptForge-metodane og eigenskapane

Denne hjelpesida viser alle metodane og eigenskapane som er tilgjengelege i ScriptForge-biblioteket ut frå tenester, med lenkjer til den tilsvarande dokumentasjonen.

Den Grunnleggjande kjeldekoden for alle ScriptForge-tenester er tilgjengeleg via Application Macros and Dialogs og vert distribuert i fleire bibliotek: ScriptForge, SFDatabases, SFDialogs, SFDocuments, SFUnitTests og SFWidgets. Python-delen av kjeldekoden er tilgjengeleg i fila program\scriptforge.py i installasjonskatalogen LibreOffice.

## ScriptForge.Matrise-tenesta

Liste over metodar i tenesta matrise
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

## SFDocuments.Base-tenesta

Liste over metodar i tenesta Base
CloseFormDocument FormDocuments Forms GetDatabase | IsLoaded OpenFormDocument OpenQuery OpenTable | PrintOut SetPrinter

Denne tenesta støttar også metodane og eigenskapane som er definerte i Dokument-tenesta, som tek med metodar som er generiske for alle dokumenttypane.

## ScriptForge.Basic-tenesta

Liste over metodar i tenesta Base
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

Liste over eigenskapar i i Basic-tenesta
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

## SFDocuments.Calc-tenesta

Liste over metodar i tenesta 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 ImportStylesFromFile InsertSheet MoveRange MoveSheet Offset OpenRangeSelector | PrintOut Printf RemoveDuplicates RemoveSheet RenameSheet SetArray SetCellStyle SetFormula SetValue ShiftDown ShiftLeft ShiftRight ShiftUp SortRange

Liste over eigenskapar i Calc-tenesta
CurrentSelection FirstCell FirstColumn FirstRow Height LastCell | LastColumn LastRow Range Region Sheet SheetName | Sheets Width XCellRange XSheetCellCursor XSpreadsheet

Denne tenesta støttar også metodane og eigenskapane som er definerte i Dokument-tenesta, som tek med metodar som er generiske for alle dokumenttypane.

## SFDocuments.Diagram-tenesta

Liste over metodar i tenesta Chart (diagram)
ExportToFile | Resize

Liste over eigenskapar i tenesta Chart (diagram)
ChartType Deep Dim3D Exploded Filled | Legend Percent Stacked Title XTitle | YTitle XChartObj XDiagram XShape XTableChart

## SFDatabases.Database-teneste

Liste over metodar i tenesta database
CloseDatabase Commit CreateDataset DAvg DCount DMin | DMax DSum DLookup GetRows OpenFormDocument OpenQuery | OpenSql OpenTable Rollback RunSql SetTransactionMode

Liste over eigenskapar i tenesta Database
Queries Tables | XConnection | XMetaData

## SFDatabases.Dataset-tenesta

Liste over metodar i datasett-tenesta
CloseDataset CreateDataset Delete ExportValueToFile GetRows | GetValue Insert MoveFirst MoveLast | MoveNext MovePrevious Reload Update

Liste over eigenskapar i tenesta Dataset
BOF DefaultValues EOF Fields Filter | Orderby ParentDatabase RowCount RowNumber Source | SourceType UpdatableFields Values XRowSet

## SFDatabases.Datasheet-tenesta

Liste over metodar i «datasheet»-tenesta
Activate CloseDatasheet CreateMenu | GetText GetValue GoToCell | RemoveMenu Toolbars

Liste over eigenskapar i tenesta Datasheet
ColumnHeaders CurrentColumn CurrentRow DatabaseFileName Filter | LastRow OrderBy ParentDatabase Source | SourceType XComponent XControlModel XTabControllerModel

## SFDialogs.Dialog-tenesta

Liste over metodar i tenesta Dialog
Activate Center Controls CloneControl CreateButton CreateCheckBox CreateComboBox CreateCurrencyField CreateDateField CreateFileControl CreateFixedLine | CreateFixedText CreateFormattedField CreateGroupBox CreateHyperlink CreateImageControl CreateListBox CreateNumericField CreatePatternField CreateProgressBar CreateRadioButton CreateScrollBar | CreateTableControl CreateTextField CreateTimeField CreateTreeControl EndExecute Execute GetTextsFromL10N Resize OrderTabs SetPageManager Terminate

Liste over eigenskapar i tenesta 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

## SFDialogs.DialogControl-tenesta

Liste over metodar i tenesta DialogControl
AddSubNode AddSubTree CreateRoot | FindNode Resize SetFocus | SetTableData WriteLine

Liste over eigenskapar i tenesta 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

## ScriptForge.Dictionary-tenesta

Liste over metodar i ordboktenesta
Add ConvertToArray ConvertToJson ConvertToPropertyValues | Exists ImportFromJson ImportFromPropertyValues Item | Remove RemoveAll ReplaceItem ReplaceKey

Liste over eigenskapar i tenesta Dictionary
Count | Items | Keys

## SFDocuments.Document-tenesta

Liste over metodar i tenesta document
Activate CloseDocument CreateMenu DeleteStyles Echo ExportAsPDF | PrintOut RemoveMenu RunCommand Save SaveAs | SaveCopyAs SetPrinter Style Toolbars XStyle

Liste over eigenskapar i tenesta Document
CustomProperties Description DocumentProperties DocumentType ExportFilters FileSystem ImportFilters | IsBase IsCalc IsDraw IsFormDocument IsImpress IsMath IsWriter | Keywords Readonly StyleFamilies Subject Title XComponent XDocumentSettings

## ScriptForge.Exception-tenesta

Liste over metodar i tenesta Exception
Clear Console ConsoleClear ConsoleToFile | DebugDisplay DebugPrint PythonPrint | PythonShell Raise RaiseWarning

Liste over eigenskapar i tenesta Exeption
Description | Number | Source

## ScriptForge.FileSystem-tenesta

Liste over metodar i tenesta 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

Liste over eigenskapar i tenesta FileSystem
ConfigFolder ExtensionsFolder FileNaming HomeFolder | InstallFolder Subject TemplatesFolder TemporaryFolder | Title UserTemplatesFolder XComponent

## SFDocuments.Form-tenesta

Liste over metodar i tenesta Form
Activate Controls GetDatabase MoveFirst | MoveLast MoveNext MoveNew | MovePrevious Requery SubForms

Liste over eigenskapar i tenesta 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

## SFDocuments.FormControl-tenesta

Liste over metodar i tenesta FormControl
Controls | SetFocus

Liste over eigenskapar i tenesta 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

## Tenesta SFDocuments.FormDocument

Liste over metodar i tenesta «FormDocument»
CloseDocument Forms | GetDatabase | PrintOut

## ScriptForge.L10N-tenesta

Liste over metodar i tenesta L10N
AddText AddTextsFromDialog | ExportToPOTFile | GetText

Liste over eigenskapar i tenesta L10N
Folder | Language | Locale

## SFWidgets.Menu-tenesta

Liste over metodar i tenesta «Menu»
AddCheckBox | AddItem | AddRadioButton

Liste over eigenskapar i tenesta Menu
ShortcutCharacter | SubmenuCharacter

## ScriptForge.Platform-tenesta

Liste over eigenskapar i tenesta Platform
Architecture ComputerName CPUCount CurrentUser Extensions FilterNames Fonts | FormatLocale Locale Machine OfficeLocale OfficeVersion OSName OSPlatform | OSRelease OSVersion Printers Processor PythonVersion SystemLocale UserData

## SFWidgets.PopupMenu-tenesta

Liste over metodar i tenesta PopupMenu
AddCheckBox AddItem | AddRadioButton | Execute

Liste over eigenskapar i tenesta PopupMenu
ShortcutCharacter | SubmenuCharacter

## ScriptForge.Region-tenesta

Liste over metodar i tenesta «Region»
DSTOffset LocalDateTime | Number2Text TimeZoneOffset | UTCDateTime UTCNow

Liste over eigenskapar i tenesta Region
Country Currency DatePatterns DateSeparator DayAbbrevNames | DayNames DayNarrowNames DecimalPoint Language ListSeparator | MonthAbbrevNames MonthNames MonthNarrowNames ThousandSeparator TimeSeparator

## ScriptForge.Session-tenesta

Liste over metodar i tenesta Session
ExecuteBasicScript ExecuteCalcFunction ExecutePythonScript GetPDFExportOptions HasUnoMethod | HasUnoProperty OpenURLInBrowser RunApplication SendMail SetPDFExportOptions | UnoMethods UnoProperties UnoObjectType WebService

Liste over eigenskapar i tenesta Session
SCRIPTISAPPLICATION SCRIPTISEMBEDDED SCRIPTISOXT | SCRIPTISPERSONAL SCRIPTISPERSOXT | SCRIPTISSHARED SCRIPTISSHAROXT

## ScriptForge.String-tenesta

Liste over metodar i tenesta 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

Liste over eigenskapar i tenesta Dictionary
sfCR sfLF | sfCRLF sfNEWLINE | sfTAB

## ScriptForge.TextStream-tenesta

Liste over metodane i tenesta TextStream
CloseFile ReadAll | ReadLine SkipLine | WriteBlankLines WriteLine

Liste over eigenskapar i tenesta TextStream
AtEndOfStream Encoding | FileName IOMode | Line NewLine

## ScriptForge.Timer-tenesta

Liste over metodar i tenesta Timer
Continue Restart | Start Suspend | Terminate

Liste over eigenskapar i tenesta Timer
Duration IsStarted | IsSuspended SuspendDuration | TotalDuration

## ScriptForge.Toolbar-tenesta

Liste over metodar i Toolbar-tenesta
ToolbarButtons |  |

Liste over eigenskapar i tenesta Toolbar
BuiltIn Docked HasGlobalScope | Name ResourceURL | Visible XUIElement

## ScriptForge.ToolbarButton-tenesta

Liste over metodar i tenesta ToolbarButton
Execute |  |

Liste over eigenskapar i tenesta ToolbarButton
Caption Height Index OnClick | Parent TipText Visible | Width X Y

## ScriptForge.UI-tenesta

Liste over metodar i tenesta UI
Activate CreateBaseDocument CreateDocument (*) Documents GetDocument | Maximize Minimize OpenBaseDocument OpenDocument (*) Resize | RunCommand SetStatusBar (*) ShowProgressBar WindowExists

Liste over eigenskapar i tenesta UI
ActiveWindow Height MACROEXECALWAYS | MACROEXECNEVER MACROEXECNORMAL Width | X Y

## ScriptForge.UnitTest-tenesta

Liste over metodar i tenesta «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

Liste over eigenskapar i tenesta UnitTest
LongMessage ReturnCode | Verbose | WhenAssertionFails

## ScriptForge.Writer-tenesta

Liste over metodar i tenesta Writer
Forms | ImportStylesFromFile | PrintOut

Liknande emne

ScriptForge-biblioteket

Laga Python-skript med ScriptForge