diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-03-27 08:36:13 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-03-27 08:36:13 +0000 |
commit | 9b6e1d7233ea4d17ae440b1023dd13b4e7a66c10 (patch) | |
tree | 1cbdf6cf9046dbf0ec6f00493effa69f9953c8ce /sfx2 | |
parent | 2f9a82267a5bacd13248da083ae082c16096601f (diff) |
INTEGRATION: CWS fwk36 (1.176.48); FILE MERGED
2006/03/16 12:58:48 mav 1.176.48.1: #i46895# allow to create a copy of the document if possible
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 13a9f366a34e..a17ae6b47484 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -4,9 +4,9 @@ * * $RCSfile: objstor.cxx,v $ * - * $Revision: 1.177 $ + * $Revision: 1.178 $ * - * last change: $Author: obo $ $Date: 2006-03-24 13:16:49 $ + * last change: $Author: obo $ $Date: 2006-03-27 09:36:13 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -2578,6 +2578,14 @@ sal_Bool SfxObjectShell::CommonSaveAs_Impl return sal_False; } + SFX_ITEMSET_ARG( aParams, pCopyStreamItem, SfxBoolItem, SID_COPY_STREAM_IF_POSSIBLE, sal_False ); + if ( bSaveTo && pCopyStreamItem && pCopyStreamItem->GetValue() && !IsModified() ) + { + if ( pMedium->TryDirectTransfer( aURL.GetMainURL( INetURLObject::NO_DECODE ), *aParams ) ) + return sal_True; + } + aParams->ClearItem( SID_COPY_STREAM_IF_POSSIBLE ); + pImp->bPasswd = aParams && SFX_ITEM_SET == aParams->GetItemState(SID_PASSWORD); SfxMedium *pActMed = GetMedium(); |