diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-03-21 13:14:55 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-03-21 13:14:55 +0000 |
commit | b41ad042cccfffbd9e20bc3f2e2e436793ad09cf (patch) | |
tree | 57cbdaa6f9143914e67da905e2791e33ab5fc228 | |
parent | e5bb2614e651c5b184f6a0b04434979dc828672b (diff) |
INTEGRATION: CWS fwkpostbeta1 (1.29.2); FILE MERGED
2005/02/09 12:44:12 cd 1.29.2.2: #i40372# Call SID_MAIL_PREPAREEXPORT&SID_MAIL_EXPORT_FINISHED on non-signed documents
2005/01/28 14:34:28 cd 1.29.2.1: #i40372# Make a copy of the storage do when the doc is not modified and has a name to preserve digital signature
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 44 |
1 files changed, 2 insertions, 42 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 4814f7680a02..65d16b288788 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -2,9 +2,9 @@ * * $RCSfile: mailmodel.cxx,v $ * - * $Revision: 1.32 $ + * $Revision: 1.33 $ * - * last change: $Author: kz $ $Date: 2005-03-21 14:09:23 $ + * last change: $Author: kz $ $Date: 2005-03-21 14:14:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -320,46 +320,7 @@ SfxMailModel_Impl::SaveResult SfxMailModel_Impl::SaveDocument( String& rFileName delete pExt; rFileName = aTempFile.GetURL(); - // save document to temp file - SfxStringItem aFileName( SID_FILE_NAME, rFileName ); - SfxBoolItem aPicklist( SID_PICKLIST, FALSE ); - SfxBoolItem aSaveTo( SID_SAVETO, TRUE ); - - SfxStringItem* pFilterName = NULL; - if ( pFilter && bHasFilter ) - pFilterName = new SfxStringItem( SID_FILTER_NAME, pFilter->GetFilterName() ); - - SfxStringItem* pPassItem = NULL; - String aPasswd; - if ( GetPasswd_Impl( xDocShell->GetMedium()->GetItemSet(), aPasswd ) ) - pPassItem = new SfxStringItem( SID_PASSWORD, aPasswd ); - - const SfxBoolItem *pRet = (const SfxBoolItem*)pDisp->Execute( SID_SAVEASDOC, SFX_CALLMODE_SYNCHRON, &aFileName, &aPicklist, &aSaveTo, - pFilterName ? pFilterName : pPassItem, - pFilterName ? pPassItem : 0L, 0L ); - - // #i30432# notify that export is finished - the Writer may want to restore removed content - pDisp->Execute( SID_MAIL_EXPORT_FINISHED, SFX_CALLMODE_SYNCHRON ); - BOOL bRet = pRet ? pRet->GetValue() : FALSE; - - delete pFilterName; - if ( pFilter ) - { - // detect content type and expand with the file name - rType = pFilter->GetMimeType(); - rType += DEFINE_CONST_UNICODE("; name =\""); - INetURLObject aFileObj = xDocShell->GetMedium()->GetURLObject(); - rType += String(aFileObj.getName( INetURLObject::LAST_SEGMENT, - true, INetURLObject::DECODE_WITH_CHARSET )); - rType += '\"'; - } - // restore old settings - if ( !bModified && xDocShell->IsEnableSetModified() ) - xDocShell->SetModified( FALSE ); - eRet = bRet ? SAVE_SUCCESSFULL : SAVE_ERROR; - } -======= if ( bModified || !xDocShell->HasName() ) { // prepare for mail export @@ -456,7 +417,6 @@ SfxMailModel_Impl::SaveResult SfxMailModel_Impl::SaveDocument( String& rFileName } } } ->>>>>>> 1.29.2.2 return eRet; } |