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 Delphi, this is not the right way for us. Is there
another approach how to get know, when the file edited in OOo is closed?


The next best thing that comes to my mind is writing an OOo Basic macro,
binding it to the events "Save/SavesAsDone" and call native code from
inside the basic macro that notifies your application. Native code in
DLLs (C linkage) can be called by defining the exported function as a
Basic function.

Best regards,
Mathias


Thank you Mathias for your help. This could be a solution, we could write some macros, but it requires to deliver a explain to everybody who wants to use OOo with our app that he has to apply this macro to his/her OOo instalation. If the user overlooked this information, it wouldn�t work correctly.

What do you think about following solution built in the standard OOo instalation: when starting saving document OOo will create a very small file (only a several bytes) with name corresponding with the original file and remove this temporary file after saving is finished. Then the existence of such file could be checked.

Thank again for your hints
Ales Kahanek


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

Reply via email to