All I need to do is, given a document file to the user, know how long it kept the document open before he returned it to the server. To prenvent the user from dealing all the time with 2 files, I was storing this information on a user-field in the document file. But before closing the document I need to revert unsaved changes, update the user-field with the editing time information and save the document. Is there anyway to do that (with or without reloading the document)?
On 12/13/05, Mathias Bauer <[EMAIL PROTECTED]> wrote: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]