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
commita84100fa29d2079ece27124ea9ea3ca06cf94023 (patch)
tree21a3fb17cf895ee9406eaf14dc7f0c679907a60b /sfx2
parent426ab2c0e8f6e3fe2b766f74f6b8da873d860260 (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 477720a960e7..4d1203d9bdba 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 95640642f565..130f41108ff8 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 dff75d14d459..5ec198c302cf 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