On 05/12/2013 06:42 AM, Vieri wrote:
Hi, I'd like to override the SAVE toolbar button, the FIle/save(save as) menu items and the X (close) on the top right corner of the window. In other words, I'd like a custom macro to be executed whenever a user wants to either save or exit. This macro will eventually save the document and exit the app but after making custom checks. Could anyone please give me a tip on how to do this? Alternatively, it would be fine if I could simply disable both SAVE and QUIT/exit as long as I can add a custom icon/button in the toolbar or in the menu so the user can actually run the macro to save&exit. Thanks, Vieri
Never done it, but these might be of use. http://forum.openoffice.org/en/forum/viewtopic.php?f=5&t=23144 http://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Disable_Commands http://www.oooforum.org/forum/viewtopic.phtml?t=131536 -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.odt Info: http://www.pitonyak.org/oo.php -- To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted