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