xref: /aoo4110/main/sw/source/ui/inc/numpara.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 _NUMPARA_HXX
24 #define _NUMPARA_HXX
25 
26 
27 #include <sfx2/tabdlg.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <vcl/fixed.hxx>
30 #include <vcl/field.hxx>
31 #ifndef _SV_BUTTON_HXX //autogen
32 #include <vcl/button.hxx>
33 #endif
34 
35 
36 /* --- class SwParagraphNumTabPage ----------------------------------------
37 	Mit dieser TabPage werden Numerierungseinstellungen am Absatz bzw. der
38 	Absatzvorlage vorgenommen.
39 
40  ---------------------------------------------------------------------------*/
41 class SwParagraphNumTabPage : public SfxTabPage
42 {
43 	FixedLine				aOutlineStartFL;
44 	FixedText				aOutlineLvFT;
45 	ListBox					aOutlineLvLB;
46 
47     FixedLine               aNewStartFL;
48     FixedText               aNumberStyleFT;
49 	ListBox					aNumberStyleLB;
50 
51 	TriStateBox				aNewStartCB;
52     TriStateBox             aNewStartNumberCB;
53 	NumericField			aNewStartNF;
54 
55     FixedLine               aCountParaFL;
56 	TriStateBox				aCountParaCB;
57 	TriStateBox				aRestartParaCountCB;
58 	FixedText				aRestartFT;
59 	NumericField			aRestartNF;
60 
61     // --> OD 2008-04-14 #outlinelevel#
62     const String msOutlineNumbering;
63     // <--
64 
65 	sal_Bool					bModified : 1;
66 	sal_Bool					bCurNumrule : 1;
67 
68 	DECL_LINK( NewStartHdl_Impl, CheckBox* );
69 	DECL_LINK( StyleHdl_Impl, ListBox* );
70 	DECL_LINK( LineCountHdl_Impl, CheckBox* );
71 
72 protected:
73 		SwParagraphNumTabPage(Window* pParent, const SfxItemSet& rSet );
74 
75 public:
76 		~SwParagraphNumTabPage();
77 
78 	static SfxTabPage*	Create(	Window* pParent,
79 								const SfxItemSet& rSet );
80 	static sal_uInt16*		GetRanges();
81 
82 	virtual sal_Bool		FillItemSet( SfxItemSet& rSet );
83 	virtual void		Reset( const SfxItemSet& rSet );
84 
85 	void				EnableNewStart();
86 	void				DisableOutline();
87 	void				DisableNumbering();
88 
GetStyleBox()89 	ListBox&			GetStyleBox() {return aNumberStyleLB;};
90 };
91 
92 
93 #endif
94 
95