LCOV - code coverage report
Current view: top level - sw/source/core/uibase/inc - mailmrge.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 13 0.0 %
Date: 2014-04-11 Functions: 0 13 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_INC_MAILMRGE_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_INC_MAILMRGE_HXX
      21             : 
      22             : #include <svx/stddlg.hxx>
      23             : 
      24             : #include <vcl/button.hxx>
      25             : 
      26             : #include <vcl/field.hxx>
      27             : 
      28             : #include <vcl/fixed.hxx>
      29             : #include <vcl/edit.hxx>
      30             : #include <svtools/stdctrl.hxx>
      31             : 
      32             : #include <vcl/lstbox.hxx>
      33             : #include <com/sun/star/uno/Sequence.h>
      34             : #include <com/sun/star/uno/Reference.h>
      35             : 
      36             : class SwWrtShell;
      37             : class SwModuleOptions;
      38             : class SwXSelChgLstnr_Impl;
      39             : struct SwMailMergeDlg_Impl;
      40             : namespace com{namespace sun{namespace star{
      41             :     namespace frame{
      42             :         class XFrame2;
      43             :     }
      44             :     namespace sdbc{
      45             :         class XResultSet;
      46             :         class XConnection;
      47             :     }
      48             : }}}
      49             : 
      50             : class SwMailMergeDlg : public SvxStandardDialog
      51             : {
      52             :     friend class SwXSelChgLstnr_Impl;
      53             : 
      54             :     Window*         pBeamerWin;
      55             : 
      56             :     RadioButton     aAllRB;
      57             :     RadioButton     aMarkedRB;
      58             :     RadioButton     aFromRB;
      59             :     NumericField    aFromNF;
      60             :     FixedText       aBisFT;
      61             :     NumericField    aToNF;
      62             :     FixedLine       aRecordFL;
      63             : 
      64             :     FixedLine       aSeparatorFL;
      65             : 
      66             :     RadioButton     aPrinterRB;
      67             :     RadioButton     aMailingRB;
      68             :     RadioButton     aFileRB;
      69             : 
      70             :     CheckBox        aSingleJobsCB;
      71             : 
      72             :     FixedLine       aSaveMergedDocumentFL;
      73             :     RadioButton     aSaveSingleDocRB;
      74             :     RadioButton     aSaveIndividualRB;
      75             : 
      76             :     CheckBox        aGenerateFromDataBaseCB;
      77             : 
      78             :     FixedText       aColumnFT;
      79             :     ListBox         aColumnLB;
      80             :     FixedText       aPathFT;
      81             :     Edit            aPathED;
      82             :     PushButton      aPathPB;
      83             :     FixedText       aFilterFT;
      84             :     ListBox         aFilterLB;
      85             : 
      86             :     ListBox         aAddressFldLB;
      87             :     FixedText       aSubjectFT;
      88             :     Edit            aSubjectED;
      89             :     FixedText       aFormatFT;
      90             :     FixedText       aAttachFT;
      91             :     Edit            aAttachED;
      92             :     PushButton      aAttachPB;
      93             :     CheckBox        aFormatHtmlCB;
      94             :     CheckBox        aFormatRtfCB;
      95             :     CheckBox        aFormatSwCB;
      96             :     FixedLine       aDestFL;
      97             : 
      98             :     FixedLine       aBottomSeparatorFL;
      99             : 
     100             :     OKButton        aOkBTN;
     101             :     CancelButton    aCancelBTN;
     102             :     HelpButton      aHelpBTN;
     103             : 
     104             :     SwMailMergeDlg_Impl* pImpl;
     105             : 
     106             :     SwWrtShell&     rSh;
     107             :     SwModuleOptions* pModOpt;
     108             : 
     109             :     sal_uInt16          nMergeType;
     110             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >       m_aSelection;
     111             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame2 > m_xFrame;
     112             : 
     113             :     Size            m_aDialogSize;
     114             :     OUString m_sSaveFilter;
     115             : 
     116             :     DECL_LINK( ButtonHdl, Button* pBtn );
     117             :     DECL_LINK(InsertPathHdl, void *);
     118             :     DECL_LINK( OutputTypeHdl, RadioButton* pBtn );
     119             :     DECL_LINK( FilenameHdl, CheckBox* pBtn );
     120             :     DECL_LINK(ModifyHdl, void *);
     121             :     DECL_LINK( SaveTypeHdl, RadioButton* pBtn );
     122             : 
     123             :     virtual void    Apply() SAL_OVERRIDE;
     124             :     virtual void    Resize() SAL_OVERRIDE;
     125             :     bool            ExecQryShell();
     126             : 
     127             : public:
     128             :      SwMailMergeDlg(Window* pParent, SwWrtShell& rSh,
     129             :          const OUString& rSourceName,
     130             :         const OUString& rTblName,
     131             :         sal_Int32 nCommandType,
     132             :         const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& xConnection,
     133             :         ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >* pSelection = 0);
     134             :     virtual ~SwMailMergeDlg();
     135             : 
     136           0 :     inline sal_uInt16   GetMergeType() { return nMergeType; }
     137             : 
     138           0 :     bool IsSaveIndividualDocs() const { return aSaveIndividualRB.IsChecked(); }
     139           0 :     bool IsGenerateFromDataBase() const { return aGenerateFromDataBaseCB.IsChecked(); }
     140           0 :     OUString GetColumnName() const { return aColumnLB.GetSelectEntry();}
     141           0 :     OUString GetPath() const { return aPathED.GetText();}
     142             : 
     143           0 :     const OUString& GetSaveFilter() const {return m_sSaveFilter;}
     144           0 :     inline const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > GetSelection() const { return m_aSelection; }
     145             :     ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> GetResultSet() const;
     146             : 
     147             : };
     148             : 
     149           0 : class SwMailMergeCreateFromDlg : public ModalDialog
     150             : {
     151             :     RadioButton* m_pThisDocRB;
     152             : public:
     153             :     SwMailMergeCreateFromDlg(Window* pParent);
     154           0 :     bool IsThisDocument() const
     155             :     {
     156           0 :         return m_pThisDocRB->IsChecked();
     157             :     }
     158             : };
     159             : 
     160           0 : class SwMailMergeFieldConnectionsDlg : public ModalDialog
     161             : {
     162             :     RadioButton* m_pUseExistingRB;
     163             : public:
     164             :     SwMailMergeFieldConnectionsDlg(Window* pParent);
     165           0 :     bool IsUseExistingConnections() const
     166             :     {
     167           0 :         return m_pUseExistingRB->IsChecked();
     168             :     }
     169             : };
     170             : 
     171             : #endif
     172             : 
     173             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10