LCOV - code coverage report
Current view: top level - sw/source/ui/dbui - createaddresslistdialog.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 5 0.0 %
Date: 2014-04-11 Functions: 0 7 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_CREATEADDRESSLISTDIALOG_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_DBUI_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< OUString >                    aDBColumnHeaders;
      37             :     ::std::vector< ::std::vector< 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             :     OUString                m_sAddressListFilterName;
      65             :     OUString                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 OUString& rURL, SwMailMergeConfigItem& rConfig);
      83             :     virtual ~SwCreateAddressListDialog();
      84             : 
      85           0 :     const OUString&         GetURL() const {    return m_sURL;    }
      86             :     void                    Find( const OUString& rSearch, sal_Int32 nColumn);
      87             : };
      88             : 
      89           0 : class SwFindEntryDialog : public ModelessDialog
      90             : {
      91             :     Edit*         m_pFindED;
      92             :     CheckBox*     m_pFindOnlyCB;
      93             :     ListBox*      m_pFindOnlyLB;
      94             : 
      95             :     PushButton*   m_pFindPB;
      96             :     CancelButton* m_pCancel;
      97             : 
      98             :     SwCreateAddressListDialog*  m_pParent;
      99             : 
     100             :     DECL_LINK(FindHdl_Impl, void *);
     101             :     DECL_LINK(FindEnableHdl_Impl, void *);
     102             :     DECL_LINK(CloseHdl_Impl, void *);
     103             : 
     104             : public:
     105             :     SwFindEntryDialog(SwCreateAddressListDialog* pParent);
     106             : 
     107           0 :     ListBox& GetFieldsListBox()
     108             :     {
     109           0 :         return *m_pFindOnlyLB;
     110             :     }
     111             :     OUString GetFindString() const
     112             :     {
     113             :         return m_pFindED->GetText();
     114             :     }
     115             : };
     116             : 
     117             : #endif
     118             : 
     119             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10