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)
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
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 =