xref: /aoo42x/main/sw/source/ui/inc/pgfnote.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 _PGFNOTE_HXX
24 #define _PGFNOTE_HXX
25 
26 #include <sfx2/tabdlg.hxx>
27 
28 #ifndef _FIELD_HXX //autogen
29 #include <vcl/field.hxx>
30 #endif
31 
32 #ifndef _FIXED_HXX //autogen
33 #include <vcl/fixed.hxx>
34 #endif
35 
36 #ifndef _GROUP_HXX //autogen
37 #include <vcl/group.hxx>
38 #endif
39 #include <svtools/ctrlbox.hxx>
40 
41 /*--------------------------------------------------------------------
42 	Beschreibung:	Fussnoteneinstellungs-TabPage
43  --------------------------------------------------------------------*/
44 
45 class SwFootNotePage: public SfxTabPage
46 {
47 public:
48 	static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
49 	static sal_uInt16* GetRanges();
50 
51 	virtual sal_Bool FillItemSet(SfxItemSet &rSet);
52 	virtual void Reset(const SfxItemSet &rSet);
53 
54 private:
55 	SwFootNotePage(Window *pParent, const SfxItemSet &rSet);
56 	~SwFootNotePage();
57 
58 	FixedLine		aPosHeader;
59 	RadioButton		aMaxHeightPageBtn;
60 	RadioButton		aMaxHeightBtn;
61 	MetricField		aMaxHeightEdit;
62 	FixedText   	aDistLbl;
63 	MetricField		aDistEdit;
64 
65 	FixedLine		aLineHeader;
66 	FixedText   	aLinePosLbl;
67 	ListBox			aLinePosBox;
68 	FixedText   	aLineTypeLbl;
69 	LineListBox		aLineTypeBox;
70 	FixedText   	aLineWidthLbl;
71 	MetricField		aLineWidthEdit;
72 	FixedText   	aLineDistLbl;
73 	MetricField		aLineDistEdit;
74 
75 	DECL_LINK( HeightPage, Button * );
76 	DECL_LINK( HeightMetric, Button * );
77 	DECL_LINK( HeightModify, MetricField * );
78 
79 	long 			lMaxHeight;
80 
81     using SfxTabPage::ActivatePage;
82     using SfxTabPage::DeactivatePage;
83 
84     virtual void    ActivatePage( const SfxItemSet& rSet );
85 	virtual int		DeactivatePage( SfxItemSet* pSet = 0 );
86 
87 };
88 
89 #endif
90