diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2009-02-06 12:48:00 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2009-02-06 12:48:00 +0000 |
commit | 2413df68be6cd44374da1a3afcfa6a2d36e4ba4b (patch) | |
tree | 2d750aa6fa2bdebb474372db7adcbce37e03abf8 /sfx2 | |
parent | a84100fa29d2079ece27124ea9ea3ca06cf94023 (diff) |
reverting the last commit, it was not intended for the trunk
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 4d1203d9bdba..477720a960e7 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -1188,7 +1188,7 @@ sal_Bool SfxMedium::LockOrigFileOnDemand( sal_Bool bLoading, sal_Bool bNoUI ) } // TODO/LATER: This implementation does not allow to detect the system lock on saving here, actually this is no big problem - if ( bLoading && bUseSystemLock && !pImp->xStream.is() && !pOutStream ) + if ( bUseSystemLock && !pImp->xStream.is() && !pOutStream ) pImp->m_bHandleSysLocked = sal_True; // if system lock is used the writeable stream should be available do diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 130f41108ff8..95640642f565 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -1304,7 +1304,7 @@ sal_uInt16 SfxObjectShell::ImplGetSignatureState( sal_Bool bScriptingContent ) { *pState = SIGNATURESTATE_NOSIGNATURES; - if ( GetMedium() && GetMedium()->GetName().Len() && IsOwnStorageFormat_Impl( *GetMedium()) && GetMedium()->GetStorage().is() ) + if ( GetMedium() && GetMedium()->GetName().Len() && GetMedium()->GetStorage().is() && IsOwnStorageFormat_Impl( *GetMedium()) ) { try { diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 5ec198c302cf..dff75d14d459 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -1317,14 +1317,16 @@ sal_Bool SfxObjectShell::SaveTo_Impl else { // This is SaveAs or export action, prepare the target medium - // the alien filters still might write directly to the file, that is of course a bug, - // but for now the framework has to be ready for it - // TODO/LATER: let the medium be prepared for alien formats as well rMedium.CloseAndRelease(); if ( bStorageBasedTarget ) { rMedium.GetOutputStorage(); } + else + { + rMedium.CreateTempFileNoCopy(); + rMedium.GetOutStream(); + } } // TODO/LATER: error handling |