Notikumu virzīti makro

This section describes how to assign Basic programs to program events.

You can automatically execute a macro when a specified software event occurs by assigning the desired macro to the event. The following table provides an overview of program events and at what point an assigned macro is executed.

Notikums

Piesaistītais makro ir izpildīts...

Program Start

... pēc tam, kad LibreOffice lietotne ir sākta.

Program End

...pirms LibreOffice lietotne ir pārtraukta.

Izveidot dokumentu

...pēc tam, kad jauns dokuments ir izveidots ar Datne - Jauns vai ar Jauns ikonu.

Atvērt dokumentu

...pēc tam, kad dokuments ir atvērts ar Datne - Atvērt vai ar Atvērt ikonu.

Saglabāt dokumentu kā

...before a document is saved under a specified name (with File - Save As, or with File - Save or the Save icon, if a document name has not yet been specified).

Dokuments ir saglabāts kā

... after a document was saved under a specified name (with File - Save As, or with File - Save or with the Save icon, if a document name has not yet been specified).

Saglabāt dokumentu

...before a document is saved with File - Save or the Save icon, provided that a document name has already been specified.

Dokuments ir saglabāts

...after a document is saved with File - Save or the Save icon, provided that a document name has already been specified.

Dokuments aizverās

...pirms dokuments ir aizvērts.

Dokuments aizvērts

...after a document was closed. Note that the "Save Document" event may also occur when the document is saved before closing.

Aktivizēt dokumentu

...after a document is brought to the foreground.

Deaktivizēt dokumentu

...after another document is brought to the foreground.

Drukāt dokumentu

...after the Print dialog is closed, but before the actual print process begins.

JavaScript izpildlaika kļūda

...kad atgadās JavaScript izpildlaika kļūda.

Drukāt vēstuļu sapludināšanu

...after the Print dialog is closed, but before the actual print process begins. This event occurs for each copy printed.

Lappušu skaita izmaiņa

...kad izmainās lappušu skaits.

Ziņojums saņemts

...ja tika saņemts ziņojums.


Makro piesaistīšana notikumam

  1. Izvēlieties Rīki - Pielāgot un klikšķiniet cilni Notikumi.

  2. Select whether you want the assignment to be globally valid or just valid in the current document in the Save In listbox.

  3. Atlasiet notikumu no Notikumu saraksta.

  4. Klikšķiniet Makro un atlasiet makro, kuru piesaistīt atlasītajam notikumam.

  5. Klikšķiniet Labi, lai piesaistītu makro.

  6. Klikšķiniet Labi, lai aizvērtu dialogu.

Makro piesaistījuma notikumam noņemšana

  1. Izvēlieties Rīki - Pielāgot un klikšķiniet cilni Notikumi.

  2. Select whether you want to remove a global assignment or an assignment that is just valid in the current document by selecting the option in the Save In listbox.

  3. Select the event that contains the assignment to be removed from the Event list.

  4. Klikšķiniet Noņemt.

  5. Klikšķiniet Labi, lai aizvērtu dialogu.

Please support us!