3) A common use is to assign the Open Document event to call a specific macro. The macro
then performs certain setup tasks for the document. Select the desired event and click
Macro to open the Macro Selector dialog (Figure 343 on page 354).
4) Select the desired macro and click OK to assign the macro to the event. The Events page
shows that the event has been assigned to a macro.
Many objects in a document can be set to call macros when events occur. The most common use
is to add a control, such as a button, into a document. Even double-clicking on a graphic opens a
dialog with a Macros tab that allows you to assign a macro to an event.
Extensions
An extension is a package that can be installed into LibreOffice to add new functionality.
Extensions can be written in almost any programming language and may be simple or
sophisticated. Extensions can be grouped into types:
• Calc Add-Ins, which provide new functionality for Calc, including new functions that act like
normal built-in functions
• New components and functionality, which normally include some level of User Interface (UI)
integration such as new menus or toolbars
• Pivot Tables that are used directly in Calc
• Chart Add-Ins with new chart types
• Linguistic components such as spelling checkers
• Document templates and images
Chapter 13 Getting Started with Macros | 367