Difference between revisions of "EN/documentation/basic guide/modules services and interfaces"
(Основной текст) |
|||
Line 4: | Line 4: | ||
|ShowPrevNext=block | |ShowPrevNext=block | ||
|ShowPrevPage=block | |ShowPrevPage=block | ||
− | |PrevPage=EN/documentation/basic_guide/ | + | |PrevPage=EN/documentation/basic_guide/properties_and_methods_api |
|NextPage=EN/documentation/basic_guide/uno_tools | |NextPage=EN/documentation/basic_guide/uno_tools | ||
|api=block | |api=block |
Latest revision as of 17:06, 2 September 2011
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.
Content on this page is licensed under the Public Documentation License (PDL). |