LCOV - code coverage report
Current view: top level - sw/source/ui/dbui - addresslistdialog.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _ADDRESSLISTDIALOG_HXX
      29                 :            : #define _ADDRESSLISTDIALOG_HXX
      30                 :            : 
      31                 :            : #include <sfx2/basedlgs.hxx>
      32                 :            : #include <svtools/stdctrl.hxx>
      33                 :            : #include <vcl/button.hxx>
      34                 :            : #include <svtools/svtabbx.hxx>
      35                 :            : #include <svtools/headbar.hxx>
      36                 :            : #include <swdbdata.hxx>
      37                 :            : #include "sharedconnection.hxx"
      38                 :            : 
      39                 :            : 
      40                 :            : namespace com{namespace sun{namespace star{
      41                 :            :     namespace container{
      42                 :            :         class XNameAccess;
      43                 :            :     }
      44                 :            :     namespace sdbc{
      45                 :            :         class XDataSource;
      46                 :            :     }
      47                 :            :     namespace sdbcx{
      48                 :            :         class XColumnsSupplier;
      49                 :            :     }
      50                 :            : }}}
      51                 :            : class SwMailMergeAddressBlockPage;
      52                 :            : 
      53                 :            : class SwAddressListDialog : public SfxModalDialog
      54                 :            : {
      55                 :            :     FixedInfo       m_aDescriptionFI;
      56                 :            : 
      57                 :            :     FixedInfo       m_aListFT;
      58                 :            :     HeaderBar       m_aListHB;
      59                 :            :     SvTabListBox    m_aListLB;
      60                 :            : 
      61                 :            :     PushButton      m_aLoadListPB;
      62                 :            :     PushButton      m_aCreateListPB;
      63                 :            :     PushButton      m_aFilterPB;
      64                 :            :     PushButton      m_aEditPB;
      65                 :            :     PushButton      m_aTablePB;
      66                 :            : 
      67                 :            :     FixedLine       m_aSeparatorFL;
      68                 :            : 
      69                 :            :     OKButton        m_aOK;
      70                 :            :     CancelButton    m_aCancel;
      71                 :            :     HelpButton      m_aHelp;
      72                 :            : 
      73                 :            :     String          m_sName;
      74                 :            :     String          m_sTable;
      75                 :            :     String          m_sConnecting;
      76                 :            : 
      77                 :            :     String          m_sCreatedURL;
      78                 :            :     SvLBoxEntry*    m_pCreatedDataSource;
      79                 :            : 
      80                 :            :     bool            m_bInSelectHdl;
      81                 :            : 
      82                 :            :     SwMailMergeAddressBlockPage* m_pAddressPage;
      83                 :            : 
      84                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>     m_xDBContext;
      85                 :            : 
      86                 :            :     SwDBData                                                                        m_aDBData;
      87                 :            : 
      88                 :            :     void DetectTablesAndQueries(SvLBoxEntry* pSelect, bool bWidthDialog);
      89                 :            : 
      90                 :            :     DECL_LINK(FilterHdl_Impl, void *);
      91                 :            :     DECL_LINK(LoadHdl_Impl, void *);
      92                 :            :     DECL_LINK(CreateHdl_Impl, PushButton*);
      93                 :            :     DECL_LINK(ListBoxSelectHdl_Impl, void *);
      94                 :            :     DECL_LINK(EditHdl_Impl, PushButton*);
      95                 :            :     DECL_LINK(TableSelectHdl_Impl, PushButton*);
      96                 :            :     DECL_LINK(OKHdl_Impl, void *);
      97                 :            : 
      98                 :            :     DECL_STATIC_LINK(SwAddressListDialog, StaticListBoxSelectHdl_Impl, SvLBoxEntry*);
      99                 :            : 
     100                 :            : public:
     101                 :            :     SwAddressListDialog(SwMailMergeAddressBlockPage* pParent);
     102                 :            :     ~SwAddressListDialog();
     103                 :            : 
     104                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource>
     105                 :            :                         GetSource();
     106                 :            : 
     107                 :            :     SharedConnection    GetConnection();
     108                 :            : 
     109                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XColumnsSupplier>
     110                 :            :                         GetColumnsSupplier();
     111                 :            : 
     112                 :          0 :     const SwDBData&     GetDBData() const       {return m_aDBData;}
     113                 :            :     ::rtl::OUString     GetFilter();
     114                 :            : };
     115                 :            : #endif
     116                 :            : 
     117                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10