diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-10-22 07:14:19 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-10-22 07:14:19 +0000 |
commit | 6a7dbb51b2025fec30f3b2247caf05f08d97c033 (patch) | |
tree | 2570ab85420a9bd792af2de417a27145765ad0a4 /shell | |
parent | 52311a08dc1f12fafc24bd3aef5a0711890eec5c (diff) |
INTEGRATION: CWS shellfix01 (1.3.30); FILE MERGED
2004/09/14 07:06:16 obr 1.3.30.1: #i30170# attachments now passed as system paths
Diffstat (limited to 'shell')
-rwxr-xr-x | shell/source/cmdmail/cmdmailmsg.cxx | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/shell/source/cmdmail/cmdmailmsg.cxx b/shell/source/cmdmail/cmdmailmsg.cxx index aa3bff1b70ac..56fcd209e1be 100755 --- a/shell/source/cmdmail/cmdmailmsg.cxx +++ b/shell/source/cmdmail/cmdmailmsg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cmdmailmsg.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2004-06-17 11:34:14 $ + * last change: $Author: rt $ $Date: 2004-10-22 08:14:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -221,29 +221,6 @@ void SAL_CALL CmdMailMsg::setAttachement( const Sequence< ::rtl::OUString >& aAt { MutexGuard aGuard( m_aMutex ); m_Attachments = aAttachment; - sal_Int32 n = m_Attachments.getLength(); - if (n > 0) { - Reference< com::sun::star::uri::XExternalUriReferenceTranslator > - translator( - com::sun::star::uri::ExternalUriReferenceTranslator::create( - m_xContext)); - for (sal_Int32 i = 0; i < n; ++i) { - OUString external( - translator->translateToExternal(m_Attachments[i])); - if (external.getLength() == 0 - && m_Attachments[i].getLength() != 0) - { - throw RuntimeException( - (OUString( - RTL_CONSTASCII_USTRINGPARAM( - "Cannot translate URI reference to external" - " format: ")) - + m_Attachments[i]), - static_cast< cppu::OWeakObject * >(this)); - } - m_Attachments[i] = external; - } - } } //------------------------------------------------ |