LCOV - code coverage report
Current view: top level - sw/source/ui/dbui - mmoutputpage.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef INCLUDED_SW_SOURCE_UI_DBUI_MMOUTPUTPAGE_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_DBUI_MMOUTPUTPAGE_HXX
      21             : #include <svtools/wizardmachine.hxx>
      22             : #include <vcl/button.hxx>
      23             : #include <vcl/layout.hxx>
      24             : #include <svtools/stdctrl.hxx>
      25             : #include <vcl/combobox.hxx>
      26             : #include <vcl/field.hxx>
      27             : #include <vcl/lstbox.hxx>
      28             : #include <vcl/prgsbar.hxx>
      29             : #include <sfx2/objsh.hxx>
      30             : #include <sfx2/basedlgs.hxx>
      31             : #include <svtools/svtabbx.hxx>
      32             : #include <svtools/headbar.hxx>
      33             : #include "swdllapi.h"
      34             : #include "mailmergehelper.hxx"
      35             : 
      36             : class SwMailMergeWizard;
      37             : class SfxPrinter;
      38             : class SwSendMailDialog;
      39             : 
      40             : namespace com{ namespace sun{ namespace star{
      41             :     namespace mail{
      42             :         class XMailMessage;
      43             :     }
      44             : }}}
      45             : 
      46             : class SwMailMergeOutputPage : public svt::OWizardPage
      47             : {
      48             :     RadioButton*    m_pSaveStartDocRB;
      49             :     RadioButton*    m_pSaveMergedDocRB;
      50             :     RadioButton*    m_pPrintRB;
      51             :     RadioButton*    m_pSendMailRB;
      52             : 
      53             :     VclFrame*       m_pSeparator;
      54             : 
      55             :     PushButton*     m_pSaveStartDocPB;
      56             : 
      57             :     RadioButton*    m_pSaveAsOneRB;
      58             :     RadioButton*    m_pSaveIndividualRB;
      59             :     RadioButton*    m_pPrintAllRB; //has to be here for tab control reasons
      60             :     RadioButton*    m_pSendAllRB;  //has to be here for tab control reasons
      61             :     //this group is used in save and print
      62             :     RadioButton*    m_pFromRB;
      63             :     NumericField*   m_pFromNF;
      64             :     FixedText*      m_pToFT;
      65             :     NumericField*   m_pToNF;
      66             :     PushButton*     m_pSaveNowPB;
      67             : 
      68             :     FixedText*      m_pPrinterFT;
      69             :     ListBox*        m_pPrinterLB;
      70             :     PushButton*     m_pPrinterSettingsPB;
      71             :     PushButton*     m_pPrintNowPB;
      72             : 
      73             :     FixedText*      m_pMailToFT;
      74             :     ListBox*        m_pMailToLB;
      75             :     PushButton*     m_pCopyToPB;
      76             :     FixedText*      m_pSubjectFT;
      77             :     Edit*           m_pSubjectED;
      78             :     FixedText*      m_pSendAsFT;
      79             :     ListBox*        m_pSendAsLB;
      80             :     VclContainer*   m_pAttachmentGroup;
      81             :     Edit*           m_pAttachmentED;
      82             :     PushButton*     m_pSendAsPB;
      83             :     PushButton*     m_pSendDocumentsPB;
      84             : 
      85             :     //some FixedLine labels
      86             :     OUString        m_sSaveStartST;
      87             :     OUString        m_sSaveMergedST;
      88             :     OUString        m_sPrintST;
      89             :     OUString        m_sSendMailST;
      90             : 
      91             :     //misc strings
      92             :     OUString        m_sDefaultAttachmentST;
      93             :     OUString        m_sNoSubjectST;
      94             :     OUString        m_sConfigureMail;
      95             : 
      96             :     OUString        m_sBody;
      97             : 
      98             :     bool            m_bCancelSaving;
      99             : 
     100             :     SwMailMergeWizard*  m_pWizard;
     101             : 
     102             :     //some dialog data
     103             :     Printer*        m_pTempPrinter;
     104             :     OUString        m_sCC;
     105             :     OUString        m_sBCC;
     106             : 
     107             :     DECL_LINK(OutputTypeHdl_Impl, RadioButton*);
     108             :     DECL_LINK(CopyToHdl_Impl, PushButton*);
     109             :     DECL_LINK(SaveStartHdl_Impl, PushButton* );
     110             :     DECL_LINK(SaveOutputHdl_Impl, PushButton* );
     111             :     DECL_LINK(PrinterChangeHdl_Impl, ListBox* );
     112             :     DECL_LINK(PrintHdl_Impl, void *);
     113             :     DECL_LINK(PrinterSetupHdl_Impl, PushButton* );
     114             :     DECL_LINK(SendTypeHdl_Impl, ListBox*);
     115             :     DECL_LINK(SendAsHdl_Impl, PushButton*);
     116             :     DECL_LINK(SendDocumentsHdl_Impl, PushButton*);
     117             :     DECL_LINK(DocumentSelectionHdl_Impl, RadioButton*);
     118             :     DECL_LINK(SaveCancelHdl_Impl, void *);
     119             : protected:
     120             :         virtual bool    canAdvance() const SAL_OVERRIDE;
     121             :         virtual void    ActivatePage() SAL_OVERRIDE;
     122             : public:
     123             :         SwMailMergeOutputPage( SwMailMergeWizard* _pParent);
     124             :         virtual ~SwMailMergeOutputPage();
     125             : 
     126             : };
     127             : 
     128           0 : struct SwMailDescriptor
     129             : {
     130             :     OUString                             sEMail;
     131             :     OUString                             sAttachmentURL;
     132             :     OUString                             sAttachmentName;
     133             :     OUString                             sMimeType;
     134             :     OUString                             sSubject;
     135             :     OUString                             sBodyMimeType;
     136             :     OUString                             sBodyContent;
     137             : 
     138             :     OUString                             sCC;
     139             :     OUString                             sBCC;
     140             : };
     141             : struct SwSendMailDialog_Impl;
     142             : class SwMailMergeConfigItem;
     143             : class SW_DLLPUBLIC SwSendMailDialog : public ModelessDialog //SfxModalDialog
     144             : {
     145             :     FixedLine               m_aStatusFL;
     146             :     FixedText               m_aStatusFT;
     147             : 
     148             :     FixedLine               m_aTransferStatusFL;
     149             :     FixedText               m_aTransferStatusFT;
     150             :     FixedInfo               m_PausedFI;
     151             :     ProgressBar             m_aProgressBar;
     152             :     FixedText               m_aErrorStatusFT;
     153             : 
     154             :     PushButton              m_aDetailsPB;
     155             :     HeaderBar               m_aStatusHB;
     156             :     SvTabListBox            m_aStatusLB;
     157             : 
     158             :     FixedLine               m_aSeparatorFL;
     159             : 
     160             :     PushButton              m_aStopPB;
     161             :     PushButton              m_aClosePB;
     162             : 
     163             :     OUString                m_sMore;
     164             :     OUString                m_sLess;
     165             :     OUString                m_sContinue;
     166             :     OUString                m_sStop;
     167             :     OUString                m_sSend;
     168             :     OUString                m_sTransferStatus;
     169             :     OUString                m_sErrorStatus;
     170             :     OUString                m_sSendingTo;
     171             :     OUString                m_sCompleted;
     172             :     OUString                m_sFailed;
     173             :     OUString                m_sTerminateQuery;
     174             : 
     175             :     bool                    m_bCancel;
     176             :     bool                    m_bDesctructionEnabled;
     177             : 
     178             :     ImageList               m_aImageList;
     179             : 
     180             :     SwSendMailDialog_Impl*  m_pImpl;
     181             :     SwMailMergeConfigItem*  m_pConfigItem;
     182             :     sal_Int32               m_nStatusHeight;
     183             :     sal_Int32               m_nSendCount;
     184             :     sal_Int32               m_nErrorCount;
     185             : 
     186             :     SAL_DLLPRIVATE DECL_LINK( DetailsHdl_Impl, void* );
     187             :     SAL_DLLPRIVATE DECL_LINK( StopHdl_Impl, PushButton* );
     188             :     SAL_DLLPRIVATE DECL_LINK( CloseHdl_Impl, void* );
     189             :     SAL_DLLPRIVATE DECL_STATIC_LINK( SwSendMailDialog, StartSendMails, SwSendMailDialog* );
     190             :     SAL_DLLPRIVATE DECL_STATIC_LINK( SwSendMailDialog, StopSendMails, SwSendMailDialog* );
     191             :     SAL_DLLPRIVATE DECL_STATIC_LINK( SwSendMailDialog, RemoveThis, Timer* );
     192             : 
     193             :     SAL_DLLPRIVATE void        IterateMails();
     194             :     SAL_DLLPRIVATE void        SendMails();
     195             :     SAL_DLLPRIVATE void        UpdateTransferStatus();
     196             : 
     197             :     virtual void        StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE;
     198             : 
     199             : public:
     200             :     SwSendMailDialog( Window* pParent, SwMailMergeConfigItem& );
     201             :     virtual ~SwSendMailDialog();
     202             : 
     203             :     void                AddDocument( SwMailDescriptor& rDesc );
     204             :     void                SetDocumentCount( sal_Int32 nAllDocuments );
     205           0 :     void                EnableDesctruction() {m_bDesctructionEnabled = true;}
     206             :     void                ShowDialog();
     207             : 
     208             :     void                DocumentSent( ::com::sun::star::uno::Reference< ::com::sun::star::mail::XMailMessage>,
     209             :                                         bool bResult,
     210             :                                         const OUString* pError );
     211             :     void                AllMailsSent();
     212             : 
     213             : };
     214             : #endif
     215             : 
     216             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10