Re: Prevent closing with InstanceLocker

2012-12-29 Thread Ariel Constenla-Haile
On Thu, Dec 27, 2012 at 04:50:13PM +0100, Bernard Marcelly wrote: Useful references from old mailing lists: Annoucement of service InstanceLocker (May 2006) http://www.mail-archive.com/allfeatures@openoffice.org/msg00282.html Problem with InstanceLocker in Basic (Oct 2007)

Re: Prevent closing with InstanceLocker

2012-12-27 Thread Bernard Marcelly
Does the InstanceLocker work if you provide an XActionsApproval (in Basic, via a UNO listener)? In a dummy test, AOO crashed. Indeed, it works for me if there is another OpenOffice window in the background. But running my routine allowClose still closes the window. If the document is the

Prevent closing with InstanceLocker

2012-12-26 Thread Bernard Marcelly
Hello, With OpenOffice Basic, I want to prevent a document from closing. I tried this simple code, stored in a Writer document: Option Explicit Global dontClose As Object Sub denyClose if IsNull(dontClose) then dontClose =