UNO Objects, Functions and Services

Funktionen, Objekte und Dienste von Unified Network Objects (UNO).

LibreOfficeDev Global Objects

Objekt StarDesktop

Das Objekt StarDesktop repräsentiert die Anwendung LibreOfficeDev. Einige Routinen oder Benutzeroberflächenobjekte wie das aktuelle Fenster können über StarDesktop verwendet werden.

Funktion GetDefaultContext

Gibt, falls vorhanden, den Standardkontext der Prozess-Service Factory zurück, anderenfalls eine Nullreferenz.

Funktion GetProcessServiceManager

Gibt den ProcessServiceManager (zentraler Uno ServiceManager) zurück.

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.

Objekt BasicLibraries

Objekt DialogLibraries

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

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

Funktion CreateUnoStruct

Erstellt eine Instanz eines Uno-Strukturtyps.

Funktion CreateUnoService

Instantiates a Uno service with the ProcessServiceManager.

Funktion CreateUnoDialog

Erzeugt ein Basic-Uno-Objekt, das ein Uno-Dialog-Control zur Laufzeit des Basics repräsentiert.

Funktion CreateUnoListener

Instanziiert einen Listener.

Funktion CreateUnoValue

Gibt ein Objekt zurück, das einen in Bezug auf das Uno-Typensystem strikt typisierten Wert darstellt.

CreateObject Function

Hiermit erzeugen Sie ein UNO-Objekt. Unter Windows können Sie auch OLE-Objekte erstellen.

Diese Methode erstellt Instanzen des Typs, der als Parameter übergeben wurde.

EqualUnoObjects Function

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

Funktion CreateUnoService

Instantiates a Uno service with the ProcessServiceManager.

Funktion HasUnoInterfaces

Ermittelt, ob ein Basic-Uno-Objekt bestimmte Uno-Interfaces unterstützt.

Funktion IsUnoStruct

Gibt True zurück, wenn es sich bei dem angegebenen Objekt um eine Uno-Struct handelt.

note

LibreOfficeDev bietet eine API (Application Programming Interface), mit der die LibreOfficeDev-Komponenten mit verschiedenen Programmiersprachen mithilfe des LibreOfficeDev Software Development Kit (SDK) gesteuert werden können. Weitere Informationen zur LibreOfficeDev-API und zum Software Development Kit finden Sie unter https://api.libreoffice.org