xref: /aoo41x/main/sd/source/ui/inc/dlgfield.hxx (revision 67e470da)
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 
24 
25 #ifndef _SD_DLGFIELD_HXX
26 #define _SD_DLGFIELD_HXX
27 
28 
29 #ifndef _LSTBOX_HXX //autogen
30 #include <vcl/lstbox.hxx>
31 #endif
32 #ifndef _GROUP_HXX //autogen
33 #include <vcl/group.hxx>
34 #endif
35 #ifndef _FIXED_HXX //autogen
36 #include <vcl/fixed.hxx>
37 #endif
38 #ifndef _BUTTON_HXX //autogen
39 #include <vcl/button.hxx>
40 #endif
41 #ifndef _DIALOG_HXX //autogen
42 #include <vcl/dialog.hxx>
43 #endif
44 #include <svx/langbox.hxx>
45 class SvxFieldData;
46 
47 /*************************************************************************
48 |*
49 |* Dialog zum Bearbeiten von Feldbefehlen
50 |*
51 \************************************************************************/
52 
53 class SdModifyFieldDlg : public ModalDialog
54 {
55 private:
56 	FixedLine			aGrpType;
57 	RadioButton 		aRbtFix;
58 	RadioButton 		aRbtVar;
59 	FixedText			maFtLanguage;
60 	SvxLanguageBox		maLbLanguage;
61 	FixedText			aFtFormat;
62 	ListBox  			aLbFormat;
63 	OKButton			aBtnOK;
64 	CancelButton		aBtnCancel;
65 	HelpButton			aBtnHelp;
66 	SfxItemSet			maInputSet;
67 
68 	const SvxFieldData*	pField;
69 
70 	void 				FillFormatList();
71 	void 				FillControls();
72 
73 	DECL_LINK( LanguageChangeHdl, void * );
74 
75 public:
76 	SdModifyFieldDlg( Window* pWindow, const SvxFieldData* pInField, const SfxItemSet& rSet );
~SdModifyFieldDlg()77 	~SdModifyFieldDlg() {}
78 
79 	SvxFieldData*		GetField();
80 	SfxItemSet			GetItemSet();
81 };
82 
83 
84 
85 #endif		// _SD_DLGFIELD_HXX
86