Teekide ja moodulite korraldamine

Basic Libraries Containers

LibreOffice Basic libraries can be stored in 3 different containers:

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

Teekide korraldamine

Uue teegi loomine

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

  2. KlÔpsa kaardil Teegid.

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

  4. KlÔpsa Uus ning sisesta uue teegi loomiseks nimi.

Import a Library

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

  2. KlÔpsa kaardil Teegid.

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

  4. KlÔpsa Lisa ja vali lisatav vÀline teek.

  5. Vali dialoogis Teekide lisamine kÔik teegid, mille soovid lisada. Dialoogis kuvatakse kÔik valitud failis olevad teegid.

  6. Kui soovid teegi lisada ainult viitena, siis mÀrgi ruut Sisestamine viitena (kirjutuskaitstud). Kirjutuskaitstud teegid on tÀisfunktsionaalsed, kuid BASICu IDE-s ei saa neid muuta.

  7. Kui soovid samanimelised olemasolevad teegid ĂŒle kirjutada, siis mĂ€rgi ruut Olemasolevate teekide asendamine.

  8. KlÔpsa teegi lisamiseks Sobib.

Export a Library

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

  2. KlÔpsa kaardil Teegid.

  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. KlÔpsa Sobib.

  7. Select where you want your library exported.

  8. KlÔpsa teegi lisamiseks Sobib.

Teegi kustutamine

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

  2. KlÔpsa kaardil Teegid.

  3. Vali nimekirjast kustutatav teek.

  4. KlÔpsa Kustuta.

Moodulite ja dialoogide korraldamine

Uue mooduli vÔi dialoogi loomine

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

  2. KlÔpsa kaardil Moodulid vÔi Dialoogid.

  3. Vali teek, kuhu moodul lisada, ning klÔpsa Uus.

  4. Sisesta mooduli vÔi dialoogi nimi ja klÔpsa Sobib.

Mooduli vĂ”i dialoogi ĂŒmbernimetamine

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

  2. KlĂ”psa kaks korda moodulit, mille soovid ĂŒmber nimetada. JĂ€ta klĂ”psamiste vahele paus. Sisesta uus nimi.

    KlĂ”psa parema hiirenupuga Basic IDE ekraani allosas oleval kaardil mooduli vĂ”i dialoogi nime, vali Nimeta ĂŒmber ja sisesta uus nimi.

  3. Muudatuste kinnitamiseks kasuta Enter-klahvi.

Mooduli vÔi dialoogi kustutamine

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

  2. KlÔpsa kaardil Moodulid vÔi Dialoogid.

  3. Vali moodul vÔi dialoog, mille soovid loendist kustutada. Alamkirjete kuvamiseks (kui vaja) tee kirjel topeltklÔps.

  4. KlÔpsa Kustuta.

warning

Mooduli kustutamisel kustuvad lisaks kÔik selles sisalduvad protseduurid ja funktsioonid.


Projektide korraldamine dokumentides ja mallides

Moodulite teisaldamine ja kopeerimine dokumentides, mallides ja rakenduses.

  1. Ava kÔik dokumendid vÔi mallid, mille vahel soovid mooduleid vÔi dialooge teisaldada vÔi kopeerida.

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

  3. Mooduli vÔi dialoogi teisaldamiseks muusse dokumenti klÔpsa loendis vastavat objekti ja lohista see soovitud asukohta. Horisontaaljoon nÀitab praeguse objekti sihtkohta lohistamisel. Kui soovid objekti teisaldamise asemel kopeerida, hoia lohistamise ajal all juhtklahvi .

Palun toeta meid!