Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-09 Thread Marc Santhoff
Hi Mikhail! Yes, you're right. It was a matter of brain usage ... ;) Am Dienstag, den 09.10.2007, 11:41 +0200 schrieb Mikhail Voitenko: > Hi Marc, > > The approved action here is "prevent closing". So if TRUE is returned, > the closing of the current document model should be prevented. And it

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-09 Thread Mikhail Voitenko
Hi Marc, The approved action here is "prevent closing". So if TRUE is returned, the closing of the current document model should be prevented. But it looks like locking of the model does not prevent closing of the frame. Please try to register the InstanceLocker on the frame. Regards, Mikha

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-08 Thread Marc Santhoff
Hello Mikhail, Am Montag, den 08.10.2007, 14:53 +0200 schrieb Mikhail Voitenko: > Hi Marc, > > This is a bug, I have just submitted an issue to myself. It is going to > be fixed in OOo2.4 currently. Please use the following link to find the > issue. > http://www.openoffice.org/issues/show_bug.c

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-08 Thread Mikhail Voitenko
Hi Marc, This is a bug, I have just submitted an issue to myself. It is going to be fixed in OOo2.4 currently. Please use the following link to find the issue. http://www.openoffice.org/issues/show_bug.cgi?id=82393 Thanks, Mikhail. Marc Santhoff wrote: Hi again, this time a crash report wa

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-08 Thread Marc Santhoff
Hi again, this time a crash report was generated. As last time there was only one writer doc open in parallel to the IDE. The code is: sub testLocker doc = ThisComponent args() = Array(CreateUnoValue("any", doc), CreateUnoValue("any", 1)) psm = GetProcessServiceManager()

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-07 Thread Marc Santhoff
Hi Paolo, you're right, stupid error since the argument is sequence of any. I tried here and had the office hang repeatedly on win98, so there in deed must be something wrong. Am Samstag, den 06.10.2007, 23:45 +0200 schrieb Paolo Mantovani: > Hello Marc, > It seems that the problem is in the wa

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-06 Thread Paolo Mantovani
Hello Marc, Alle 14:50, sabato 6 ottobre 2007, Marc Santhoff ha scritto: > Hi, > > when running this macro: > > > global doc as object > > sub LockerCheck > dim args(1) as new com.sun.star.beans.PropertyValue > > doc = ThisComponent > args(0).Name = "xInstance" > args(0).V

[api-dev] instantiating InstanceLocker from BASIC

2007-10-06 Thread Marc Santhoff
Hi, when running this macro: global doc as object sub LockerCheck dim args(1) as new com.sun.star.beans.PropertyValue doc = ThisComponent args(0).Name = "xInstance" args(0).Value = doc args(1).Name = "nActions" args(1).Value = 1 'com.sun.star.emb