xref: /aoo41x/main/sw/source/ui/inc/linenum.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 _SWLINENUM_HXX
28 #define _SWLINENUM_HXX
29 
30 #include <sfx2/basedlgs.hxx>
31 #include <sfx2/tabdlg.hxx>
32 #include <vcl/fixed.hxx>
33 #include <vcl/field.hxx>
34 #include <numberingtypelistbox.hxx>
35 
36 #ifndef _LSTBOX_HXX //autogen
37 #include <vcl/lstbox.hxx>
38 #endif
39 
40 class Window;
41 class SfxItemSet;
42 class SwView;
43 class SwWrtShell;
44 
45 /*--------------------------------------------------------------------
46    Beschreibung: SingleTabDialog
47  --------------------------------------------------------------------*/
48 
49 class SwLineNumberingDlg : public SfxSingleTabDialog
50 {
51 	SwWrtShell* pSh;
52 
53 	DECL_LINK( OKHdl, Button * );
54 
55 public:
56 	inline SwWrtShell* GetWrtShell() const { return pSh; }
57 
58 	 SwLineNumberingDlg(SwView *pVw);
59 	~SwLineNumberingDlg();
60 };
61 
62 /*--------------------------------------------------------------------
63    Beschreibung: TabPage
64  --------------------------------------------------------------------*/
65 
66 class SwLineNumberingPage : public SfxTabPage
67 {
68 	CheckBox		aNumberingOnCB;
69 	FixedLine        aDisplayFL;
70 	FixedText		aCharStyleFT;
71 	ListBox			aCharStyleLB;
72 	FixedText		aFormatFT;
73 	SwNumberingTypeListBox	 aFormatLB;
74 	FixedText		aPosFT;
75 	ListBox			aPosLB;
76 	FixedText		aOffsetFT;
77 	MetricField		aOffsetMF;
78 	FixedText		aNumIntervalFT;
79 	NumericField	aNumIntervalNF;
80 	FixedText		aNumRowsFT;
81 	FixedLine        aDivisorFL;
82 	FixedText		aDivisorFT;
83 	Edit			aDivisorED;
84 	FixedText		aDivIntervalFT;
85 	NumericField	aDivIntervalNF;
86 	FixedText		aDivRowsFT;
87 	FixedLine        aCountFL;
88 	CheckBox		aCountEmptyLinesCB;
89 	CheckBox		aCountFrameLinesCB;
90 	CheckBox		aRestartEachPageCB;
91 
92 	SwWrtShell*		pSh;
93 
94 	SwLineNumberingPage( Window* pParent, const SfxItemSet& rSet );
95 	~SwLineNumberingPage();
96 
97 	DECL_LINK( LineOnOffHdl, CheckBox *pCB = 0 );
98 	DECL_LINK( ModifyHdl, Edit *pED = 0 );
99 
100 public:
101 
102 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
103 
104 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
105 	virtual	void 		Reset( const SfxItemSet& rSet );
106 };
107 
108 #endif
109 
110 
111