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
commit7fe429b75caa35d575fab43fa494e5bfd113ce98 (patch)
tree11df13ea6b4247d89a34037328af29b344a852a0 /basctl
parent68f1e1481298d7b5a8082639c3007e6604d39ba7 (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 f81e278c5..a7392397b 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()