1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _CUSTOMIZEADDRESSLISTDIALOG_HXX 24 #define _CUSTOMIZEADDRESSLISTDIALOG_HXX 25 #include <sfx2/basedlgs.hxx> 26 27 #ifndef _SV_BUTTON_HXX 28 #include <vcl/button.hxx> 29 #endif 30 #include <svtools/stdctrl.hxx> 31 #include <vcl/field.hxx> 32 #include <vcl/lstbox.hxx> 33 34 struct SwCSVData; 35 /*-- 08.04.2004 14:04:39--------------------------------------------------- 36 37 -----------------------------------------------------------------------*/ 38 class SwCustomizeAddressListDialog : public SfxModalDialog 39 { 40 FixedText m_aFieldsFT; 41 ListBox m_aFieldsLB; 42 43 PushButton m_aAddPB; 44 PushButton m_aDeletePB; 45 PushButton m_aRenamePB; 46 47 ImageButton m_aUpPB; 48 ImageButton m_aDownPB; 49 50 FixedLine m_aSeparatorFL; 51 52 OKButton m_aOK; 53 CancelButton m_aCancel; 54 HelpButton m_aHelp; 55 56 SwCSVData* m_pNewData; 57 58 DECL_LINK(AddRenameHdl_Impl, PushButton*); 59 DECL_LINK(DeleteHdl_Impl, PushButton*); 60 DECL_LINK(UpDownHdl_Impl, PushButton*); 61 DECL_LINK(ListBoxSelectHdl_Impl, ListBox*); 62 63 void UpdateButtons(); 64 public: 65 SwCustomizeAddressListDialog(Window* pParent, const SwCSVData& rOldData); 66 ~SwCustomizeAddressListDialog(); 67 68 SwCSVData* GetNewData(); 69 }; 70 /*-- 13.04.2004 13:30:21--------------------------------------------------- 71 72 -----------------------------------------------------------------------*/ 73 class SwAddRenameEntryDialog : public SfxModalDialog 74 { 75 FixedText m_aFieldNameFT; 76 Edit m_aFieldNameED; 77 78 OKButton m_aOK; 79 CancelButton m_aCancel; 80 HelpButton m_aHelp; 81 82 const ::std::vector< ::rtl::OUString >& m_rCSVHeader; 83 84 DECL_LINK(ModifyHdl_Impl, Edit*); 85 public: 86 SwAddRenameEntryDialog(Window* pParent, bool bRename, const ::std::vector< ::rtl::OUString >& aCSVHeader); 87 ~SwAddRenameEntryDialog(); 88 SetFieldName(const String & rName)89 void SetFieldName(const String& rName) {m_aFieldNameED.SetText(rName);} GetFieldName() const90 String GetFieldName() const {return m_aFieldNameED.GetText();}; 91 92 }; 93 94 #endif 95 96