UNO Objects

Conteúdo
Índice 🔎︎

# 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

Devolve o contexto padrão de serviço do processo, se existente, de outro modo devolve uma referência nula.

## Função GetProcessServiceManager

Devolve o ProcessServiceManager (Uno ServiceManager central).

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

Cria um objeto do Basic Uno que representa um controlo de diálogo Uno durante a execução do Basic.

## CreateUnoListener Function

Cria uma instância de Ouvinte.

## CreateUnoService Function

Instantiates a Uno service with the ProcessServiceManager.

## CreateUnoServiceWithArguments Function

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

## Função CreateUnoStruct

Cria uma ocorrência de um tipo de estrutura Uno.

## CreateUnoValue Function

Devolve um objeto que representa um valor escrito e que se refere ao sistema de escrita Uno.

## EqualUnoObjects Function

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

## Função HasUnoInterfaces

Verifica se um objeto do Basic Uno aceita certas interfaces Uno.

## Função IsUnoStruct

Devolve True se o objeto for uma estrutura Uno.

## CreateObject Function

Cria um objeto UNO. No Windows, também pode criar objetos OLE.

Este método cria ocorrências do tipo que é enviado como parâmetro.

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

Tópicos relacionados

Development Tools