UNO Objects, Functions and Services
Functions, objects and services of Unified Network Objects (UNO).
LibreOffice Global Objects
The StarDesktop object represents LibreOffice application. Some routines or user interface objects such as current window can be used via StarDesktop.
GetDefaultContext palauttaa prosessin palvelutehtaan (factory) oletussisällön, jos se on olemassa, muuten palauttaa null-viitteen. (null tarkoittaa tyhjää)
Funktio palauttaa ProcessServiceManagerin (keskeinen Uno-palvelujen hallinnointiväline).
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.
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 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).
Luodaan Uno-struktuurityypin ilmentymä.
Toteutetaan Uno-palvelu ProcessServiceManagerin kera.
Funktiolla luodaan Basicin Uno-olio, joka edustaa Uno-valintaikkunan ohjausobjektia ajonaikaisesti Basicissa.
CreateUnoListener luo kuuntelijailmentymän.
CreateUnoValue palauttaa olion, joka esittää rajatusti tyypitetyn arvon, joka perustuu Uno-tyyppijärjestelmään.
CreateObject luo UNO-olion. Windowsissa voidaan luoda myös OLE-objekti.
Tämä metodi luo ilmentymän, jonka tyyppi välitetään parametrissä.
EqualUnoObjects palauttaa arvon True, jos kaksi määrättyä Basic Uno-oliota edustavat samaa Uno-olion ilmentymää.
Toteutetaan Uno-palvelu ProcessServiceManagerin kera.
HasUnoInterfaces tutkii, tukeeko Basic Uno-olio tiettyjä Uno-rajapintoja.
IsUnoStruct palauttaa arvon True, jos annettu objekti on Uno-struktuuri.
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