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

แƒแƒ แƒกแƒ”แƒ‘แƒแƒ‘แƒ˜แƒก แƒจแƒ”แƒ›แƒ—แƒฎแƒ•แƒ”แƒ•แƒแƒจแƒ˜ แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒก แƒกแƒ”แƒ แƒ•แƒ˜แƒกแƒ˜แƒก แƒฅแƒแƒ แƒฎแƒœแƒ˜แƒก แƒกแƒแƒฌแƒงแƒ˜แƒก แƒจแƒ˜แƒœแƒแƒแƒ แƒก, แƒฌแƒ˜แƒœแƒแƒแƒฆแƒ›แƒ“แƒ”แƒ’ แƒจแƒ”แƒ›แƒ—แƒฎแƒ•แƒ”แƒ•แƒแƒจแƒ˜ แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒก null แƒ›แƒ˜แƒ—แƒ˜แƒ—แƒ”แƒ‘แƒแƒก

GetProcessServiceManager Function

Returns the ProcessServiceManager (central 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).

CreateUnoStruct Function

แƒฅแƒ›แƒœแƒ˜แƒก Uno แƒกแƒขแƒ แƒฃแƒฅแƒขแƒฃแƒ แƒ˜แƒก แƒขแƒ˜แƒžแƒ˜แƒก แƒแƒกแƒšแƒก.

CreateUnoService Function

Instantiates a Uno service with the ProcessServiceManager.

CreateUnoDialog Function

แƒฅแƒ›แƒœแƒ˜แƒก Basic Uno แƒแƒ‘แƒ˜แƒ”แƒฅแƒขแƒก, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒฌแƒแƒ แƒ›แƒแƒแƒ“แƒ’แƒ”แƒœแƒก Uno แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ˜แƒก แƒ™แƒแƒœแƒขแƒ แƒแƒšแƒก Basic-แƒ˜แƒก แƒ’แƒแƒจแƒ•แƒ”แƒ‘แƒ˜แƒกแƒแƒก.

CreateUnoListener Function

แƒฅแƒ›แƒœแƒ˜แƒก แƒ›แƒกแƒ›แƒ”แƒœแƒ”แƒšแƒ˜แƒก แƒœแƒ˜แƒ›แƒฃแƒจแƒก.

CreateUnoValue Function

แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒก แƒแƒ‘แƒ˜แƒ”แƒฅแƒขแƒก, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒฌแƒแƒ แƒ›แƒแƒแƒ“แƒ’แƒ”แƒœแƒก แƒžแƒ˜แƒ แƒ“แƒแƒžแƒ˜แƒ  แƒฉแƒแƒฌแƒ”แƒ แƒ˜แƒš แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒแƒก, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ›แƒ˜แƒฃแƒ—แƒ˜แƒ—แƒ”แƒ‘แƒก Uno แƒขแƒ˜แƒžแƒ˜แƒก แƒกแƒ˜แƒกแƒขแƒ”แƒ›แƒแƒก.

CreateObject Function

Creates a UNO object. On Windows, can also create OLE objects.

แƒ›แƒ”แƒ—แƒแƒ“แƒ˜ แƒฅแƒ›แƒœแƒ˜แƒก แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒแƒ“ แƒ’แƒแƒ“แƒแƒชแƒ”แƒ›แƒฃแƒšแƒ˜ แƒขแƒ˜แƒžแƒ˜แƒก แƒœแƒ˜แƒ›แƒฃแƒจแƒ”แƒ‘แƒก.

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.

HasUnoInterfaces Function

Tests if a Basic Uno object supports certain Uno interfaces.

IsUnoStruct Function

แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒก แƒญแƒ”แƒจแƒ›แƒแƒ แƒ˜แƒขแƒ”แƒ‘แƒแƒก แƒ—แƒฃ แƒ›แƒแƒชแƒ”แƒ›แƒฃแƒš แƒแƒ‘แƒ˜แƒ”แƒฅแƒขแƒ˜ แƒแƒ แƒ˜แƒก Uno struct.

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!