[dev] Re: basic macro to uno package

2005-06-28 Thread Ales Kahanek
Thank Daniel for your help. Now I got the package working! I have followed the guidelines from Add On Tool from http://www.ooomacros.org/dev.php Now I have created my own addon which can be installed to OOo. The last question is how to assign the macro from the addon to some OOo document

[dev] basic macro to uno package

2005-06-27 Thread Ales Kahanek
Hi, can anybody give me a hint how to create an uno package? I have small basic macro attached to document close event and I want to create uno package with this macro. The purpose of doing this is that our Delphi application is cooperating with OOo and when our app is installed on a system,

[dev] Re: Writer allows deleting opened file while saving

2005-06-01 Thread Ales Kahanek
Mathias Bauer wrote: As it seems you don't apply any modifications to the Ooo installation, but you deliver your application to your users, right? Do they have to execute a setup for this? You could deliver the macro or component mentioned above as a UNO package and integrate it into your

[dev] Re: Writer allows deleting opened file while saving

2005-05-31 Thread Ales Kahanek
Mathias Bauer wrote: Ales Kahanek wrote: I have found this: In OpenOffice.org API the Listener mechanism is used to add a handler for a specific event. This is not possible from Delphi because the COM bridge does not support call-back primitives necessary for that purpose. Now, as we use

[dev] Re: Writer allows deleting opened file while saving

2005-05-23 Thread Ales Kahanek
. Is there another approach how to get know, when the file edited in OOo is closed? Thanks for any hints. Ales Kahanek Mathias Bauer wrote: Ales Kahanek wrote: If you placed a listener in every open document you would get notifications when they are closed This sounds good, could you, please

[dev] Re: Writer allows deleting opened file while saving

2005-05-18 Thread Ales Kahanek
Mathias Bauer wrote: Relying on the locked state of a file IMHO is a hack (sorry). But Yes, I know that this is not the best way, but there are many applications that do their job in many different ways and if the check if the process is active scenario fails, then this is may be the last

[dev] Writer allows deleting opened file while saving

2005-05-17 Thread Ales Kahanek
until the file is closed. What do you think about it? How can I know, when the file opened by Writer was closed? Or better - shouldnt this behaviour be changed not to release the file access lock? Thank you very much for any hint. If this is wrong group, please, point me to the right place. Ales

[dev] Writer allows exclusive access to opened file while saving!

2005-05-17 Thread Ales Kahanek
until the file is closed. What do you think about it? How can I know, when the file opened by Writer was closed? Or better - shouldnt this behaviour be changed not to release the file access lock? Thank you very much for any hint. If this is wrong group, please, point me to the right place. Ales