Indhold

# Liste over alle ScriptForge-metoder og egenskaber

Denne hjælpeside viser alle de metoder og egenskaber, som er tilgængelige i ScriptForge-biblioteket ud fra tjenester, med links til den tilsvarende dokumentation.

Basic-kildekoden til alle ScriptForge-tjenester er tilgængelig via Application Macros and Dialogs og bliver distribueret i flere biblioteker: ScriptForge, SFDatabases, SFDialogs, SFDocuments, SFUnitTests og SFWidgets. De dele af kildekoden, som er i Python er tilgængelige i filen program\scriptforge.py under LibreOffice installations-kataloget.

## Tjenesten ScriptForge.Array

Liste over metoder i tjenesten 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

## Tjenesten SFDocuments.Base

Liste over metoder i tjenesten Base
CloseFormDocument FormDocuments Forms GetDatabase | IsLoaded OpenFormDocument OpenQuery OpenTable | PrintOut SetPrinter

Denne tjeneste understøtter også metoderne og egenskaberne defineret i Document-tjenesten, som indeholder metoder, der er generiske for alle dokumenttyper.

## Tjenesten ScriptForge.Basic

Liste over metoder i tjenesten 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

Liste over egenskaber i tjenesten 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

## Tjenesten SFDocuments.Calc

Liste over metoder i tjenesten 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
Intersect
MoveRange
MoveSheet
Offset

OpenRangeSelector
PrintOut
Printf
RemoveDuplicates
RemoveSheet
RenameSheet
SetArray
SetCellStyle
SetFormula
SetValue
ShiftDown
ShiftLeft
ShiftRight
ShiftUp
SortRange

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

Denne tjeneste understøtter også metoderne og egenskaberne defineret i Document-tjenesten, som indeholder metoder, der er generiske for alle dokumenttyper.

## Tjenesten SFDocuments.Chart

Liste over metoder i tjenesten Chart (diagram)
ExportToFile | Resize

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

## Tjenesten SFDatabases.Database

Liste over metoder i tjenesten Database
CloseDatabase Commit CreateDataset DAvg DCount DMin | DMax DSum DLookup GetRows OpenFormDocument OpenQuery | OpenSql OpenTable Rollback RunSql SetTransactionMode

Liste over egenskaber i tjenesten Database
Queries Tables | XConnection | XMetaData

## Tjenesten SFDatabases.Dataset

Liste over metoder i tjenesten Dataset
CloseDataset CreateDataset Delete ExportValueToFile GetRows | GetValue Insert MoveFirst MoveLast | MoveNext MovePrevious Reload Update

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

## Tjenesten SFDatabases.Datasheet

Liste over metoder i tjenesten Datasheet
Activate CloseDatasheet CreateMenu | GetText GetValue GoToCell | RemoveMenu Toolbars

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

## Tjenesten SFDialogs.Dialog

Liste over metoder i tjenesten Dialog

Activate
Center
Controls
CloneControl
CreateButton
CreateCheckBox
CreateComboBox
CreateCurrencyField
CreateDateField
CreateFileControl
CreateFixedLine
CreateFixedText

CreateFormattedField
CreateGroupBox
CreateHyperlink
CreateImageControl
CreateListBox
CreateNumericField
CreatePatternField
CreateProgressBar
CreateRadioButton
CreateScrollBar
CreateTableControl
CreateTabPageContainer

CreateTextField
CreateTimeField
CreateTreeControl
EndExecute
Execute
GetTextsFromL10N
ImportControl
OrderTabs
Resize
SetPageManager
Terminate

Liste over egenskaber i tjenesten 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

## Tjenesten SFDialogs.DialogControl

Liste over metoder i tjenesten DialogControl
AddSubNode AddSubTree CreateRoot | FindNode Resize SetFocus | SetTableData WriteLine

Liste over egenskaber i tjenesten 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

## Tjenesten ScriptForge.Dictionary

Liste over metoder i tjenesten Dictionary
Add ConvertToArray ConvertToJson ConvertToPropertyValues | Exists ImportFromJson ImportFromPropertyValues Item | Remove RemoveAll ReplaceItem ReplaceKey

Liste over egenskaber i tjenesten Dictionary
Count | Items | Keys

## Tjenesten SFDocuments.Document

Liste over metoder i tjenesten Document
Activate CloseDocument CreateMenu DeleteStyles Echo ExportAsPDF | PrintOut RemoveMenu RunCommand Save SaveAs | SaveCopyAs SetPrinter Style Toolbars XStyle

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

## Tjenesten ScriptForge.Exception

Linste over metoder i tjenesten Exception (Undtagelse)
Clear Console ConsoleClear ConsoleToFile | DebugDisplay DebugPrint PythonPrint | PythonShell Raise RaiseWarning

Liste over egenskaber i tjenesten Exception
Description | Number | Source

## Tjenesten ScriptForge.FileSystem

Liste oiver metoder i tjenesten 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 egenskaber i tjenesten FileSystem
ConfigFolder ExtensionsFolder FileNaming HomeFolder | InstallFolder Subject TemplatesFolder TemporaryFolder | Title UserTemplatesFolder XComponent

## Tjenesten SFDocuments.Form

Liste over metoderne i tjenesten Form (formular)
Activate Controls GetDatabase MoveFirst | MoveLast MoveNext MoveNew | MovePrevious Requery SubForms

Liste over egenskaber i tjenesten Form (formular)
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

## Tjenesten SFDocuments.FormControl

Liste over metoder i tjenesten FormControl (formularkontrol)
Controls | SetFocus

Liste over egenskaber i tjenesten 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

## Tjenesten SFDocuments.FormDocument

Liste over metoder i tjenesten FormDocument
CloseDocument Forms | GetDatabase | PrintOut

## Tjenesten ScriptForge.L10N

Liste over metoder i tjenesten L10N (lokal oversættelse)
AddText AddTextsFromDialog | ExportToPOTFile | GetText

Liste over egenskaber i tjenesten L10N (lokal oversættelse)
Folder | Language | Locale

## Tjenesten SFWidgets.Menu

Liste over metoder i tjenesten Menu
AddCheckBox | AddItem | AddRadioButton

Liste over egenskaber i tjenesten Menu
ShortcutCharacter | SubmenuCharacter

## Tjenesten ScriptForge.Platform

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

## Tjenesten SFWidgets.PopupMenu

Liste over metoder i tjenesten PopupMenu
AddCheckBox AddItem | AddRadioButton | Execute

Liste over egenskaber i tjenesten PopupMenu
ShortcutCharacter | SubmenuCharacter

## Tjenesten ScriptForge.Region

Liste over metoder i tjenesten Region
DSTOffset LocalDateTime | Number2Text TimeZoneOffset | UTCDateTime UTCNow

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

## Tjenesten ScriptForge.Session

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

Liste over egenskaber i tjenesten Session
SCRIPTISAPPLICATION SCRIPTISEMBEDDED SCRIPTISOXT | SCRIPTISPERSONAL SCRIPTISPERSOXT | SCRIPTISSHARED SCRIPTISSHAROXT

## Tjenesten ScriptForge.String

Liste over metoder i tjenesten String (tekststrenge)

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 egenskaber i tjenesten Dictionary
sfCR sfLF | sfCRLF sfNEWLINE | sfTAB

## Tjenesten ScriptForge.TextStream

Liste over metoderne i tjenesten TextStream (tekst-strøm)
CloseFile ReadAll | ReadLine SkipLine | WriteBlankLines WriteLine

Liste over egenskaber i tjenesten TextStream
AtEndOfStream Encoding | FileName IOMode | Line NewLine

## Tjenesten ScriptForge.Timer (stopur)

Liste over metoder i tjenesten Timer
Continue Restart | Start Suspend | Terminate

Liste over egenskaber i tjenesten Timer
Duration IsStarted | IsSuspended SuspendDuration | TotalDuration

## Tjenesten ScriptForge.Toolbar

Liste over metoder i tjenesten Toolbar (værktøjslinje)
ToolbarButtons |  |

Liste over egenskaber i tjenesten Toolbar (værktøjslinje)
BuiltIn Docked HasGlobalScope | Name ResourceURL | Visible XUIElement

## Tjenesten ScriptForge.ToolbarButton

Liste over metoder i tjenesten ToolbarButton
Execute |  |

Liste over egenskaber i tjenesten ToolbarButton (værktøjslinje-knap)
Caption Height Index OnClick | Parent TipText Visible | Width X Y

## Tjenesten ScriptForge.UI

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

Liste over egenskaber i tjenesten UI (brugerflade)
ActiveWindow Height MACROEXECALWAYS | MACROEXECNEVER MACROEXECNORMAL Width | X Y

## Tjenesten ScriptForge.UnitTest

Liste over metoder i tjenesten 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 egenskaber i tjenesten UnitTest
LongMessage ReturnCode | Verbose | WhenAssertionFails

## Tjenesten ScriptForge.Writer

Liste over metoder i tjenesten Writer
Forms | ImportStylesFromFile | PrintOut

Relaterede emner

Biblioteket ScriptForge

Oprettelse af Python-scripts med ScriptForge

Støt os venligst!