Tag: cws_src680_fwk36
User: cd      
Date: 06/03/20 04:47:14

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

Log:
 #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]: AppController.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppController.cxx?r1=1.26&r2=1.26.30.1
Delta lines:  +6 -6
-------------------
--- AppController.cxx   31 Jan 2006 18:40:35 -0000      1.26
+++ AppController.cxx   20 Mar 2006 12:47:10 -0000      1.26.30.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: AppController.cxx,v $
  *
- *  $Revision: 1.26 $
+ *  $Revision: 1.26.30.1 $
  *
- *  last change: $Author: kz $ $Date: 2006/01/31 18:40:35 $
+ *  last change: $Author: cd $ $Date: 2006/03/20 12:47:10 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -1278,9 +1278,9 @@
                                break;
                        case SID_MAIL_SENDDOC:
                                {
-                                       SfxMailModel aSendMail(m_xCurrentFrame);
-                                       if ( 
aSendMail.AttachDocument(SfxMailModel::TYPE_SELF,getModel()) == 
SfxMailModel::SEND_MAIL_OK )
-                                               aSendMail.Send();
+                                       SfxMailModel aSendMail;
+                    if ( aSendMail.AttachDocument(rtl::OUString(),getModel(), 
rtl::OUString()) == SfxMailModel::SEND_MAIL_OK )
+                                               aSendMail.Send(m_xCurrentFrame);
                                }
                                break;
                        case SID_DB_APP_SENDREPORTASMAIL:

File [changed]: AppControllerGen.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppControllerGen.cxx?r1=1.15&r2=1.15.76.1
Delta lines:  +8 -6
-------------------
--- AppControllerGen.cxx        24 Oct 2005 08:30:44 -0000      1.15
+++ AppControllerGen.cxx        20 Mar 2006 12:47:11 -0000      1.15.76.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: AppControllerGen.cxx,v $
  *
- *  $Revision: 1.15 $
+ *  $Revision: 1.15.76.1 $
  *
- *  last change: $Author: rt $ $Date: 2005/10/24 08:30:44 $
+ *  last change: $Author: cd $ $Date: 2006/03/20 12:47:11 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -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