Page 1 of 1

Hooking "Save/Save as" functionality

PostPosted: Sat Jan 02, 2021 1:30 am
by Nimral
Hi all,

does OO Basic provide any means to globally hook into the save / save as functionality?

What I need to do is to create a global macro which inspects all file save operations, and, if a file is to be saved into a specific directory (e.g. ...\my documents\reports) it will automatically create a filename (derived from the current date and time to ensure uniqueness) and save the file without any further user interaction, whereas, if the file is to be saved anywhere else, the default Open Office file save behaviour is retained.

Can such low-level programming be done in Open Office Basic or Libre Office Basic?

Thnx, Armin.

Re: Hooking "Save/Save as" functionality

PostPosted: Sat Jan 02, 2021 1:56 am
by JeJe
See Useful Macro Information
For OpenOffice
By
Andrew Pitonyak

Listing: Intercept menu commands using Basic

https://www.pitonyak.org/oo.php