Objectes, funcions i serveis de l'UNO

Funcions, objectes i serveis del Unified Network Objects (UNO).

Objectes globals del LibreOffice

StarDesktop objecte

L'objecte StarDesktop representa l'aplicació LibreOffice. Determinades rutines i objectes de la interfície d'usuari, com ara la finestra actual, poden utilitzar-se mitjançant StarDesktop.

Funció GetDefaultContext

Torna el context per defecte de la fàbrica de servei de procés, si existeix; en cas contrari, torna una referència nul·la.

Funció GetProcessServiceManager

Torna el ProcessServiceManager (central 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.

Objecte BasicLibraries

Objecte DialogLibraries

Objecte ThisComponent

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.

Objecte ThisDatabaseDocument

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).

Funció CreateUnoDialog

Crea un objecte d'Uno del Basic que representa un control de diàleg d'Uno durant l'execució del Basic.

CreateUnoListener Function

Crea una instància d'oient.

CreateUnoService Funció

Instantiates a Uno service with the ProcessServiceManager.

Funció CreateUnoServiceWithArguments

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

Funció CreateUnoStruct

Crea una instància d'un tipus d'estructura Uno.

Funció CreateUnoValue

Torna un objecte que representa un valor de tipus estricte que fa referència al sistema de tipus Uno.

EqualUnoObjects Function

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

Funció HasUnoInterfaces

Prova si un objecte Uno del Basic admet certes interfícies d'Uno.

Funció IsUnoStruct

Torna Cert si l'objecte determinat és una estructura Uno.

CreateObject Function

Crea un objecte d'UNO. En el Windows, també pot crear objectes OLE.

Aquest mètode crea instàncies del tipus que es passa com a paràmetre.

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


Ens cal la vostra ajuda!