Document Event-Driven Macros

This section describes how to assign scripts to application, document or form 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 document events and at what point an assigned macro is executed.

āĻ‡āĻ­ā§‡āĻ¨ā§āĻŸ

āĻāĻ•āĻŸāĻŋ āĻ†āĻ°ā§‹āĻĒāĻŋāĻ¤ āĻŽā§āĻ¯āĻžāĻ•ā§āĻ°ā§‹ āĻāĻ•ā§āĻ¸āĻŋāĻ•āĻŋāĻ‰āĻŸ āĻ•āĻ°āĻž āĻšāĻ¯āĻŧ...

routine

Start Application

...after a LibreOffice application is started.

OnStartApp

Close Application

...āĻāĻ•āĻŸāĻŋ LibreOffice āĻ…ā§āĻ¯āĻžāĻĒā§āĻ˛āĻŋāĻ•ā§‡āĻļāĻ¨ āĻļā§‡āĻˇ āĻšāĻ“ā§ŸāĻžāĻ° āĻ†āĻ—ā§‡āĨ¤

OnCloseApp

Document created

...New document created with File - New or with the New icon. Note that this event also fires when Basic IDE opens.

OnCreate

New Document

...āĻĢāĻžāĻ‡āĻ˛ - āĻ¨āĻ¤ā§āĻ¨ āĻ…āĻĨāĻŦāĻž āĻ¨āĻ¤ā§āĻ¨ āĻ†āĻ‡āĻ•āĻ¨ā§‡āĻ° āĻŽāĻžāĻ§ā§āĻ¯āĻŽā§‡ āĻāĻ•āĻŸāĻŋ āĻ¨āĻ¤ā§āĻ¨ āĻ¨āĻĨāĻŋ āĻ¤ā§ˆāĻ°āĻŋ āĻ•āĻ°āĻžāĻ° āĻĒāĻ°āĨ¤

OnNew

Document loading finished

...before a document is opened with File - Open or with the Open icon.

OnLoadFinished

āĻ¨āĻĨāĻŋ āĻ–ā§‹āĻ˛āĻž āĻšāĻŦā§‡

...āĻĢāĻžāĻ‡āĻ˛ - ‌‌‌‌‌‌‌‌‌‌‌āĻ–ā§āĻ˛ā§āĻ¨ āĻ…āĻĨāĻŦāĻž āĻ–ā§āĻ˛ā§āĻ¨ āĻ†āĻ‡āĻ•āĻ¨ā§‡āĻ° āĻŽāĻžāĻ§ā§āĻ¯āĻŽā§‡ āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋ ‌‌‌‌‌‌‌‌āĻ–ā§‹āĻ˛āĻžāĻ° āĻĒāĻ°āĨ¤

OnLoad

Document is going to be closed

...āĻ¨āĻĨāĻŋāĻŸāĻŋ āĻŦāĻ¨ā§āĻ§ āĻšāĻ“ā§ŸāĻžāĻ° āĻ†āĻ—ā§‡āĨ¤

OnPrepareUnload

āĻ¨āĻĨāĻŋ āĻŦāĻ¨ā§āĻ§ āĻ•āĻ°āĻž āĻšā§Ÿā§‡āĻ›ā§‡

...āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋ āĻŦāĻ¨ā§āĻ§ āĻšāĻ“āĻ¯āĻŧāĻžāĻ° āĻĒāĻ°ā§‡āĨ¤ āĻ¨ā§‹āĻŸ āĻ•āĻ°ā§āĻ¨ āĻ¯ā§‡, āĻ¨āĻĨāĻŋāĻŸāĻŋ āĻŦāĻ¨ā§āĻ§ āĻ•āĻ°āĻžāĻ° āĻĒā§‚āĻ°ā§āĻŦā§‡āĻ‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°āĻž āĻšāĻ˛ā§‡ "āĻ¨āĻĨāĻŋ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨" āĻ‡āĻ­ā§‡āĻ¨ā§āĻŸāĻŸāĻŋāĻ“ āĻ¸āĻ‚āĻ˜āĻŸāĻŋāĻ¤ āĻšāĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĨ¤

OnUnload

-no UI-

OnLayoutFinished

View created

Document is displayed. Note that this event also happens when a document is duplicated.

OnViewCreated

View is going to be closed

Document layout is getting removed.

OnPrepareViewClosing

View closed

Document layout is cleared prior to the document closure.

OnViewClosed

āĻ¨āĻĨāĻŋ āĻ¸āĻ•ā§āĻ°āĻŋāĻ¯āĻŧ āĻ•āĻ°āĻž āĻšāĻŦā§‡

...āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋāĻ•ā§‡ āĻĒā§āĻ°ā§‹āĻ­āĻžāĻ—ā§‡ āĻ†āĻ¨āĻžāĻ° āĻĒāĻ°ā§‡āĨ¤

OnFocus

āĻ¨āĻĨāĻŋ āĻ¨āĻŋāĻˇā§āĻ•ā§āĻ°āĻŋāĻ¯āĻŧ āĻ•āĻ°āĻž āĻšāĻŦā§‡

...āĻ†āĻ°ā§‡āĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋāĻ•ā§‡ āĻĒā§āĻ°ā§‹āĻ­āĻžāĻ—ā§‡ āĻ†āĻ¨āĻžāĻ° āĻĒāĻ°ā§‡āĨ¤

OnUnfocus

āĻ¨āĻĨāĻŋ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°āĻž āĻšāĻŦā§‡

...āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋ āĻĢāĻžāĻ‡āĻ˛ - āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ…āĻĨāĻŦāĻžāĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ†āĻ‡āĻ•āĻ¨ā§‡āĻ° āĻŽāĻžāĻ§ā§āĻ¯āĻŽā§‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°āĻžāĻ° āĻĒā§‚āĻ°ā§āĻŦā§‡, āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋāĻ° āĻ‡āĻ¤ā§‹āĻŽāĻ§ā§āĻ¯ā§‡āĻ‡ āĻ‰āĻ˛ā§āĻ˛ā§‡āĻ–āĻŋāĻ¤ āĻ¨āĻžāĻŽ āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻ•āĻ°āĻž āĻšā§Ÿā§‡āĻ›ā§‡āĨ¤

OnSaveAs

āĻ¨āĻĨāĻŋāĻŸāĻŋ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŋāĻ¤ āĻšāĻ¯āĻŧā§‡āĻ›ā§‡

...āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋ āĻĢāĻžāĻ‡āĻ˛ - āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ…āĻĨāĻŦāĻžāĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ†āĻ‡āĻ•āĻ¨ā§‡āĻ° āĻŽāĻžāĻ§ā§āĻ¯āĻŽā§‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°āĻžāĻ° āĻĒāĻ°ā§‡, āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋāĻ° āĻ‡āĻ¤ā§‹āĻŽāĻ§ā§āĻ¯ā§‡āĻ‡ āĻ‰āĻ˛ā§āĻ˛ā§‡āĻ–āĻŋāĻ¤ āĻ¨āĻžāĻŽ āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻ•āĻ°āĻž āĻšā§Ÿā§‡āĻ›ā§‡āĨ¤

OnSaveDone

Saving of document failed

Document could not be saved.

OnSaveFailed

āĻ¨āĻĨāĻŋāĻŸāĻŋ āĻāĻ­āĻžāĻŦā§‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°āĻž āĻšāĻŦā§‡

...āĻāĻ•āĻŸāĻŋ āĻ¨āĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āĻŸ āĻ¨āĻžāĻŽā§‡ (āĻ¯āĻĻāĻŋ āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋāĻ° āĻ¨āĻžāĻŽ āĻ‡āĻ¤ā§‹āĻŽāĻ§ā§āĻ¯ā§‡ āĻ¨āĻŋāĻ°ā§āĻ§āĻžāĻ°āĻŋāĻ¤ āĻ¨āĻž āĻšā§Ÿ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻĢāĻžāĻ‡āĻ˛ - āĻ…āĻ¨ā§āĻ¯āĻ­āĻžāĻŦā§‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ…āĻĨāĻŦāĻž āĻĢāĻžāĻ‡āĻ˛ - āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ…āĻĨāĻŦāĻž āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ†āĻ‡āĻ•āĻ¨ āĻāĻ° āĻ¸āĻžāĻšāĻžāĻ¯ā§āĻ¯ā§‡) āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°āĻžāĻ° āĻĒā§‚āĻ°ā§āĻŦā§‡ āĨ¤

OnSaveAs

āĻ¨āĻĨāĻŋāĻŸāĻŋāĻ•ā§‡ āĻāĻ­āĻžāĻŦā§‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŋāĻ¤ āĻšāĻ¯āĻŧā§‡āĻ›ā§‡

...āĻāĻ•āĻŸāĻŋ āĻ¨āĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āĻŸ āĻ¨āĻžāĻŽā§‡ (āĻ¯āĻĻāĻŋ āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋāĻ° āĻ¨āĻžāĻŽ āĻ‡āĻ¤ā§‹āĻŽāĻ§ā§āĻ¯ā§‡ āĻ¨āĻŋāĻ°ā§āĻ§āĻžāĻ°āĻŋāĻ¤ āĻ¨āĻž āĻšā§Ÿ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻĢāĻžāĻ‡āĻ˛ - āĻ…āĻ¨ā§āĻ¯āĻ­āĻžāĻŦā§‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ…āĻĨāĻŦāĻž āĻĢāĻžāĻ‡āĻ˛ - āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ…āĻĨāĻŦāĻž āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ†āĻ‡āĻ•āĻ¨ āĻāĻ° āĻ¸āĻžāĻšāĻžāĻ¯ā§āĻ¯ā§‡) āĻāĻ•āĻŸāĻŋ āĻ¨āĻĨāĻŋ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°āĻžāĻ° āĻĒāĻ°ā§‡ āĨ¤

OnSaveAsDone

'Save As' has failed

Document could not be saved.

OnSaveAsFailed

-no UI-

When the document disk location has changed, for example after a File - Save As action.

OnStorageChanged

Storing or exporting copy of document

...before a document is saved with File - Save a Copy, File - Export, File - Export as PDF or the Save icons.

OnCopyTo

Document copy has been created

...after a document is saved with File - Save a Copy, File - Export, File - Export as PDF or the Save icons.

OnCopyToDone

Creating of document copy failed

Document could not be copied or exported.

OnCopyToFailed

Print document

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

OnPrint

-no UI-

...after document security settings have changed.

OnModeChanged

'Modified' status was changed

Modified state of a document has changed.

OnModifyChanged

Document title changed

When the document title gets updated.

OnTitleChanged

Loaded a sub component

...after a database form has been opened.

OnSubComponentOpened

Closed a sub component

...after a database form has been closed.

OnSubComponentClosed

Printing of form letters started

...before printing form letters using File - Print or Tools - Mail Merge Wizard menus.

OnMailMerge

Printing of form letters finished

...after printing of form letters using File - Print or Tools - Mail Merge Wizard menus.

OnMailMergeFinished

Printing of form fields started

...before printing form fields.

OnFieldMerge

Printing of form fields finished

...after printing form fields.

OnFieldMergeFinished

āĻĒā§ƒāĻˇā§āĻ āĻžāĻ° āĻŽā§‹āĻŸ āĻ¸āĻ‚āĻ–ā§āĻ¯āĻž āĻĒāĻ°āĻŋāĻŦāĻ°ā§āĻ¤āĻ¨ āĻ•āĻ°ā§āĻ¨

When the page count changes.

OnPageCountChanged


note

Most events relate to documents, except OnStartApp, OnCloseApp, OnCreate and OnLoadFinished that occur at application level. OnSubComponentOpened, and OnSubComponentClosed events are fired by database's forms.


tip

Writer documents are triggering those specific events: OnLayoutFinished, OnMailMerge, OnMailMergeFinished, OnFieldMerge, OnFieldMergeFinished and OnPageCountChanged.


āĻāĻ•āĻŸāĻŋ āĻ‡āĻ­ā§‡āĻ¨ā§āĻŸā§‡ āĻŽā§āĻ¯āĻžāĻ•ā§āĻ°ā§‹ āĻ¨āĻŋāĻ¯ā§āĻ•ā§āĻ¤ āĻ•āĻ°āĻž āĻšāĻšā§āĻ›ā§‡

  1. āĻŸā§āĻ˛ - āĻ¸ā§āĻŦāĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ•āĻ°ā§āĻ¨ āĻāĻŦāĻ‚ āĻ…āĻ¨ā§āĻˇā§āĻ āĻžāĻ¨ āĻŸā§āĻ¯āĻžāĻŦā§‡ āĻ•ā§āĻ˛āĻŋāĻ• āĻ•āĻ°ā§āĻ¨āĨ¤

  2. āĻ†āĻĒāĻ¨āĻŋ āĻŦāĻ°āĻžāĻĻā§āĻĻāĻ•ā§ƒāĻ¤ āĻ•āĻžāĻœ āĻ¸āĻžāĻ°ā§āĻŦāĻœāĻ¨ā§€āĻ¨āĻ­āĻžāĻŦā§‡ āĻ•āĻžāĻ°ā§āĻ¯āĻ•āĻ° āĻ•āĻ°āĻ¤ā§‡ āĻšāĻžāĻ¨ āĻ•āĻŋāĻ¨āĻž āĻ…āĻĨāĻŦāĻž āĻāĻ–āĻžāĻ¨ā§‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ¤āĻžāĻ˛āĻŋāĻ•āĻž āĻŦāĻžāĻ•ā§āĻ¸ā§‡āĻ° āĻļā§āĻ§ā§āĻŽāĻžāĻ¤ā§āĻ° āĻŦāĻ°ā§āĻ¤āĻŽāĻžāĻ¨ āĻ¨āĻĨāĻŋāĻ¤ā§‡ āĻ•āĻžāĻ°ā§āĻ¯āĻ•āĻ° āĻ•āĻ°āĻ¤ā§‡ āĻšāĻžāĻ¨ āĻ•āĻŋāĻ¨āĻž āĻ¤āĻž āĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ•āĻ°ā§āĻ¨āĨ¤

  3. āĻ‡āĻ­ā§‡āĻ¨ā§āĻŸ āĻ¤āĻžāĻ˛āĻŋāĻ•āĻž āĻĨā§‡āĻ•ā§‡ āĻāĻ•āĻŸāĻŋ āĻ‡āĻ­ā§‡āĻ¨ā§āĻŸ āĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ•āĻ°ā§āĻ¨āĨ¤

  4. āĻŽā§āĻ¯āĻžāĻ•ā§āĻ°ā§‹ āĻ•ā§āĻ˛āĻŋāĻ• āĻ•āĻ°ā§āĻ¨ āĻāĻŦāĻ‚ āĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻŋāĻ¤ āĻ‡āĻ­ā§‡āĻ¨ā§āĻŸā§‡ āĻŽā§āĻ¯āĻžāĻ•ā§āĻ°ā§‹ āĻ¨āĻŋā§Ÿā§‹āĻ— āĻ•āĻ°āĻžāĻ° āĻœāĻ¨ā§āĻ¯ āĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ•āĻ°ā§āĻ¨āĨ¤

  5. āĻŽā§āĻ¯āĻžāĻ•ā§āĻ°ā§‹ āĻ¨āĻŋā§Ÿā§‹āĻ— āĻ•āĻ°āĻ¤ā§‡ āĻ āĻŋāĻ• āĻ†āĻ›ā§‡ āĻ•ā§āĻ˛āĻŋāĻ• āĻ•āĻ°ā§āĻ¨āĨ¤

  6. āĻĄāĻžāĻ¯āĻŧāĻžāĻ˛āĻ— āĻŦāĻ¨ā§āĻ§ āĻ•āĻ°āĻ¤ā§‡ āĻ āĻŋāĻ• āĻ†āĻ›ā§‡ āĻ•ā§āĻ˛āĻŋāĻ• āĻ•āĻ°ā§āĻ¨āĨ¤

āĻāĻ•āĻŸāĻŋ āĻ‡āĻ­ā§‡āĻ¨ā§āĻŸā§‡ āĻŽā§āĻ¯āĻžāĻ•ā§āĻ°ā§‹āĻ° āĻĒā§āĻ°ā§Ÿā§‹āĻ— āĻ¸āĻ°āĻžāĻ¨ā§‹ āĻšāĻšā§āĻ›ā§‡

  1. āĻŸā§āĻ˛ - āĻ¸ā§āĻŦāĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ•āĻ°ā§āĻ¨ āĻāĻŦāĻ‚ āĻ…āĻ¨ā§āĻˇā§āĻ āĻžāĻ¨ āĻŸā§āĻ¯āĻžāĻŦā§‡ āĻ•ā§āĻ˛āĻŋāĻ• āĻ•āĻ°ā§āĻ¨āĨ¤

  2. āĻ¸āĻžāĻ°ā§āĻŦāĻœāĻ¨ā§€āĻ¨ āĻŦāĻ°āĻžāĻĻā§āĻĻāĻ•ā§ƒāĻ¤ āĻ•āĻžāĻœāĻŸāĻŋ āĻ…āĻĨāĻŦāĻž āĻļā§āĻ§ā§āĻŽāĻžāĻ¤ā§āĻ° āĻāĻ–āĻžāĻ¨ā§‡ āĻ¸āĻ‚āĻ°āĻ•ā§āĻˇāĻŖ āĻ•āĻ°ā§āĻ¨ āĻ¤āĻžāĻ˛āĻŋāĻ•āĻž āĻŦāĻžāĻ•ā§āĻ¸ā§‡ āĻ…āĻĒāĻļāĻ¨ āĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ•āĻ°āĻžāĻ° āĻŽāĻžāĻ§ā§āĻ¯āĻŽā§‡ āĻŦāĻ°ā§āĻ¤āĻŽāĻžāĻ¨ āĻ¨āĻĨāĻŋāĻ¤ā§‡ āĻ•āĻžāĻ°ā§āĻ¯āĻ•āĻ° āĻāĻ•āĻŸāĻŋ āĻŦāĻ°āĻžāĻĻā§āĻĻāĻ•ā§ƒāĻ¤ āĻ•āĻžāĻœ āĻ…āĻĒāĻ¸āĻžāĻ°āĻŖ āĻ•āĻ°āĻŦā§‡āĻ¨ āĻ•āĻŋāĻ¨āĻž āĻ¤āĻž āĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ•āĻ°ā§āĻ¨āĨ¤

  3. āĻāĻ•āĻŸāĻŋ āĻ‡āĻ­ā§‡āĻ¨ā§āĻŸ āĻ¨āĻŋāĻ°ā§āĻŦāĻžāĻšāĻ¨ āĻ•āĻ°ā§āĻ¨ āĻ¯āĻžāĻ¤ā§‡ āĻāĻ•āĻŸāĻŋ āĻŦāĻ°āĻžāĻĻā§āĻĻāĻ•ā§ƒāĻ¤ āĻ•āĻžāĻœ āĻŦāĻŋāĻĻā§āĻ¯āĻŽāĻžāĻ¨ āĻĨāĻžāĻ•ā§‡ āĻāĻŦāĻ‚ āĻ¯āĻž āĻ‡āĻ­ā§‡āĻ¨ā§āĻŸ āĻ¤āĻžāĻ˛āĻŋāĻ•āĻž āĻšāĻ¤ā§‡ āĻŽā§āĻ›ā§‡ āĻĢā§‡āĻ˛āĻž āĻ¯āĻžā§ŸāĨ¤

  4. āĻ…āĻĒāĻ¸āĻžāĻ°āĻŖ āĻ•ā§āĻ˛āĻŋāĻ• āĻ•āĻ°ā§āĻ¨āĨ¤

  5. āĻĄāĻžāĻ¯āĻŧāĻžāĻ˛āĻ— āĻŦāĻ¨ā§āĻ§ āĻ•āĻ°āĻ¤ā§‡ āĻ āĻŋāĻ• āĻ†āĻ›ā§‡ āĻ•ā§āĻ˛āĻŋāĻ• āĻ•āĻ°ā§āĻ¨āĨ¤

In addition to assigning macros to events, one can monitor events triggered in LibreOffice documents.

Please support us!