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