From Apache OpenOffice Wiki
< Documentation‎ | DevGuide
Revision as of 10:43, 23 December 2020 by DiGro (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Modules are namespaces, similar to namespaces in C++ or packages in Java. They group services, interfaces, structs, exceptions, enums, typedefs, constant groups and submodules with related functional content or behavior. They are utilized to specify coherent blocks in the API, this allows for a well-structured API. For example, the module contains interfaces and other types for text handling. Some other typical modules are,, and Identifiers inside a module do not clash with identifiers in other modules, therefore it is possible for the same name to occur more than once. The global index of the API reference shows that this does happen.

Although it may seem that the modules correspond with the various parts of Apache OpenOffice, there is no direct relationship between the API modules and the Apache OpenOffice applications Writer, Calc and Draw. Interfaces from the module are used in Calc and Draw. Modules like or provide generic services and interfaces that are not specific to any one part of Apache OpenOffice.

The modules you see in the API reference were defined by nesting UNO IDL types in module instructions. For example, the module contains the interface XInterface:

  module com {
      module sun {
          module star {
              module uno {
                  interface XInterface {
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages