1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _CUSTOMIZEADDRESSLISTDIALOG_HXX
28 #define _CUSTOMIZEADDRESSLISTDIALOG_HXX
29 #include <sfx2/basedlgs.hxx>
30 
31 #ifndef _SV_BUTTON_HXX
32 #include <vcl/button.hxx>
33 #endif
34 #include <svtools/stdctrl.hxx>
35 #include <vcl/field.hxx>
36 #include <vcl/lstbox.hxx>
37 
38 struct SwCSVData;
39 /*-- 08.04.2004 14:04:39---------------------------------------------------
40 
41   -----------------------------------------------------------------------*/
42 class SwCustomizeAddressListDialog : public SfxModalDialog
43 {
44     FixedText               m_aFieldsFT;
45     ListBox                 m_aFieldsLB;
46 
47     PushButton              m_aAddPB;
48     PushButton              m_aDeletePB;
49     PushButton              m_aRenamePB;
50 
51     ImageButton             m_aUpPB;
52     ImageButton             m_aDownPB;
53 
54     FixedLine               m_aSeparatorFL;
55 
56     OKButton                m_aOK;
57     CancelButton            m_aCancel;
58     HelpButton              m_aHelp;
59 
60     SwCSVData*              m_pNewData;
61 
62     DECL_LINK(AddRenameHdl_Impl, PushButton*);
63     DECL_LINK(DeleteHdl_Impl, PushButton*);
64     DECL_LINK(UpDownHdl_Impl, PushButton*);
65     DECL_LINK(ListBoxSelectHdl_Impl, ListBox*);
66 
67     void UpdateButtons();
68 public:
69     SwCustomizeAddressListDialog(Window* pParent, const SwCSVData& rOldData);
70     ~SwCustomizeAddressListDialog();
71 
72     SwCSVData*    GetNewData();
73 };
74 /*-- 13.04.2004 13:30:21---------------------------------------------------
75 
76   -----------------------------------------------------------------------*/
77 class SwAddRenameEntryDialog : public SfxModalDialog
78 {
79     FixedText               m_aFieldNameFT;
80     Edit                    m_aFieldNameED;
81 
82     OKButton                m_aOK;
83     CancelButton            m_aCancel;
84     HelpButton              m_aHelp;
85 
86     const ::std::vector< ::rtl::OUString >& m_rCSVHeader;
87 
88     DECL_LINK(ModifyHdl_Impl, Edit*);
89 public:
90     SwAddRenameEntryDialog(Window* pParent, bool bRename, const ::std::vector< ::rtl::OUString >& aCSVHeader);
91     ~SwAddRenameEntryDialog();
92 
93     void                SetFieldName(const String& rName) {m_aFieldNameED.SetText(rName);}
94     String              GetFieldName() const {return m_aFieldNameED.GetText();};
95 
96 };
97 
98 #endif
99 
100