diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-01-12 23:32:12 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-01-12 23:32:12 +0100 |
commit | 5f2428d39fcb746c8aee3ca0b06dcfae8849fa3b (patch) | |
tree | 276d9333da50b2204d5d09c9246d2ef23eb3eec9 /starmath | |
parent | 93857a0ec92ee511c0ddce90004cd40e338a93f5 (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 'starmath')
-rw-r--r-- | starmath/source/document.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 519c53984e86..caf58f3cae69 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -704,9 +704,7 @@ SmDocShell::SmDocShell( const sal_uInt64 i_nSfxCreationFlags ) : StartListening(aFormat); StartListening(*pp->GetConfig()); - SetModel( new SmModel(this) ); //! das hier mit new erzeugte Model brauch - //! im Destruktor nicht explizit geloescht werden. - //! Dies erledigt das Sfx. + SetBaseModel( new SmModel(this) ); } |