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