LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/inc - mailmrge.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 9 0.0 %
Date: 2012-12-27 Functions: 0 9 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 _MAILMRGE_HXX
      20             : #define _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 XFrame;
      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             :     const String&   rDBName;
     109             :     const String&   rTableName;
     110             : 
     111             :     sal_uInt16          nMergeType;
     112             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >       m_aSelection;
     113             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > xFrame;
     114             : 
     115             :     Size            m_aDialogSize;
     116             :     ::rtl::OUString m_sSaveFilter;
     117             : 
     118             : 
     119             :     DECL_LINK( ButtonHdl, Button* pBtn );
     120             :     DECL_LINK(InsertPathHdl, void *);
     121             :     DECL_LINK(AttachFileHdl, void *);
     122             :     DECL_LINK( OutputTypeHdl, RadioButton* pBtn );
     123             :     DECL_LINK( FilenameHdl, CheckBox* pBtn );
     124             :     DECL_LINK(ModifyHdl, void *);
     125             :     DECL_LINK( SaveTypeHdl, RadioButton* pBtn );
     126             : 
     127             :     virtual void    Apply();
     128             :     virtual void    Resize();
     129             :     bool            ExecQryShell();
     130             : 
     131             : public:
     132             :      SwMailMergeDlg(Window* pParent, SwWrtShell& rSh,
     133             :          const String& rSourceName,
     134             :         const String& rTblName,
     135             :         sal_Int32 nCommandType,
     136             :         const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& xConnection,
     137             :         ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >* pSelection = 0);
     138             :     ~SwMailMergeDlg();
     139             : 
     140           0 :     inline sal_uInt16   GetMergeType() { return nMergeType; }
     141             : 
     142           0 :     bool IsSaveIndividualDocs() const { return aSaveIndividualRB.IsChecked(); }
     143           0 :     bool IsGenerateFromDataBase() const { return aGenerateFromDataBaseCB.IsChecked(); }
     144           0 :     String GetColumnName() const { return aColumnLB.GetSelectEntry();}
     145           0 :     String GetPath() const { return aPathED.GetText();}
     146             : 
     147           0 :     const ::rtl::OUString& GetSaveFilter() const {return m_sSaveFilter;}
     148           0 :     inline const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > GetSelection() const { return m_aSelection; }
     149             :     ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> GetResultSet() const;
     150             : 
     151             : };
     152             : 
     153             : class SwMailMergeCreateFromDlg : public ModalDialog
     154             : {
     155             :     FixedLine       aCreateFromFL;
     156             :     RadioButton     aThisDocRB;
     157             :     RadioButton     aUseTemplateRB;
     158             : 
     159             :     OKButton        aOK;
     160             :     CancelButton    aCancel;
     161             :     HelpButton      aHelp;
     162             : public:
     163             :     SwMailMergeCreateFromDlg(Window* pParent);
     164             :     ~SwMailMergeCreateFromDlg();
     165             : 
     166           0 :     sal_Bool    IsThisDocument() const {return aThisDocRB.IsChecked();}
     167             : };
     168             : 
     169             : class SwMailMergeFieldConnectionsDlg : public ModalDialog
     170             : {
     171             :     FixedLine       aConnectionsFL;
     172             :     RadioButton     aUseExistingRB;
     173             :     RadioButton     aCreateNewRB;
     174             : 
     175             :     FixedInfo       aInfoFI;
     176             : 
     177             :     OKButton        aOK;
     178             :     CancelButton    aCancel;
     179             :     HelpButton      aHelp;
     180             : public:
     181             :     SwMailMergeFieldConnectionsDlg(Window* pParent);
     182             :     ~SwMailMergeFieldConnectionsDlg();
     183             : 
     184           0 :     sal_Bool    IsUseExistingConnections() const {return aUseExistingRB.IsChecked();}
     185             : };
     186             : 
     187             : #endif
     188             : 
     189             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10