summaryrefslogtreecommitdiff
path: root/framework/inc/services/autorecovery.hxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-01-12 23:32:12 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-01-12 23:32:12 +0100
commitda9f8c23e89fd373fa39cb9e5f00674649e31e0d (patch)
treee30cdf193572f5c24c7d63b5c8ac1ac4ab6e409b /framework/inc/services/autorecovery.hxx
parent3ae066f336ed7f61080a11cd916545d6a45f3d10 (diff)
autorecovery: initial implementation of a new save/recovery for database documents
For the moment, the document only stores and loads itself, as before. In this course, the AutoRecovery service now delegates the decision whether or not a document needs to be stored (to the "salvage location") to the document itself, using the new method XDocumentRecovery::wasModifiedSinceLastSave, superseded the previous E_MODIFIED_SINCE_LAST_AUTOSAVE flag. XDocumentRecovery::wasModifiedSinceLastSave has been implemented for SfxBaseModel, yielding the same behavior as before. It has also been implemented for database documents, where the implementation is somewhat "sloppy", in that it returns always <TRUE/> when any of the opened sub components of the document is modified.
Diffstat (limited to 'framework/inc/services/autorecovery.hxx')
-rw-r--r--framework/inc/services/autorecovery.hxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/framework/inc/services/autorecovery.hxx b/framework/inc/services/autorecovery.hxx
index 9439d960e3cf..86cf09252a34 100644
--- a/framework/inc/services/autorecovery.hxx
+++ b/framework/inc/services/autorecovery.hxx
@@ -170,12 +170,6 @@ class AutoRecovery : public css::lang::XTypeProvider
E_UNKNOWN = 0,
/// modified against the original file
E_MODIFIED = 1,
- /** We differ between the states: "modified in general" and "modified after last AutoSave".
- The first state will be interesting in case the crashed document will be restored. Then we have
- set the right modify state after loading the document. But the second state let us optimize the
- AutoSave itself. see member ListenForModify too ...
- */
- E_MODIFIED_SINCE_LAST_AUTOSAVE = 1024,
/// an active document can be postponed to be saved later.
E_POSTPONED = 2,
/// was already handled during one AutoSave/Recovery session.