diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-01-28 22:19:50 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-01-28 22:19:50 +0100 |
commit | 760fde3a707688c8803c4b5b69a1c117124654a1 (patch) | |
tree | d471db89614f7462b0d1bf66a4685f16c921e395 /offapi/com/sun/star/document | |
parent | bb091275da4ed1b2b6c0184ee9a2cf14e8d0df48 (diff) |
autorecovery: move the responsibility for calling attachResource into recoverFromFile. This saves us from some problems with SFX-based documents, which change there Args during the load process (during macro confirmation), so a later attachResource from outside would overwrite those changed args
Diffstat (limited to 'offapi/com/sun/star/document')
-rw-r--r-- | offapi/com/sun/star/document/XDocumentRecovery.idl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/offapi/com/sun/star/document/XDocumentRecovery.idl b/offapi/com/sun/star/document/XDocumentRecovery.idl index 1e9113201476..bed764957296 100644 --- a/offapi/com/sun/star/document/XDocumentRecovery.idl +++ b/offapi/com/sun/star/document/XDocumentRecovery.idl @@ -82,14 +82,19 @@ interface XDocumentRecovery ::com::sun::star::lang::WrappedTargetException ); - /** recovers the document after a previous emergency save. + /** recovers the document after a previous emergency or session save. <p>The document itself has previously been created, but <em>not</em> loaded (via <member scope="com::sun::star::frame">XLoadable::load</member>) or initialized (via <member scope="com::sun::star::frame">XLoadable::initNew</member>).</p> + <p>Upon successful return, the document must be fully initialized. In particular, the + caller is not responsible for calling <member scope="com::sun::star::frame">XModel::attachResource</member>. + Instead, the implementation is responsible to do so, if required.</p> + <p>A default implementation of this method could simply delegate this call to - <member scope="::com::sun::star::frame:">XLodable::load</member>.</p> + <member scope="::com::sun::star::frame:">XLodable::load</member>, followed by + <member scope="com::sun::star::frame">XModel::attachResource</member>.</p> @param SourceLocation specifies the URL of the location to which the document was previously emergency-saved. |