UNO Objects, Functions and Services

fungsi, obyek dan pelayanan dari unifed 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.

Fungsi GetDefaultContext

Mengembalikan konteks bawaan pabrik layanan proses, jika ada, jika tidak mengembalikan referensi nol.

Fungsi GetProcessServiceManager

Mengembalikan ProcessServiceManager (pusat Uno ServiceManager).

GlobalScope specifier

To manage personal or shared library containers (LibreOffice 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).

Fungsi CreateUnoStruct

Membuat sampel dari tipe struktur Uno.

CreateUnoService Function

Instantiates a Uno service with the ProcessServiceManager.

Fungsi CreateUnoDialog

Membuat objek Uno Dasar yang mewakili kontrol dialog Uno selama runtime Dasar.

Fungsi CreateUnoListener

Membuat contoh Pendengar.

Fungsi CreateUnoValue

Mengembalikan objek yang mewakili nilai yang diketik semata-mata mengacu pada sistem jenis Uno.

CreateObject Function

Membuat sebuah objek UNO. Di Windows, juga dapat membuat objek OLE.

Metode ini menciptakan contoh tipe yang dilewatkan sebagai parameter.

EqualUnoObjects Function

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

CreateUnoService Function

Instantiates a Uno service with the ProcessServiceManager.

Fungsi HasUnoInterfaces

Menguji apakah objek Dasar Uno mendukung antarmuka Uno tertentu.

Fungsi IsUnoStruct

Mengembalikan True jika objek yang diberikan adalah struct Uno.

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


Mohon dukung kami!