Getting Started Guide
A computer scientist would use Figure 304 to precisely describe the situation. The
text “1..*” means one or more, and “0..*” means zero or more. The black triangle
means composed of or contains.
• A library container contains one or more libraries, and each library is
contained in one library container.
• A library contains zero or more modules, and each module is contained in one
library.
• A module contains zero or more macros, and each macro is contained in one
module.
Figure 304: Macro Library hierarchy
Use Tools > Macros > Organize Macros > OpenOffice.org Basic to open the
OpenOffice.org Basic Macros dialog (see Figure 305). All available library containers
are shown in the Macro from list. Every document is a library container, capable of
containing multiple libraries. The application itself acts as two library containers, one
container for macros distributed with OpenOffice.org called OpenOffice.org Macros,
and one container for personal macros called My Macros. As shown in Figure 305,
only two documents are currently open.
Figure 305: Library containers are shown on the left
The OpenOffice.org Macros are stored with the application runtime code, which may
not be editable to you unless you are an administrator. This is just as well since these
macros should not be changed and you should not store your own macros in the OOo
container.
Unless your macros are applicable to a single document, and only to a single
document, your macros will probably be stored in the My Macros container. The My
Macros container is stored in your user area or home directory.
If a macro is contained in a document, then a recorded macro will attempt to work on
that document; primarily because it uses “ThisComponent” for its actions.
334 Getting Started with OpenOffice.org 3.3










