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

Trả về ngữ cảnh mặc định của bộ tạo dịch vụ tiến trình, nếu có ; không thì trả về tham chiếu rỗng.

GetProcessServiceManager Function

Trả về ProcessServiceManager (ServiceManager Uno trung tâm).

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

Tạo một đối tượng Uno Basic mà đại diện một điều khiển hộp thoại Uno trong khi chạy Basic.

CreateUnoListener Function

Tạo một thể hiện Listener (đối tượng nghe).

CreateUnoService Function

Instantiates a Uno service with the ProcessServiceManager.

CreateUnoServiceWithArguments Function

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

CreateUnoStruct Function

Tạo một thể hiện của một kiểu cấu trúc Uno.

CreateUnoValue Function

Trả về một đối tượng mà đại diện một giá trị kiểu chặt chẽ tham chiếu đến hệ thống kiểu Uno.

EqualUnoObjects Function

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

HasUnoInterfaces Function

Thử nếu một đối tượng Uni Basic hỗ trợ một số giao diện Uno nào đó không.

IsUnoStruct Function

Trả về Đúng nếu đối tượng đã cho là một cấu trúc Uno.

CreateObject Function

Tạo một đối tượng UNO. Dưới Windows, cũng có thể tạo đối tượng OLE.

Phương pháp này tạo thể hiện có kiểu được gửi dưới dạng tham số.

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!