Hi Zhi Bao Yan, I am redirecting the answer to the framework development list. It is better to ask such questions and answer them there, since more people could participate in discussion and benefit from it.
The lock file pattern is ".~lock.<file name>#", it is the same on all platforms. Actually it must be the same on all platforms, for the case that the same file is opened from different machines in a heterogeneous network. Could you please explain in details in which circumstances are you going to ignore the locking? I must confess, such ignoring looks like a hack, at least from the first view. Best regards, Mikhail. On 04/22/10 11:33, Zhi Bao Yang wrote: > > Hi Mikhail, > > I am a developer from IBM China Lab. Recently I am trying some > customization work over OpenOffice3.2. > I found your name in public web site and knew you are expert on file > locking in OO. Could you do me a favor on a question? > > When a document (like odt, odp, doc) is opened in OO, it seems a lock > file is generated in the same directory with format *.~lock.New > Document 1.odt#* > My question is what is the exact definition of this lock file name > pattern? I need this in order to ignore them on some customized file > operation. > Is this pattern applied to all OS? > > Thanks, > Best Regards > > // YANG Zhi Bao (杨志宝) > // Tel. 8610-8245 3575 (t/l: 90-53575) > // Lotus Quickr, IBM China Development Lab >