1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: customizeaddresslistdialog.hxx,v $
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>
37 #include <svtools/stdctrl.hxx>
38 #include <vcl/field.hxx>
39 #include <vcl/lstbox.hxx>
42 /*-- 08.04.2004 14:04:39---------------------------------------------------
44 -----------------------------------------------------------------------*/
45 class SwCustomizeAddressListDialog
: public SfxModalDialog
47 FixedText m_aFieldsFT
;
51 PushButton m_aDeletePB
;
52 PushButton m_aRenamePB
;
55 ImageButton m_aDownPB
;
57 FixedLine m_aSeparatorFL
;
60 CancelButton m_aCancel
;
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
*);
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
;
86 CancelButton m_aCancel
;
89 const ::std::vector
< ::rtl::OUString
>& m_rCSVHeader
;
91 DECL_LINK(ModifyHdl_Impl
, Edit
*);
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();};