Ajuda del LibreOffice 25.2
Les biblioteques del LibreOffice BASIC es poden emmagatzemar en 3 contenidors diferents:
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.
Les meues macros: les biblioteques emmagatzemades en aquest contenidor estan disponibles per a tots els documents del vostre usuari. El contenidor es troba a l'àrea de perfil d'usuari i no és accessible per un altre usuari.
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.
Feu clic a la pestanya Biblioteques.
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.
Feu clic a Nou i inseriu un nom per crear una biblioteca nova.
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.
Feu clic a la pestanya Biblioteques.
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.
Feu clic a Importa i seleccioneu una biblioteca externa per importar-la.
Seleccioneu totes les biblioteques que cal importar al diàleg Importa biblioteques. El diàleg mostra totes les biblioteques contingudes al fitxer seleccionat.
Si voleu inserir la biblioteca únicament com a referència, activeu la casella de selecció Insereix com a referència (només de lectura). Les biblioteques només de lectura són totalment funcionals però no es poden modificar a l'EID del Basic.
Activeu la casella Reemplaça les biblioteques existents si voleu que les biblioteques existents amb el mateix nom se sobreescriguin.
Feu clic a D'acord per importar la biblioteca.
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.
Feu clic a la pestanya Biblioteques.
Indiqueu on està emmagatzemada la biblioteca a la llista Ubicació. Seleccioneu la biblioteca que voleu exportar. Tingueu en compte que no podeu exportar la biblioteca Estàndard.
Feu clic a Exporta...
Trieu si voleu exportar la biblioteca com a extensió o com a biblioteca del BASIC.
Feu clic a D'acord.
Seleccioneu on voleu exportar la biblioteca.
Feu clic a Guarda per exportar la biblioteca.
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.
Feu clic a la pestanya Biblioteques.
Seleccioneu la biblioteca que voleu suprimir de la llista.
Feu clic a Suprimeix.
La supressió d'una biblioteca suprimeix de forma permanent tots els mòduls existents i els procediments i les funcions corresponents.
No podeu suprimir la biblioteca per defecte denominada "Estàndard".
Si suprimiu una biblioteca que es va inserir només com a referència, se suprimeix la referència però no la biblioteca mateixa.
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.
Feu clic a la pestanya Mòduls o a la pestanya Diàlegs.
Seleccioneu la biblioteca on s'inserirà el mòdul i feu clic a Nou.
Introduïu un nom per al mòdul o el diàleg i feu clic a D'acord.
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.
Feu doble clic al mòdul el nom del qual voleu canviar, amb una petita pausa entre els dos clics. Introduïu el nom nou.
A l'EID del Basic, feu clic amb el botó dret del ratolí al nom del mòdul o del diàleg a les pestanyes de la part inferior de la pantalla, seleccioneu Canvia el nom i escriviu el nom nou.
Premeu Retorn per confirmar els canvis.
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.
Feu clic a la pestanya Mòduls o a la pestanya Diàlegs.
Seleccioneu el mòdul o el diàleg que voleu suprimir de la llista. Feu doble clic en una entrada per mostrar les subentrades, si cal.
Feu clic a Suprimeix.
La supressió permanent d'un mòdul suprimeix tots els procediments i les funcions existents en este mòdul.
Obriu tots els documents o plantilles entre els quals voleu moure o copiar els mòduls o diàlegs.
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.
Per moure un mòdul o un diàleg a un altre document, feu clic a l'objecte corresponent de la llista i arrossegueu-lo fins a la posició que vulgueu. Una línia horitzontal indica la posició de destí de l'objecte actual mentre s'arrossega. Manteniu premuda la tecla
mentre arrossegueu per copiar l'objecte en lloc de moure'l.