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

ํ”„๋กœ์„ธ์Šค ์„œ๋น„์Šค ํŒฉํ„ฐ๋ฆฌ์˜ ๊ธฐ๋ณธ ์ฝ˜ํ…์ŠคํŠธ(์žˆ์„ ๊ฒฝ์šฐ)๋ฅผ ๋ฐ˜ํ™˜ํ•˜๊ณ  ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด Null ์ฐธ์กฐ๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

GetProcessServiceManager Function

ProcessServiceManager(์ค‘์‹ฌ 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.

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

Basic ๋Ÿฐํƒ€์ž„ ๋„์ค‘์— Uno ๋Œ€ํ™” ์ƒ์ž ์ฝ˜ํŠธ๋กค์„ ๋‚˜ํƒ€๋‚ด๋Š” Basic Uno ๊ฐœ์ฒด๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค.

CreateUnoListener Function

๋ฆฌ์Šค๋„ˆ ์ธ์Šคํ„ด์Šค๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค.

CreateUnoService Function

Instantiates a Uno service with the ProcessServiceManager.

CreateUnoServiceWithArguments Function

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

CreateUnoStruct Function

Uno ๊ตฌ์กฐ ์œ ํ˜•์˜ ์ธ์Šคํ„ด์Šค๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค.

CreateUnoValue Function

Uno ์œ ํ˜• ์‹œ์Šคํ…œ์„ ์ฐธ์กฐํ•˜๋Š” ์ •ํ™•ํ•˜๊ฒŒ ์ž…๋ ฅํ•œ ๊ฐ’์„ ๋‚˜ํƒ€๋‚ด๋Š” ๊ฐœ์ฒด๋ฅผ ๊ตฌํ•ฉ๋‹ˆ๋‹ค.

EqualUnoObjects Function

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

HasUnoInterfaces Function

Basic Uno ๊ฐœ์ฒด๊ฐ€ ํŠน์ • Uno ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์ง€์›ํ•˜๋Š”์ง€ ํ…Œ์ŠคํŠธํ•ฉ๋‹ˆ๋‹ค.

IsUnoStruct Function

์ง€์ •ํ•œ ๊ฐœ์ฒด๊ฐ€ Uno ๊ตฌ์กฐ์ผ ๊ฒฝ์šฐ True๋ฅผ ๊ตฌํ•ฉ๋‹ˆ๋‹ค.

CreateObject Function

UNO ๊ฐœ์ฒด๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค. Windows์—์„œ๋Š” OLE ๊ฐœ์ฒด๋ฅผ ๋งŒ๋“ค ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด ๋ฉ”์†Œ๋“œ๋Š” ๋งค๊ฐœ ๋ณ€์ˆ˜๋กœ ์ „๋‹ฌ๋˜๋Š” ์œ ํ˜• ์ธ์Šคํ„ด์Šค๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค.

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


Please support us!