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

UNO Methods

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

CreateUnoDialog Function

在 Basic 執行階段建立一個表示 Uno 對話方塊控制項的 Basic Uno 物件。

CreateUnoListener Function


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 結構,則傳回 True (真)。

CreateObject Function

建立 UNO 物件。Windows 上亦可建立 OLE 物件。



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

Please support us!