OpenOffice.org OpenOffice - 3.0 Quick Start Guide Page 379

  • Download
  • Add to my manuals
  • Print
  • Page
    / 433
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 378
as you learn more. Learning to read generated macros is a good place
to start.
If you record Calc macros, and the recorder can correctly generate a
macro, there is an add-in created by Paolo Mantovani, which converts
Calc macros when they are recorded. The final code manipulates
OpenOffice.org objects rather than generating dispatches. This can be
very useful for learning the object model.
You can download the macro recorder from Paolo’s web site directly or
from the OOo Macros web site. You should check both places to see
which contains the latest version.
http://www.paolo-mantovani.org/downloads/ DispatchToApiRecorder/
http://www.ooomacros.org/user.php
Macro organization
In OpenOffice.org, macros are grouped in modules, modules are
grouped in libraries, and libraries are grouped in library containers. A
library is usually used as a major grouping for either an entire
category of macros, or for an entire application. Modules usually split
functionality, such as user interaction and calculations. Individual
macros are subroutines and functions.
Figure 317: Macro Library hierarchy
A computer scientist would use Figure 318 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.
Chapter 13 Getting Started with Macros 379
Page view 378
1 2 ... 374 375 376 377 378 379 380 381 382 383 384 ... 432 433

Comments to this Manuals

No comments