Modules, Services, and Interfaces

From Wiki
Revision as of 09:00, 30 March 2012 by Sancho (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


OpenOffice.org provides hundreds of services. To provide an overview of these services, they have been combined into modules. The modules are of no other functional importance for OpenOffice.org Basic programmers. When specifying a service name, it is only the module name which is of any importance because this must be also listed in the name. The complete name of a service consists of the com.sun.star expression, which specifies that it is a OpenOffice.org service, followed by the module name, such as frame, and finally the actual service name, such as Desktop. The complete name in the named example would be:

com.sun.star.frame.Desktop

In addition to the module and service terms, UNO introduces the term 'interface'. While this term may be familiar to Java programmers, it is not used in Basic.

An interface combines several methods. In the strictest sense of the word, a service in UNO does not support methods, but rather interfaces, which in turn provide different methods. In other words, the methods are assigned (as combinations) to the service in interfaces. This detail may be of interest in particular to Java- or C++ programmers, since in these languages, the interface is needed to request a method. In OpenOffice.org Basic, this is irrelevant. Here, the methods are called directly by means of the relevant object.

For an understanding of the API, it is, however, useful to have the assignment of methods to various interfaces handy, since many interfaces are used in the different services. If you are familiar with an interface, then you can transfer your knowledge from one service to another.

Some central interfaces are used so frequently, triggered by different services, that they are shown again at the end of this chapter. fr:FR/Documentation/BASIC Guide/Modules, Services and Interfaces hu:HU/Documentation/BASIC Guide/Modules, Services and Interfaces it:IT/Documentation/BASIC Guide/Modules, Services and Interfaces ja:JA/Documentation/BASIC Guide/Modules, Services and Interfaces zh:ZH/Documentation/BASIC Guide/Modules, Services and Interfaces


Content on this page is licensed under the Public Documentation License (PDL).