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