xref: /aoo42x/main/sw/source/ui/inc/insfnote.hxx (revision 1d2dbeb0)
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 _INSFNOTE_HXX
24 #define _INSFNOTE_HXX
25 
26 #include <svx/stddlg.hxx>
27 
28 #ifndef _BUTTON_HXX //autogen
29 #include <vcl/button.hxx>
30 #endif
31 
32 #ifndef _EDIT_HXX //autogen
33 #include <vcl/edit.hxx>
34 #endif
35 #include <vcl/fixed.hxx>
36 
37 class SwWrtShell;
38 
39 class SwInsFootNoteDlg: public SvxStandardDialog
40 {
41 	SwWrtShell	   &rSh;
42 
43 	//Alles fuer das/die Zeichen
44 	String			aFontName;
45 	CharSet			eCharSet;
46 	char			cExtChar;
47 	sal_Bool		bExtCharAvailable;
48 	sal_Bool		bEdit;
49 	FixedLine       aNumberFL;
50 	RadioButton		aNumberAutoBtn;
51 	RadioButton		aNumberCharBtn;
52 	Edit 			aNumberCharEdit;
53 	PushButton		aNumberExtChar;
54 
55 	//Alles fuer die Auswahl Fussnote/Endnote
56 	FixedLine        aTypeFL;
57 	RadioButton		aFtnBtn;
58 	RadioButton		aEndNoteBtn;
59 
60 	OKButton		aOkBtn;
61 	CancelButton	aCancelBtn;
62 	HelpButton		aHelpBtn;
63 	ImageButton 	aPrevBT;
64 	ImageButton		aNextBT;
65 
66 	DECL_LINK( NumberCharHdl, Button * );
67 	DECL_LINK( NumberEditHdl, void * );
68 	DECL_LINK( NumberAutoBtnHdl, Button *);
69 	DECL_LINK( NumberExtCharHdl, Button *);
70 	DECL_LINK( NextPrevHdl, Button * );
71 
72 	virtual void	Apply();
73 
74 	void			Init();
75 
76 public:
77 	SwInsFootNoteDlg(Window * pParent, SwWrtShell &rSh, sal_Bool bEd = sal_False);
78 	~SwInsFootNoteDlg();
79 
GetCharSet()80     CharSet         GetCharSet() { return eCharSet; }
IsExtCharAvailable()81     sal_Bool            IsExtCharAvailable() { return bExtCharAvailable; }
GetFontName()82     String          GetFontName() { return aFontName; }
IsEndNote()83     sal_Bool            IsEndNote() { return aEndNoteBtn.IsChecked(); }
GetStr()84     String          GetStr()
85                     {
86                         if ( aNumberCharBtn.IsChecked() )
87                             return aNumberCharEdit.GetText();
88                         else
89                             return String();
90                     }
91 };
92 
93 #endif
94