![]() Intercepting events helps setting scripts pre- and post-conditions such as loading and unloading libraries or track script processing in the background. Tools - Customize menu Events tab is used to assign either scripts. Assigning OnLoad script, to the Open Document event, suffices to initiate and terminate document event monitoring. Monitoring is illustrated herewith for Basic and Python languages using object-oriented programming. Unlike listeners that require to define all supported methods, even if unused, document monitors require only two methods next to hooked event scripts. Application Programming Interface (API) broadcasters are responsible for calling event scripts. Next to assigning macros to events, one can monitor events raised by LibreOfficeDev documents. Release these packages when the document closes. Import math Python packages before opening a Calc document. ![]() Recalculate table of contents, indexes or table entries of a Writer document when document is going to be closed Identify a new document at opening time, as opposed to existing ones, and perform a dedicated setup.Ĭontrol the processing of document save, document copy, print or mailmerge requests. Listening to document events can help in the following situations:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |