1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 29 #ifndef _SD_DLGFIELD_HXX 30 #define _SD_DLGFIELD_HXX 31 32 33 #ifndef _LSTBOX_HXX //autogen 34 #include <vcl/lstbox.hxx> 35 #endif 36 #ifndef _GROUP_HXX //autogen 37 #include <vcl/group.hxx> 38 #endif 39 #ifndef _FIXED_HXX //autogen 40 #include <vcl/fixed.hxx> 41 #endif 42 #ifndef _BUTTON_HXX //autogen 43 #include <vcl/button.hxx> 44 #endif 45 #ifndef _DIALOG_HXX //autogen 46 #include <vcl/dialog.hxx> 47 #endif 48 #include <svx/langbox.hxx> 49 class SvxFieldData; 50 51 /************************************************************************* 52 |* 53 |* Dialog zum Bearbeiten von Feldbefehlen 54 |* 55 \************************************************************************/ 56 57 class SdModifyFieldDlg : public ModalDialog 58 { 59 private: 60 FixedLine aGrpType; 61 RadioButton aRbtFix; 62 RadioButton aRbtVar; 63 FixedText maFtLanguage; 64 SvxLanguageBox maLbLanguage; 65 FixedText aFtFormat; 66 ListBox aLbFormat; 67 OKButton aBtnOK; 68 CancelButton aBtnCancel; 69 HelpButton aBtnHelp; 70 SfxItemSet maInputSet; 71 72 const SvxFieldData* pField; 73 74 void FillFormatList(); 75 void FillControls(); 76 77 DECL_LINK( LanguageChangeHdl, void * ); 78 79 public: 80 SdModifyFieldDlg( Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet ); 81 ~SdModifyFieldDlg() {} 82 83 SvxFieldData* GetField(); 84 SfxItemSet GetItemSet(); 85 }; 86 87 88 89 #endif // _SD_DLGFIELD_HXX 90