Re: [dev] How to get notified, when document's URL changes

2007-10-18 Thread Matthias B.
On 10/17/07, Mathias Bauer [EMAIL PROTECTED] wrote:
 You can try the document event OnSaveAsDone.


Yes, that works. Thanks.

Matthias

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



Re: [dev] How to get notified, when document's URL changes

2007-10-17 Thread Mathias Bauer
Matthias B. wrote:

 I'm looking for a way to get notified when a document's URL
 (XModel.getURL()) changes, usually after the user saves the document
 via save as  (or save in case of a new document). I tried an
 XStorageChangeListener, but it's not triggered in this case. The only
 other thing I can think of is to catch the dispatches for Save and
 SaveAs, but that's not pretty and doesn't catch changes to the URL via
 API.

You can try the document event OnSaveAsDone.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to [EMAIL PROTECTED].
I use it for the OOo lists and only rarely read other mails sent to it.

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



[dev] How to get notified, when document's URL changes

2007-10-16 Thread Matthias B.
I'm looking for a way to get notified when a document's URL
(XModel.getURL()) changes, usually after the user saves the document
via save as  (or save in case of a new document). I tried an
XStorageChangeListener, but it's not triggered in this case. The only
other thing I can think of is to catch the dispatches for Save and
SaveAs, but that's not pretty and doesn't catch changes to the URL via
API.

Matthias

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