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

āĻāĻ•āϟāĻŋ āĻŦ⧇āϏāĻŋāĻ• Uno āĻŦāĻ¸ā§āϤ⧁ āϤ⧈āϰāĻŋ āĻ•āϰāĻž āĻšā§Ÿ āϝāĻž āĻŦ⧇āϏāĻŋāĻ• āϰāĻžāύāϟāĻžāχāĻŽā§‡āϰ āϏāĻŽā§Ÿ āĻāĻ•āϟāĻŋ 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

āϝāĻĻāĻŋ āĻŦ⧇āϏāĻŋāĻ• Uno āĻŦāĻ¸ā§āϤ⧁ āĻ•āĻŋāϛ⧁ āύāĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āϟ Uno āχāĻ¨ā§āϟāĻžāϰāĻĢ⧇āϏ āϏāĻŽāĻ°ā§āĻĨāύ āĻ•āϰ⧇ āϤāĻžāĻšāϞ⧇ āĻĒāϰ⧀āĻ•ā§āώāĻž āĻ•āϰāĻž āĻšā§ŸāĨ¤

IsUnoStruct Function

āϝāĻĻāĻŋ āĻĒā§āϰāĻĻāĻ¤ā§āϤ āĻŦāĻ¸ā§āϤ⧁ Uno srtuct āĻšā§Ÿ āϤāĻžāĻšāϞ⧇ True āĻĒā§āϰāĻĻāĻžāύ āĻ•āϰ⧇ āĻĨāĻžāϕ⧇āĨ¤

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!