LCOV - code coverage report
Current view: top level - sw/source/ui/dbui - customizeaddresslistdialog.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 11 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 9 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             :     VclPtr<ListBox>     m_pFieldsLB;
      33             : 
      34             :     VclPtr<PushButton>  m_pAddPB;
      35             :     VclPtr<PushButton>  m_pDeletePB;
      36             :     VclPtr<PushButton>  m_pRenamePB;
      37             : 
      38             :     VclPtr<PushButton>  m_pUpPB;
      39             :     VclPtr<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(vcl::Window* pParent, const SwCSVData& rOldData);
      51             :     virtual ~SwCustomizeAddressListDialog();
      52             :     virtual void dispose() SAL_OVERRIDE;
      53             : 
      54           0 :     SwCSVData*    GetNewData() { return m_pNewData;}
      55             : };
      56             : 
      57             : class SwAddRenameEntryDialog : public SfxModalDialog
      58             : {
      59             :     VclPtr<Edit>     m_pFieldNameED;
      60             :     VclPtr<OKButton> m_pOK;
      61             :     const std::vector< OUString >& m_rCSVHeader;
      62             : 
      63             :     DECL_LINK(ModifyHdl_Impl, Edit*);
      64             : protected:
      65             :     SwAddRenameEntryDialog(vcl::Window* pParent, const OUString& rID,
      66             :         const OUString& rUIXMLDescription, const std::vector< OUString >& rCSVHeader);
      67             :     virtual ~SwAddRenameEntryDialog();
      68             :     virtual void dispose() SAL_OVERRIDE;
      69             : 
      70             : public:
      71           0 :     void                SetFieldName(const OUString& rName) {m_pFieldNameED->SetText(rName);}
      72           0 :     OUString            GetFieldName() const {return m_pFieldNameED->GetText();};
      73             : 
      74             : };
      75             : 
      76           0 : class SwAddEntryDialog : public SwAddRenameEntryDialog
      77             : {
      78             : public:
      79           0 :     SwAddEntryDialog(vcl::Window* pParent, const std::vector< OUString >& rCSVHeader)
      80             :         : SwAddRenameEntryDialog(pParent, "AddEntryDialog",
      81           0 :             "modules/swriter/ui/addentrydialog.ui", rCSVHeader)
      82             :     {
      83           0 :     }
      84             : };
      85             : 
      86           0 : class SwRenameEntryDialog : public SwAddRenameEntryDialog
      87             : {
      88             : public:
      89           0 :     SwRenameEntryDialog(vcl::Window* pParent, const std::vector< OUString >& rCSVHeader)
      90             :         : SwAddRenameEntryDialog(pParent, "RenameEntryDialog",
      91           0 :             "modules/swriter/ui/renameentrydialog.ui", rCSVHeader)
      92             :     {
      93           0 :     }
      94             : };
      95             : 
      96             : #endif
      97             : 
      98             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11