עזרה עבור LibreOffice 24.8
LibreOffice Basic libraries can be stored in 3 different containers:
Application Macros: libraries stored in this container are available for all users of the computer and are managed by the computer administrator. The container is located in the LibreOffice installation directory.
My Macros: libraries stored in this container are available to all documents of your user. The container is located in the user profile area and is not accessible by another user.
Document: libraries stored in the document container are only available for the document and are accessible only when the document is open. You cannot access macros of a document from another document.
To access macros stored in libraries of Application Macros or My Macros from another container, including the document container, use the GlobalScope specifier.
Choose Tools - Macros - Organize Macros - Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.
Click the \<emph\>Libraries\</emph\> tab.
Select to where you want to attach the library in the Location list. If you select Application Macros & Dialogs, the library will belong to the LibreOffice application and will be available for all documents. If you select a document the library will be attached to this document and only available from there.
Click \<emph\>New\</emph\> and insert a name to create a new library.
Choose Tools - Macros - Organize Macros - Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.
Click the \<emph\>Libraries\</emph\> tab.
Select to where you want to import the library in the Location list. If you select Application Macros & Dialogs, the library will belong to the LibreOffice application and will be available for all documents. If you select a document the library will be imported to this document and only available from there.
Click \<emph\>Append\</emph\> and select an external library to append.
Select all libraries to be appended in the \<emph\>Append Libraries\</emph\> dialog. The dialog displays all libraries that are contained in the selected file.
If you want to insert the library as a reference only check the \<emph\>Insert as reference (read-only)\</emph\> box. Read-only libraries are fully functional but cannot be modified in the Basic IDE.
Check the \<emph\>Replace existing libraries\</emph\> box if you want existing libraries of the same name to be overwritten.
Click \<emph\>OK\</emph\> to append the library.
Choose Tools - Macros - Organize Macros - Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.
Click the \<emph\>Libraries\</emph\> tab.
In the Location list you specify where your library is stored. Select the library that you want to export. Note that you cannot export the Standard library.
Click Export...
Choose whether you want to export the library as an extension or as a BASIC library.
Click \<emph\>Remove\</emph\>.
Select where you want your library exported.
Click \<emph\>OK\</emph\> to append the library.
Choose Tools - Macros - Organize Macros - Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.
Click the \<emph\>Libraries\</emph\> tab.
Select the library to be deleted from the list.
Click \<emph\>Delete\</emph\>.
Deleting a library permanently deletes all existing modules and corresponding procedures and functions.
You cannot delete the default library named "Standard".
If you delete a library that was inserted as reference only the reference is deleted but not the library itself.
Choose Tools - Macros - Organize Macros - Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.
Click the \<emph\>Modules\</emph\> tab or the \<emph\>Dialogs\</emph\> tab.
Select the library where the module will be inserted and click \<emph\>New\</emph\>.
Enter a name for the module or the dialog and click \<emph\>OK\</emph\>.
Choose Tools - Macros - Organize Macros - Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.
Click the module to be renamed twice, with a pause between the clicks. Enter the new name.
In the Basic IDE, right-click the name of the module or dialog in the tabs at the bottom of the screen, choose \<emph\>Rename\</emph\> and type in the new name.
Press Enter to confirm your changes.
Choose Tools - Macros - Organize Macros - Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.
Click the \<emph\>Modules\</emph\> tab or the \<emph\>Dialogs\</emph\> tab.
Select the module or dialog to be deleted from the list. Double-click an entry to reveal sub-entries, if required.
Click \<emph\>Delete\</emph\>.
Deleting a module permanently deletes all existing procedures and functions in that module.
Open all documents or templates among which you want to move or copy the modules or dialogs.
Choose Tools - Macros - Organize Macros - Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.
To move a module or dialog to another document, click the corresponding object in the list and drag it to the desired position. A horizontal line indicates the target position of the current object while dragging. Hold the
key while dragging to copy the object instead of moving it.