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 _CUSTOMIZEADDRESSLISTDIALOG_HXX
20 : #define _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 : FixedText m_aFieldsFT;
33 : ListBox m_aFieldsLB;
34 :
35 : PushButton m_aAddPB;
36 : PushButton m_aDeletePB;
37 : PushButton m_aRenamePB;
38 :
39 : ImageButton m_aUpPB;
40 : ImageButton m_aDownPB;
41 :
42 : FixedLine m_aSeparatorFL;
43 :
44 : OKButton m_aOK;
45 : CancelButton m_aCancel;
46 : HelpButton m_aHelp;
47 :
48 : SwCSVData* m_pNewData;
49 :
50 : DECL_LINK(AddRenameHdl_Impl, PushButton*);
51 : DECL_LINK(DeleteHdl_Impl, void *);
52 : DECL_LINK(UpDownHdl_Impl, PushButton*);
53 : DECL_LINK(ListBoxSelectHdl_Impl, void *);
54 :
55 : void UpdateButtons();
56 : public:
57 : SwCustomizeAddressListDialog(Window* pParent, const SwCSVData& rOldData);
58 : ~SwCustomizeAddressListDialog();
59 :
60 : SwCSVData* GetNewData();
61 : };
62 :
63 : class SwAddRenameEntryDialog : public SfxModalDialog
64 : {
65 : FixedText m_aFieldNameFT;
66 : Edit m_aFieldNameED;
67 :
68 : OKButton m_aOK;
69 : CancelButton m_aCancel;
70 : HelpButton m_aHelp;
71 :
72 : const ::std::vector< ::rtl::OUString >& m_rCSVHeader;
73 :
74 : DECL_LINK(ModifyHdl_Impl, Edit*);
75 : public:
76 : SwAddRenameEntryDialog(Window* pParent, bool bRename, const ::std::vector< ::rtl::OUString >& aCSVHeader);
77 : ~SwAddRenameEntryDialog();
78 :
79 0 : void SetFieldName(const String& rName) {m_aFieldNameED.SetText(rName);}
80 0 : String GetFieldName() const {return m_aFieldNameED.GetText();};
81 :
82 : };
83 :
84 : #endif
85 :
86 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|