Fabricio Lemos wrote:
> Hello all,
> 
> Is there anyway, with macros, to revert all changes made in a document
> since last time it was saved, without reloading it?

Such functionality does not exist at all, neither in the GUI nor in the
API.

You can call "Undo" until the undo stack is empty, in many cases that
will do what you want. There are two cases where this is not what you want:

(1) You have saved your document in the editing session. In this case
calling "Undo" til the end will even go behind the last saved version.

(2) OTOH if you have more undo steps than the configured depth of the
undo stack (default in OOo2 is 100) you will not reach the last saved state.

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.


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

Reply via email to