Organizing Libraries and Modules

Basic Libraries Containers

LibreOffice Basic libraries can be stored in 3 different containers:

To access macros stored in libraries of LibreOffice Macros or My Macros from another container, including the document container, use the GlobalScope specifier.

Organiziranje biblioteke

Kreiranje nove biblioteke

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Click the Libraries tab.

  3. Select to where you want to attach the library in the Location list. If you select LibreOffice 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.

  4. Click New and insert a name to create a new library.

Import a Library

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Click the Libraries tab.

  3. Odaberite gdje ┼żelite dodati biblioteku iz popisa lokacija. Odaberete li LibreOffice makronaredbe & dijalo┼íke okvire, biblioteka ─çe pripadati LibreOffice aplikaciji i biti dostupna za sve dokumente. Odaberete li dokument, biblioteka ─çe biti dodana tom dokumentu i biti dostupna samo iz njega.

  4. Click Import... and select an external library to import.

  5. Select all libraries to be imported in the Import Libraries dialog. The dialog displays all libraries that are contained in the selected file.

  6. If you want to insert the library as a reference only check the Insert as reference (read-only) box. Read-only libraries are fully functional but cannot be modified in the Basic IDE.

  7. Check the Replace existing libraries box if you want existing libraries of the same name to be overwritten.

  8. Click OK to import the library.

Export a Library

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Click the Libraries tab.

  3. 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.

  4. Click Export...

  5. Choose whether you want to export the library as an extension or as a basic library.

  6. Click OK.

  7. Select where you want your library exported.

  8. Click Save to export the library.

Brisanje biblioteke

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Click the Libraries tab.

  3. Odaberite biblioteku s popisa koju biste ┼żeljeli obrisati.

  4. Click Delete.

Organizacja modula i dijaloških okvira

Stvaranje novog mogula i dijaloškog okvira

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Click the Modules tab or the Dialogs tab.

  3. Select the library where the module will be inserted and click New.

  4. Enter a name for the module or the dialog and click OK.

Preimenovanje modula ili dijaloškog okvira

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Kliknite dva puta na modul koji ┼żelite preimenovati sa pauzom izme─Ĺu klikova. Unesite novo ime.

    U Basic IDE-u, kliknite desnom tipkom na ime modula ili dijaloškog prozora u opcijama na dnu zaslona, odaberite Preimenuj i ukucajtenovo ime.

  3. Pritisnite Enter da biste potvrdili izmjene.

Brisanje modula ili dijaloškog okvira

  1. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  2. Click the Modules tab or the Dialogs tab.

  3. Izaberite modul ili dijalo┼íki prozor koji ┼żelite izbrisati sa liste. Ukoliko je potrebno, dva puta kliknite da biste otvorili podunose.

  4. Click Delete.

warning

Trajnim brisanjem modula brišete sve postojeće procedure i funkcije u tom modulu.


Organiziranje projekata me─Ĺu dokumentima i predlo┼ícima

Premje┼ítanje ili kopiranje modula me─Ĺu dokumentima, predlo┼ícima i aplikacijama.

  1. Otvorite sve dokumente ili predlo┼íke unutar kojih ┼żelite premje┼ítati ili kopirati module i dijalo┼íke prozore.

  2. Choose Tools - Macros - Organize Macros - LibreOffice Basic and click Organizer or click the Select Module icon in the Basic IDE to open the Macro Organizer dialog.

  3. 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.

Please support us!