summaryrefslogtreecommitdiff
path: root/basctl
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
commit923e15dd7d61770613e0d7c5c2a15695c95b606c (patch)
tree62ea91e39275cbbdef232057b602ee0de04d198e /basctl
parent5a86dd4ef5d2241b2ed179c490d8d62b4817b373 (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 'basctl')
-rw-r--r--basctl/source/basicide/basdoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/basdoc.cxx b/basctl/source/basicide/basdoc.cxx
index ac7af7de25a4..5de3dd712bd7 100644
--- a/basctl/source/basicide/basdoc.cxx
+++ b/basctl/source/basicide/basdoc.cxx
@@ -66,7 +66,7 @@ BasicDocShell::BasicDocShell()
{
pPrinter = 0;
SetPool( &SFX_APP()->GetPool() );
- SetModel( new SIDEModel(this) );
+ SetBaseModel( new SIDEModel(this) );
}
__EXPORT BasicDocShell::~BasicDocShell()