LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/dbui - createaddresslistdialog.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-27 Functions: 0 5 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 _CREATEADDRESSLISTDIALOG_HXX
      20             : #define _CREATEADDRESSLISTDIALOG_HXX
      21             : 
      22             : #include <sfx2/basedlgs.hxx>
      23             : 
      24             : #include <vcl/button.hxx>
      25             : #include <svtools/stdctrl.hxx>
      26             : #include <vcl/field.hxx>
      27             : #include <vcl/lstbox.hxx>
      28             : #include <vector>
      29             : 
      30             : class SwAddressControl_Impl;
      31             : class SwMailMergeConfigItem;
      32             : 
      33             : // container of the created database
      34           0 : struct SwCSVData
      35             : {
      36             :     ::std::vector< ::rtl::OUString >                    aDBColumnHeaders;
      37             :     ::std::vector< ::std::vector< ::rtl::OUString> >     aDBData;
      38             : };
      39             : 
      40             : class SwFindEntryDialog;
      41             : class SwCreateAddressListDialog : public SfxModalDialog
      42             : {
      43             :     FixedInfo               m_aAddressInformation;
      44             :     SwAddressControl_Impl*  m_pAddressControl;
      45             : 
      46             :     PushButton              m_aNewPB;
      47             :     PushButton              m_aDeletePB;
      48             :     PushButton              m_aFindPB;
      49             :     PushButton              m_aCustomizePB;
      50             : 
      51             :     FixedInfo               m_aViewEntriesFI;
      52             :     PushButton              m_aStartPB;
      53             :     PushButton              m_aPrevPB;
      54             :     NumericField            m_aSetNoNF;
      55             :     PushButton              m_aNextPB;
      56             :     PushButton              m_aEndPB;
      57             : 
      58             :     FixedLine               m_aSeparatorFL;
      59             : 
      60             :     OKButton                m_aOK;
      61             :     CancelButton            m_aCancel;
      62             :     HelpButton              m_aHelp;
      63             : 
      64             :     String                  m_sAddressListFilterName;
      65             :     String                  m_sURL;
      66             : 
      67             :     SwCSVData*              m_pCSVData;
      68             :     SwFindEntryDialog*      m_pFindDlg;
      69             : 
      70             :     DECL_LINK(NewHdl_Impl, void *);
      71             :     DECL_LINK(DeleteHdl_Impl, void *);
      72             :     DECL_LINK(FindHdl_Impl, void *);
      73             :     DECL_LINK(CustomizeHdl_Impl, PushButton*);
      74             :     DECL_LINK(OkHdl_Impl, void *);
      75             :     DECL_LINK(DBCursorHdl_Impl, PushButton*);
      76             :     DECL_LINK(DBNumCursorHdl_Impl, void *);
      77             : 
      78             :     void UpdateButtons();
      79             : 
      80             : public:
      81             :     SwCreateAddressListDialog(
      82             :             Window* pParent, const String& rURL, SwMailMergeConfigItem& rConfig);
      83             :     ~SwCreateAddressListDialog();
      84             : 
      85           0 :     const String&           GetURL() const {    return m_sURL;    }
      86             :     void                    Find( const String& rSearch, sal_Int32 nColumn);
      87             : };
      88             : 
      89             : class SwFindEntryDialog : public ModelessDialog
      90             : {
      91             :     FixedText               m_aFindFT;
      92             :     Edit                    m_aFindED;
      93             :     CheckBox                m_aFindOnlyCB;
      94             :     ListBox                 m_aFindOnlyLB;
      95             : 
      96             :     PushButton              m_aFindPB;
      97             :     CancelButton            m_aCancel;
      98             :     HelpButton              m_aHelp;
      99             : 
     100             :     SwCreateAddressListDialog*  m_pParent;
     101             : 
     102             :     DECL_LINK(FindHdl_Impl, void *);
     103             :     DECL_LINK(FindEnableHdl_Impl, void *);
     104             :     DECL_LINK(CloseHdl_Impl, void *);
     105             : 
     106             : public:
     107             :     SwFindEntryDialog(SwCreateAddressListDialog* pParent);
     108             :     ~SwFindEntryDialog();
     109             : 
     110           0 :     ListBox&                GetFieldsListBox(){return m_aFindOnlyLB;}
     111             :     String                  GetFindString() const {return m_aFindED.GetText();}
     112             : };
     113             : 
     114             : #endif
     115             : 
     116             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10