LibreOffice 7.3 Hjelp
LibreOffice macros are grouped in module files, modules are usually grouped in library folders, and libraries are grouped in library containers although containers can contain modules too.
A library is 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. The Figure below shows an example of the hierarchical structure of macro libraries in LibreOffice.
Figure: Macro Library hierarchy
The containers are accessible in all LibreOffice programs through the user interface. Go to
, to open the Python Macros dialog.Three library containers are shown in the Macro From list:
My Macros: personal macros available for the LibreOffice user
LibreOffice Macros: system macros distributed with LibreOffice for every computer user
Document macros: every document can contain macro libraries available in that document for all users
Sjå Getting Session Information om korleis du kan få prammeringstilgang til plasseringa av Python-skripta.
Makroar som er lagt inn her (i behaldaren) vert kopierte av installasjonsprogrammet og er tilgjengeleg for alle brukarane, og alle opne dokument har tilgang til behaldaren. Du må ha administrasjonsrettar for å kunna lagra og redigera makroar lagra her.
Kvar behaldaren er lagra i LibreOffice sitt filsystem er avhengig av operativsystemet.
For Windows: {Installation}\share\Scripts\python.
For Linux og macOS: {Installation}/share/Scripts/python.
Denne behaldaren er berre tilgjengeleg for LibreOffice-brukaren. Alle opne dokument har tilgang til makroar som er lagra i behaldaren. Makroane vert lagra i brukarprofilen for LibreOffice-brukaren.
MineMakroar-behaldaren er lagra i brukarstaden som igjen er avhengig av operativsystemet.
For Windows,
%APPDATA%\LibreOffice\4\user\Scripts\python.
For Linux og macOS,
$HOME/.config/libreoffice/4/user/Scripts/python.
Dokumentmakroar vert lagra i dokumentet, og er tilgjengelege berre når dokumentet er opna.
Python macros can be organized in libraries, modules and macros. Use the Macro Library hierarchy as a guide when creating or installing new macros in module files, new module files in library folders or new library folders in containers.