Re: [dev] ADD-ON FOLLOW-UP QUESTION

2007-01-10 Thread Steffen Grund
Hi. If you are using NetBeans as platform (or would like to do so) I'd like to point you to the NetBeans Integration project which extends NetBeans to create AddOns for OpenOffice.org with a step-by-step wizard, including menu entries. (You can get NetBeans at: http://www.netbeans.org and

Re: [dev] Lock a document for concurrent access?

2007-01-10 Thread Mathias Bauer
Niklas Nebel wrote: Unfortunately it must be. I don't want to open the file again, I just want to set/clear the lock, and there's no API for that in osl. Why not open it again? Treat it more like import/export instead of load/save, with embedded objects in a temporary storage, and don't

Re: [dev] Lock a document for concurrent access?

2007-01-10 Thread Mathias Bauer
Jan Holesovsky wrote: But then the document can become modified by other applications or even deleted by the user while it is still edited in an OOo instance. This will let OOo crash in many cases. Please remember that no locking was the default until 2.0

Re: [dev] Lock a document for concurrent access?

2007-01-10 Thread Jan Holesovsky
Hi Niklas, On Tuesday 09 January 2007 20:52, Niklas Nebel wrote: Besides that I don't think that something must be changed in osl. We just have to change our way how we interpret the results from openFile. Unfortunately it must be. I don't want to open the file again, I just want to

Re: [dev] Lock a document for concurrent access?

2007-01-10 Thread Jan Holesovsky
Hi Mathias, On Wednesday 10 January 2007 11:44, Mathias Bauer wrote: Please remember that no locking was the default until 2.0 (http://www.openoffice.org/issues/show_bug.cgi?id=29425) so I guess if this were a real problem, we would have had some crashreports already. (Or do we have

Re: [dev] Lock a document for concurrent access?

2007-01-10 Thread Eike Rathke
Hi Mathias, On Wednesday, 2007-01-10 11:44:34 +0100, Mathias Bauer wrote: And IIRC - while the file descriptor is still open, the operating system (or at least Linux) does not unlink the file for the process that owns the file descriptor - but I can be wrong of course. That won't

Re: [dev] ADD-ON FOLLOW-UP QUESTION

2007-01-10 Thread Mathias Bauer
Hi, mellannie rachelle reyes wrote: *Good day sir!!! I am Mellannie again, sorry for asking over and over again, actually its my first time to add a plug-in in a particular application and i am still quite confused.* *What we were really trying to do is to add a plug-in in the