Hi Dirk,

OOo ( any version ) does not lock files opened using remote protocols currently ( http:, https: and etc ), except the case when the path to the files is mounted as a local volume and thus is masqueraded as local file system path. In the last case the office recognizes them as local files opened using "file:" protocol.

So if I understand the design of the browser plugin correctly, it will have to provide an own file locking to recognize that the online file has been already opened by another instance of the plugin. But such a locking will only work if the file is opened using the same plugin implementation.

If the URL of the opened document is used explicitly in OOo file open dialog, the office will open the document without any locking. So even own file locking implementation in the plugin would not help in this case.

Hope that helps.

Best regards,
Mikhail.

On 09/30/08 22:21, Dirk Bonenkamp - Bean IT wrote:
Hi Mikhail,

First off all, thank your for your reply.

I'm intending to do it through a third party application. This is a browser plugin, which enables you to open files which are located online, just as they where on your local pc. This works fine, except that I'm facing difficulties in monitoring whether the file is open or has been just closed. I now see I have to do some reading up on the OS file locks...

Cheers,

Dirk

Mikhail Voitenko wrote:
Hi Dirk,

OOo2.x versions use the system file locking. So it depends from the OS, how the locked file is handled. The easiest way seems to be to try just to open a file for editing ( with the appropriate system locking ). It is not clear in which context you are going to do it. Will it be third party application, or an Office add-on or something else?

Best regards,
Mikhail.

On 09/30/08 13:35, Dirk Bonenkamp - Bean IT wrote:
Hi all,

I don't know if this is the right place to ask... I already tried the forum, but no answer over there. I also searched the web quite a lot, but no luck.

I'd like to know how the file locking of OpenOffice files works in version 2.* (I did find a document about locking in 3.*, but that doesn't seem to apply to 2.*).

To be more specific, I'd like to know if and how I can see if a file is currently opened by Open Office, without using Open Office.

I hope my question is clear....

Thank you in advance,

Kind regards,

Dirk Bonenkamp

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to