Organizing Libraries and Modules
Organiziranje biblioteke
Kreiranje nove biblioteke
-
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.
-
Click the Libraries tab.
-
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.
-
Click New and insert a name to create a new library.
Import a Library
-
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.
-
Click the Libraries tab.
-
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.
-
Click Import... and select an external library to import.
-
Select all libraries to be imported in the Import Libraries 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 Insert as reference (read-only) box. Read-only libraries are fully functional but cannot be modified in the Basic IDE.
-
Check the Replace existing libraries box if you want existing libraries of the same name to be overwritten.
-
Click OK to import the library.
Export a Library
-
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.
-
Click the Libraries 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 OK.
-
Select where you want your library exported.
-
Click Save to export the library.
Brisanje biblioteke
-
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.
-
Click the Libraries tab.
-
Odaberite biblioteku s popisa koju biste željeli obrisati.
-
Click Delete.
-
Trajno brisanje biblioteke briše sve postojeće module i prateće procedure i funkcije.
-
Ne možete obrisati biblioteku "Standard" jer je unaprijed zadana.
-
Ako izbrišete biblioteku koja je unešena kao referenca, samo se briše referenca a ne sama biblioteka.
Organizacja modula i dijaloških okvira
Stvaranje novog mogula i dijaloškog okvira
-
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.
-
Click the Modules tab or the Dialogs tab.
-
Select the library where the module will be inserted and click New.
-
Enter a name for the module or the dialog and click OK.
Preimenovanje modula ili dijaloškog okvira
-
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.
-
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.
-
Pritisnite Enter da biste potvrdili izmjene.
Brisanje modula ili dijaloškog okvira
-
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.
-
Click the Modules tab or the Dialogs tab.
-
Izaberite modul ili dijaloški prozor koji želite izbrisati sa liste. Ukoliko je potrebno, dva puta kliknite da biste otvorili podunose.
-
Click Delete.
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.
-
Otvorite sve dokumente ili predloške unutar kojih želite premještati ili kopirati module i dijaloške prozore.
-
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.
-
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 CommandCtrl key while dragging to copy the object instead of moving it.