UNO Objects

Contents
Index 🔎︎

# 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

Vráti začiatočný kontext process service factory, pokiaľ existuje, inak vráti null.

## GetProcessServiceManager Function

Vráti službu typu ProcessServiceManager (centrálny ServiceManager pre Uno).

## 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

Vytvorí príklad štruktúry typu UNO.

## CreateUnoService Function

Inicializuje Uno službu s ProcessServiceManager.

## CreateUnoDialog Function

Vytvorí objekt typu Uno jazyka Basic, ktorý predstavuje ovládací prvok dialógu typu Uno počas behu programu v jazyku Basic.

## CreateUnoListener Function

Vytvorí príklad Listeneru.

## CreateUnoValue Function

Vráti objekt, ktorý predstavuje striktne typovú hodnotu odkazujúci na typ Uno.

## CreateObject Function

Vytvorí UNO objekt. Na Windows môže tiež vytvoriť OLE objekty.

Táto metóda vytvorí príklad typu, ktorý je odovzdaný ako parameter.

## EqualUnoObjects Function

Vráti True, ak dva určené Basic Uno objekty reprezentujú rovnakú inštanciu Uno objektu.

## CreateUnoService Function

Inicializuje Uno službu s ProcessServiceManager.

## HasUnoInterfaces Function

Testuje, či objekt Basic Uno podporuje určité Uno rozhrania.

## IsUnoStruct Function

Vráti True, ak je daný objekt Uno struct.

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