LCOV - code coverage report
Current view: top level - sw/source/ui/dbui - customizeaddresslistdialog.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 11 0.0 %
Date: 2014-04-14 Functions: 0 10 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_CUSTOMIZEADDRESSLISTDIALOG_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_DBUI_CUSTOMIZEADDRESSLISTDIALOG_HXX
      21             : #include <sfx2/basedlgs.hxx>
      22             : 
      23             : #include <vcl/button.hxx>
      24             : #include <svtools/stdctrl.hxx>
      25             : #include <vcl/field.hxx>
      26             : #include <vcl/lstbox.hxx>
      27             : 
      28             : struct SwCSVData;
      29             : 
      30             : class SwCustomizeAddressListDialog : public SfxModalDialog
      31             : {
      32             :     ListBox*     m_pFieldsLB;
      33             : 
      34             :     PushButton*  m_pAddPB;
      35             :     PushButton*  m_pDeletePB;
      36             :     PushButton*  m_pRenamePB;
      37             : 
      38             :     PushButton*  m_pUpPB;
      39             :     PushButton*  m_pDownPB;
      40             : 
      41             :     SwCSVData*   m_pNewData;
      42             : 
      43             :     DECL_LINK(AddRenameHdl_Impl, PushButton*);
      44             :     DECL_LINK(DeleteHdl_Impl, void *);
      45             :     DECL_LINK(UpDownHdl_Impl, PushButton*);
      46             :     DECL_LINK(ListBoxSelectHdl_Impl, void *);
      47             : 
      48             :     void UpdateButtons();
      49             : public:
      50             :     SwCustomizeAddressListDialog(Window* pParent, const SwCSVData& rOldData);
      51             :     virtual ~SwCustomizeAddressListDialog();
      52             : 
      53             :     SwCSVData*    GetNewData();
      54             : };
      55             : 
      56           0 : class SwAddRenameEntryDialog : public SfxModalDialog
      57             : {
      58             :     Edit*     m_pFieldNameED;
      59             :     OKButton* m_pOK;
      60             :     const std::vector< OUString >& m_rCSVHeader;
      61             : 
      62             :     DECL_LINK(ModifyHdl_Impl, Edit*);
      63             : protected:
      64             :     SwAddRenameEntryDialog(Window* pParent, const OString& rID,
      65             :         const OUString& rUIXMLDescription, const std::vector< OUString >& rCSVHeader);
      66             : public:
      67           0 :     void                SetFieldName(const OUString& rName) {m_pFieldNameED->SetText(rName);}
      68           0 :     OUString            GetFieldName() const {return m_pFieldNameED->GetText();};
      69             : 
      70             : };
      71             : 
      72           0 : class SwAddEntryDialog : public SwAddRenameEntryDialog
      73             : {
      74             : public:
      75           0 :     SwAddEntryDialog(Window* pParent, const std::vector< OUString >& rCSVHeader)
      76             :         : SwAddRenameEntryDialog(pParent, "AddEntryDialog",
      77           0 :             "modules/swriter/ui/addentrydialog.ui", rCSVHeader)
      78             :     {
      79           0 :     }
      80             : };
      81             : 
      82           0 : class SwRenameEntryDialog : public SwAddRenameEntryDialog
      83             : {
      84             : public:
      85           0 :     SwRenameEntryDialog(Window* pParent, const std::vector< OUString >& rCSVHeader)
      86             :         : SwAddRenameEntryDialog(pParent, "RenameEntryDialog",
      87           0 :             "modules/swriter/ui/renameentrydialog.ui", rCSVHeader)
      88             :     {
      89           0 :     }
      90             : };
      91             : 
      92             : #endif
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10