Operation Manual
Assigning macros to events
In LibreOffice, when something happens, we say that an event occurred. For example, a document
was opened, a key was pressed, or the mouse moved. You can associate a macro with an event,
so the macro is run when the event occurs. A common use is to assign the “open document” event
to run a macro that performs certain setup tasks for the document.
To associate a macro with an event, use the Events page of the Customize dialog. For more
information, see Chapter 13, Getting Started with Macros.
Adding functionality with extensions
An extension is a package that can be installed into LibreOffice to add new functionality.
Several extensions are shipped bundled with LibreOffice and are installed with the program.
Others can be downloaded from various websites. The official extension repository is located at
http://extensions.libreoffice.org/. These extensions are free of charge.
Some extensions from other sources are free of charge; others are available for a fee. Check the
descriptions to see what licenses and fees apply to the ones that interest you.
Installing extensions
Extensions can be installed in any of three ways.
1) Directly from the *.oxt file in your system's file browser.
2) From your web browser if it can be configured to open this file type from a web page
hyperlink.
3) Directly from Tools > Extension Manager by clicking Add.
To install directly from a saved *.oxt file on your system, double-click the file.
To install from a suitably enabled web browser, select the hyperlink, and then select to Open the
file.
In both cases, after the Extension Manager opens, a warning dialog opens for you to verify the
installation and then continue. The file is installed as a “user only“ file in a multi user system.
Figure 352: Installation warning dialog
To install directly from Extension Manager:
1) In LibreOffice, select Tools > Extension Manager from the menu bar. The option to view
the extensions bundled with LibreOffice can be deselected to easier view those installations
which have been added by a user.
2) In the Extension Manager dialog (Figure 354), click Add.
3) A file browser window opens. Find and select the extension you want to install and click
Open.
4) Users with administrator or root privileges will see a dialog where they can choose to install
extensions "for all users" (shared) or "only for me" (user). Normal users without those
privileges can install, remove, or modify extensions only for their own use (user).
Chapter 14 Customizing LibreOffice | 365