UNO Objects, Functions and Services

Functions, objects and services of Unified Network Objects (UNO).

LibreOffice Global Objects

StarDesktop object

The StarDesktop object represents LibreOffice application. Some routines or user interface objects such as current window can be used via StarDesktop.

GetDefaultContext Function

αžαŸ’αžšαž‘αž”αŸ‹β€‹αž”αžšαž·αž”αž‘β€‹αž›αŸ†αž“αžΆαŸ†αžŠαžΎαž˜β€‹αžšαž”αžŸαŸ‹β€‹αžšαŸ„αž„αž…αž€αŸ’αžšβ€‹αžŸαŸαžœαžΆβ€‹αž”αŸ’αžšαžαž·αž”αžαŸ’αžαž·αž€αžΆαžš αž”αŸ’αžšαžŸαž·αž“β€‹αž”αžΎβ€‹αž˜αžΆαž“ αž•αŸ’αžŸαŸαž„β€‹αž–αžΈβ€‹αž“αŸ„αŸ‡β€‹αžαŸ’αžšαž‘αž”αŸ‹β€‹αžŸαŸαž…αž€αŸ’αžŠαžΈαž™αŸ„αž„β€‹αž‚αŸ’αž˜αžΆαž“β€‹αžŸαŸ„αŸ‡Β αŸ”

GetProcessServiceManager Function

αžαŸ’αžšαž‘αž”αŸ‹ ProcessServiceManager (Uno ServiceManager αž€αžŽαŸ’αžαžΆαž›)Β αŸ”

GlobalScope specifier

To manage personal or shared library containers (Application Macros or My Macros) from within a document, use the GlobalScope specifier.

Active document Objects

The following objects can be used from the active document.

BasicLibraries Object

DialogLibraries Object

ThisComponent Object

ThisComponent represents the current document in Basic macros. It addresses the active component whose properties can be read and set, and whose methods can be called. Properties and methods available through ThisComponent depend on the document type.

ThisDatabaseDocument object

ThisDatabaseDocument addresses the active Base document whose properties can be read and set, and whose methods can be called.

ThisDatabaseDocument returns an object of type com.sun.star.sdb.XOfficeDatabaseDocument.

UNO Methods

Use the following methods to manage or query Unified Network Objects (UNO).

CreateUnoDialog Function

αž”αž„αŸ’αž€αžΎαžβ€‹αžœαžαŸ’αžαž» Basic Uno αžŠαŸ‚αž›β€‹αžαŸ†αžŽαžΆαž„β€‹αž²αŸ’αž™β€‹αžœαžαŸ’αžαž»β€‹αž”αž‰αŸ’αž‡αžΆβ€‹αž”αŸ’αžšαž’αž”αŸ‹ Uno αž€αŸ†αž‘αž»αž„β€‹αž–αŸαž›β€‹αž–αŸαž›β€‹αžšαžαŸ‹ BasicΒ αŸ”

CreateUnoListener Function

αž”αž„αŸ’αž€αžΎαžβ€‹αžœαžαŸ’αžαž» Listener αž˜αž½αž™Β αŸ”

CreateUnoService Function

Instantiates a Uno service with the ProcessServiceManager.

CreateUnoServiceWithArguments Function

Instantiates a UNO service with the ProcessServiceManager, including supplemental optional arguments.

CreateUnoStruct Function

αž”αž„αŸ’αž€αžΎαžβ€‹αžœαžαŸ’αžαž»β€‹αž˜αž½αž™β€‹αžšαž”αžŸαŸ‹β€‹αž”αŸ’αžšαž—αŸαž‘β€‹αžšαž…αž“αžΆαžŸαž˜αŸ’αž–αŸαž“αŸ’αž’ UnoΒ αŸ”

CreateUnoValue Function

αžαŸ’αžšαž‘αž”αŸ‹β€‹αžœαžαŸ’αžαž»β€‹αž˜αž½αž™β€‹αžŠαŸ‚αž›β€‹αžαŸ†αžŽαžΆαž„β€‹αž²αŸ’αž™β€‹αžαž˜αŸ’αž›αŸƒβ€‹αžŠαŸ‚αž›β€‹αž”αžΆαž“β€‹αžœαžΆαž™β€‹αž™αŸ‰αžΆαž„β€‹αžαžΉαž„αžšαŸ‰αžΉαž„ αžŠαŸ‚αž›β€‹αž™αŸ„αž„β€‹αž‘αŸ…β€‹αž”αŸ’αžšαž–αŸαž“αŸ’αž’β€‹αž”αŸ’αžšαž—αŸαž‘ UnoΒ αŸ”

EqualUnoObjects Function

Returns True if the two specified Basic variables represent the same Uno object instance.

HasUnoInterfaces Function

αž–αž·αžŸαŸ„αž’αž“αŸβ€‹αž”αžΎβ€‹αžœαžαŸ’αžαž» Basic Uno αž‚αžΆαŸ†αž‘αŸ’αžšβ€‹αž…αŸ†αžŽαž»αž…β€‹αž”αŸ’αžšαž‘αžΆαž€αŸ‹ Uno αž–αž·αžβ€‹αž”αŸ’αžšαžΆαž€αžŠΒ αŸ”

IsUnoStruct Function

αžαŸ’αžšαž‘αž”αŸ‹ αž–αž·αž αž”αžΎβ€‹αžœαžαŸ’αžαž»β€‹αžŠαŸ‚αž›β€‹αž”αžΆαž“β€‹αž•αŸ’αžαž›αŸ‹β€‹αž‚αžΊβ€‹αž‡αžΆβ€‹αžšαž…αž“αžΆβ€‹αžŸαž˜αŸ’αž–αŸαž“αŸ’αž’ Uno αž˜αž½αž™Β αŸ”

CreateObject Function

αž”αž„αŸ’αž€αžΎαžβ€‹αžœαžαŸ’αžαž» UNO αž˜αž½αž™Β αŸ” αž“αŸ…β€‹αž›αžΎβ€‹αžœαžΈαž“αžŠαžΌ αž€αŸβ€‹αž’αžΆαž…β€‹αž”αž„αŸ’αž€αžΎαžαžœαžαŸ’αžαž» OLE αž”αžΆαž“αžŠαŸ‚αžšΒ αŸ”

αž‡αž˜αŸ’αžšαžΎαžŸβ€‹αž€αžΆαžšβ€‹αž…αŸ‚αž€β€‹αžšαŸ†αž›αŸ‚αž€β€‹αž―αž€αžŸαžΆαžšβ€‹αžŸαž˜αŸ’αžšαžΆαž”αŸ‹β€‹αž―αž€αžŸαžΆαžšβ€‹αž“αŸαŸ‡

note

LibreOffice provides an Application Programming Interface (API) that allows controlling the LibreOffice components with different programming languages by using the LibreOffice Software Development Kit (SDK). For more information about the LibreOffice API and the Software Development Kit, visit https://api.libreoffice.org


Please support us!