User: obo     
Date: 06/03/27 01:27:51

Modified:
 /dba/dbaccess/source/ui/app/
  AppControllerGen.cxx

Log:
 INTEGRATION: CWS fwk36 (1.15.76); FILE MERGED
 2006/03/20 12:47:11 cd 1.15.76.1: #i46895# Change database code to uses same 
implementation as other modules for 'Send document as e-Mail'

File Changes:

Directory: /dba/dbaccess/source/ui/app/
=======================================

File [changed]: AppControllerGen.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppControllerGen.cxx?r1=1.15&r2=1.16
Delta lines:  +5 -3
-------------------
--- AppControllerGen.cxx        24 Oct 2005 08:30:44 -0000      1.15
+++ AppControllerGen.cxx        27 Mar 2006 09:27:49 -0000      1.16
@@ -635,16 +635,18 @@
        {
                ::std::vector< ::std::pair< ::rtl::OUString ,Reference< XModel 
> > >::iterator aIter = aCompoments.begin();
                ::std::vector< ::std::pair< ::rtl::OUString ,Reference< XModel 
> > >::iterator aEnd = aCompoments.end();
-               SfxMailModel aSendMail(m_xCurrentFrame);
+        ::rtl::OUString aDocTypeString;
+        SfxMailModel aSendMail;
                SfxMailModel::SendMailResult eResult = 
SfxMailModel::SEND_MAIL_OK;
                for (; aIter != aEnd && SfxMailModel::SEND_MAIL_OK == eResult; 
++aIter)
                {
                        Reference< XModel > xModel(aIter->second,UNO_QUERY);
 
-                       eResult = 
aSendMail.AttachDocument(SfxMailModel::TYPE_SELF,xModel,aIter->first);
+            // Send document as e-Mail using stored/default type
+            eResult = 
aSendMail.AttachDocument(aDocTypeString,xModel,aIter->first);
                }
                if ( !aSendMail.IsEmpty() )
-                       aSendMail.Send();
+                       aSendMail.Send( m_xCurrentFrame );
        }
 }
 // 
-----------------------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to