LCOV - code coverage report
Current view: top level - sw/source/ui/dbui - createaddresslistdialog.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 5 0.0 %
Date: 2014-11-03 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             :     SwAddressControl_Impl*  m_pAddressControl;
      44             : 
      45             :     PushButton              *m_pNewPB;
      46             :     PushButton              *m_pDeletePB;
      47             :     PushButton              *m_pFindPB;
      48             :     PushButton              *m_pCustomizePB;
      49             : 
      50             :     PushButton              *m_pStartPB;
      51             :     PushButton              *m_pPrevPB;
      52             :     NumericField            *m_pSetNoNF;
      53             :     PushButton              *m_pNextPB;
      54             :     PushButton              *m_pEndPB;
      55             : 
      56             : 
      57             :     OKButton                *m_pOK;
      58             : 
      59             :     OUString                m_sAddressListFilterName;
      60             :     OUString                m_sURL;
      61             : 
      62             :     SwCSVData*              m_pCSVData;
      63             :     SwFindEntryDialog*      m_pFindDlg;
      64             : 
      65             :     DECL_LINK(NewHdl_Impl, void *);
      66             :     DECL_LINK(DeleteHdl_Impl, void *);
      67             :     DECL_LINK(FindHdl_Impl, void *);
      68             :     DECL_LINK(CustomizeHdl_Impl, PushButton*);
      69             :     DECL_LINK(OkHdl_Impl, void *);
      70             :     DECL_LINK(DBCursorHdl_Impl, PushButton*);
      71             :     DECL_LINK(DBNumCursorHdl_Impl, void *);
      72             : 
      73             :     void UpdateButtons();
      74             : 
      75             : public:
      76             :     SwCreateAddressListDialog(
      77             :             vcl::Window* pParent, const OUString& rURL, SwMailMergeConfigItem& rConfig);
      78             :     virtual ~SwCreateAddressListDialog();
      79             : 
      80           0 :     const OUString&         GetURL() const {    return m_sURL;    }
      81             :     void                    Find( const OUString& rSearch, sal_Int32 nColumn);
      82             : };
      83             : 
      84           0 : class SwFindEntryDialog : public ModelessDialog
      85             : {
      86             :     Edit*         m_pFindED;
      87             :     CheckBox*     m_pFindOnlyCB;
      88             :     ListBox*      m_pFindOnlyLB;
      89             : 
      90             :     PushButton*   m_pFindPB;
      91             :     CancelButton* m_pCancel;
      92             : 
      93             :     SwCreateAddressListDialog*  m_pParent;
      94             : 
      95             :     DECL_LINK(FindHdl_Impl, void *);
      96             :     DECL_LINK(FindEnableHdl_Impl, void *);
      97             :     DECL_LINK(CloseHdl_Impl, void *);
      98             : 
      99             : public:
     100             :     SwFindEntryDialog(SwCreateAddressListDialog* pParent);
     101             : 
     102           0 :     ListBox& GetFieldsListBox()
     103             :     {
     104           0 :         return *m_pFindOnlyLB;
     105             :     }
     106             :     OUString GetFindString() const
     107             :     {
     108             :         return m_pFindED->GetText();
     109             :     }
     110             : };
     111             : 
     112             : #endif
     113             : 
     114             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10