summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2009-02-06 12:31:46 +0000
committerMikhail Voitenko <mav@openoffice.org>2009-02-06 12:31:46 +0000
commit06d41ee722bd5e5902a1f5fda7699db676eeefc4 (patch)
treec1474eaf99736f137bdbc7a5a444dab543ff316e /sfx2
parentc50b19180f474cc13dcf07a1efe7a5393c575efc (diff)
#i98240# commit the patch
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx2
-rw-r--r--sfx2/source/doc/objserv.cxx2
-rw-r--r--sfx2/source/doc/objstor.cxx8
3 files changed, 5 insertions, 7 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index cfbcb87f75..53de148919 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 ( bUseSystemLock && !pImp->xStream.is() && !pOutStream )
+ if ( bLoading && 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 8881ce5bf5..4dbada3f80 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() && GetMedium()->GetStorage().is() && IsOwnStorageFormat_Impl( *GetMedium()) )
+ if ( GetMedium() && GetMedium()->GetName().Len() && IsOwnStorageFormat_Impl( *GetMedium()) && GetMedium()->GetStorage().is() )
{
try
{
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 2b6222b189..5ec9580185 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -1317,16 +1317,14 @@ 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