xref: /aoo41x/main/cui/source/inc/numpages.hxx (revision c4eee24d)
1*c4eee24dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*c4eee24dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*c4eee24dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*c4eee24dSAndrew Rist  * distributed with this work for additional information
6*c4eee24dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*c4eee24dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*c4eee24dSAndrew Rist  * "License"); you may not use this file except in compliance
9*c4eee24dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*c4eee24dSAndrew Rist  *
11*c4eee24dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*c4eee24dSAndrew Rist  *
13*c4eee24dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*c4eee24dSAndrew Rist  * software distributed under the License is distributed on an
15*c4eee24dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*c4eee24dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*c4eee24dSAndrew Rist  * specific language governing permissions and limitations
18*c4eee24dSAndrew Rist  * under the License.
19*c4eee24dSAndrew Rist  *
20*c4eee24dSAndrew Rist  *************************************************************/
21*c4eee24dSAndrew Rist 
22*c4eee24dSAndrew Rist 
23cdf0e10cSrcweir #ifndef _SVX_NUMPAGES_HXX
24cdf0e10cSrcweir #define _SVX_NUMPAGES_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // include ---------------------------------------------------------------
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <sfx2/tabdlg.hxx>
29cdf0e10cSrcweir #include <vcl/group.hxx>
30cdf0e10cSrcweir #include <vcl/fixed.hxx>
31cdf0e10cSrcweir #include <vcl/menubtn.hxx>
32cdf0e10cSrcweir #include <vcl/lstbox.hxx>
33cdf0e10cSrcweir #include <vcl/edit.hxx>
34cdf0e10cSrcweir #include <vcl/field.hxx>
35cdf0e10cSrcweir #ifndef _SVX_NUMDEF_HXX
36cdf0e10cSrcweir #include <editeng/numdef.hxx>
37cdf0e10cSrcweir #endif
38cdf0e10cSrcweir #include <svtools/ctrlbox.hxx>
39cdf0e10cSrcweir #include <svl/svarray.hxx>
40cdf0e10cSrcweir 
41cdf0e10cSrcweir // -----------------------------------------------------------------------
42cdf0e10cSrcweir class SvxNumRule;
43cdf0e10cSrcweir class SvxBmpNumValueSet;
44cdf0e10cSrcweir class SvxNumValueSet;
45cdf0e10cSrcweir class ValueSet;
46cdf0e10cSrcweir class SvxNumberingPreview;
47cdf0e10cSrcweir class SvxBrushItem;
48cdf0e10cSrcweir 
49cdf0e10cSrcweir /*-----------------13.02.97 14.02-------------------
50cdf0e10cSrcweir 
51cdf0e10cSrcweir --------------------------------------------------*/
52cdf0e10cSrcweir 
53cdf0e10cSrcweir struct SvxNumSettings_Impl
54cdf0e10cSrcweir {
55cdf0e10cSrcweir 	short			nNumberType;
56cdf0e10cSrcweir 	short 			nParentNumbering;
57cdf0e10cSrcweir 	rtl::OUString	sPrefix;
58cdf0e10cSrcweir 	rtl::OUString	sSuffix;
59cdf0e10cSrcweir 	rtl::OUString	sBulletChar;
60cdf0e10cSrcweir 	rtl::OUString	sBulletFont;
SvxNumSettings_ImplSvxNumSettings_Impl61cdf0e10cSrcweir 	SvxNumSettings_Impl() :
62cdf0e10cSrcweir 		nNumberType(0),
63cdf0e10cSrcweir 		nParentNumbering(0)
64cdf0e10cSrcweir 		{}
65cdf0e10cSrcweir };
66cdf0e10cSrcweir 
67cdf0e10cSrcweir typedef SvxNumSettings_Impl* SvxNumSettings_ImplPtr;
68cdf0e10cSrcweir SV_DECL_PTRARR_DEL(SvxNumSettingsArr_Impl,SvxNumSettings_ImplPtr,8,4)
69cdf0e10cSrcweir 
70cdf0e10cSrcweir /*-----------------07.02.97 11.36-------------------
71cdf0e10cSrcweir 
72cdf0e10cSrcweir --------------------------------------------------*/
73cdf0e10cSrcweir class SvxSingleNumPickTabPage : public SfxTabPage
74cdf0e10cSrcweir {
75cdf0e10cSrcweir 	using TabPage::ActivatePage;
76cdf0e10cSrcweir 	using TabPage::DeactivatePage;
77cdf0e10cSrcweir 
78cdf0e10cSrcweir     FixedLine               aValuesFL;
79cdf0e10cSrcweir 	SvxNumValueSet* 		pExamplesVS;
80cdf0e10cSrcweir 	SvxNumSettingsArr_Impl	aNumSettingsArr;
81cdf0e10cSrcweir 	SvxNumRule* 			pActNum;
82cdf0e10cSrcweir 	SvxNumRule* 			pSaveNum;
83cdf0e10cSrcweir 	sal_uInt16					nActNumLvl;
84cdf0e10cSrcweir 	sal_Bool					bModified 	: 1;
85cdf0e10cSrcweir 	sal_Bool					bPreset		: 1;
86cdf0e10cSrcweir 
87cdf0e10cSrcweir 	String				sNumCharFmtName;
88cdf0e10cSrcweir 	sal_uInt16 				nNumItemId;
89cdf0e10cSrcweir 
90cdf0e10cSrcweir 	protected:
91cdf0e10cSrcweir 		DECL_LINK( NumSelectHdl_Impl, ValueSet*);
92cdf0e10cSrcweir 		DECL_LINK( DoubleClickHdl_Impl, ValueSet* );
93cdf0e10cSrcweir 
94cdf0e10cSrcweir 	public:
95cdf0e10cSrcweir 		SvxSingleNumPickTabPage(Window* pParent,
96cdf0e10cSrcweir 							   const SfxItemSet& rSet);
97cdf0e10cSrcweir 		~SvxSingleNumPickTabPage();
98cdf0e10cSrcweir 
99cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent,
100cdf0e10cSrcweir 								const SfxItemSet& rAttrSet);
101cdf0e10cSrcweir 
102cdf0e10cSrcweir 	virtual void 		ActivatePage(const SfxItemSet& rSet);
103cdf0e10cSrcweir 	virtual int 		DeactivatePage(SfxItemSet *pSet);
104cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
105cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
106cdf0e10cSrcweir 
SetNumCharFmtName(const String & rName)107cdf0e10cSrcweir 	void				SetNumCharFmtName(const String& rName){sNumCharFmtName = rName;}
108cdf0e10cSrcweir };
109cdf0e10cSrcweir 
110cdf0e10cSrcweir /*-----------------07.02.97 11.36-------------------
111cdf0e10cSrcweir 
112cdf0e10cSrcweir --------------------------------------------------*/
113cdf0e10cSrcweir 
114cdf0e10cSrcweir class SvxBulletPickTabPage : public SfxTabPage
115cdf0e10cSrcweir {
116cdf0e10cSrcweir 	using TabPage::ActivatePage;
117cdf0e10cSrcweir 	using TabPage::DeactivatePage;
118cdf0e10cSrcweir 
119cdf0e10cSrcweir     FixedLine           aValuesFL;
120cdf0e10cSrcweir 	SvxNumValueSet*		pExamplesVS;
121cdf0e10cSrcweir 	SvxNumRule* 		pActNum;
122cdf0e10cSrcweir 	SvxNumRule* 		pSaveNum;
123cdf0e10cSrcweir 	sal_uInt16 				nActNumLvl;
124cdf0e10cSrcweir 	sal_Bool				bModified 	: 1;
125cdf0e10cSrcweir 	sal_Bool				bPreset		: 1;
126cdf0e10cSrcweir 	sal_uInt16 				nNumItemId;
127cdf0e10cSrcweir 
128cdf0e10cSrcweir 	String				sBulletCharFmtName;
129cdf0e10cSrcweir 	protected:
130cdf0e10cSrcweir 		DECL_LINK(NumSelectHdl_Impl, ValueSet*);
131cdf0e10cSrcweir 		DECL_LINK( DoubleClickHdl_Impl, ValueSet* );
132cdf0e10cSrcweir 	public:
133cdf0e10cSrcweir 		SvxBulletPickTabPage(Window* pParent,
134cdf0e10cSrcweir 							   const SfxItemSet& rSet);
135cdf0e10cSrcweir 		~SvxBulletPickTabPage();
136cdf0e10cSrcweir 
137cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent,
138cdf0e10cSrcweir 								const SfxItemSet& rAttrSet);
139cdf0e10cSrcweir 
140cdf0e10cSrcweir 	virtual void 		ActivatePage(const SfxItemSet& rSet);
141cdf0e10cSrcweir 	virtual int 		DeactivatePage(SfxItemSet *pSet);
142cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
143cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
144cdf0e10cSrcweir 
SetCharFmtName(const String & rName)145cdf0e10cSrcweir 	void				SetCharFmtName(const String& rName){sBulletCharFmtName = rName;}
146cdf0e10cSrcweir 	virtual void 		PageCreated(SfxAllItemSet aSet); // add CHINA001
147cdf0e10cSrcweir };
148cdf0e10cSrcweir 
149cdf0e10cSrcweir /*-----------------07.02.97 11.36-------------------
150cdf0e10cSrcweir 	TabPage fuer vollstaendig Numerierung
151cdf0e10cSrcweir --------------------------------------------------*/
152cdf0e10cSrcweir #define NUMTYPE_MEMBER 4   // Anzahl der Elemente des FormatStrings je Ebene
153cdf0e10cSrcweir #define NUM_VALUSET_COUNT 16
154cdf0e10cSrcweir class SvxNumPickTabPage : public SfxTabPage
155cdf0e10cSrcweir {
156cdf0e10cSrcweir 	using TabPage::ActivatePage;
157cdf0e10cSrcweir 	using TabPage::DeactivatePage;
158cdf0e10cSrcweir 
159cdf0e10cSrcweir 	FixedLine           aValuesFL;
160cdf0e10cSrcweir 	SvxNumValueSet*		pExamplesVS;
161cdf0e10cSrcweir 	String				sNumCharFmtName;
162cdf0e10cSrcweir 	String				sBulletCharFmtName;
163cdf0e10cSrcweir 
164cdf0e10cSrcweir 	SvxNumSettingsArr_Impl	aNumSettingsArrays[NUM_VALUSET_COUNT];	// wird mit den fuenf Formaten initialisiert
165cdf0e10cSrcweir 
166cdf0e10cSrcweir 	SvxNumRule* 		pActNum;
167cdf0e10cSrcweir 	SvxNumRule* 		pSaveNum;
168cdf0e10cSrcweir 	sal_uInt16 				nActNumLvl;
169cdf0e10cSrcweir 	sal_uInt16 				nNumItemId;
170cdf0e10cSrcweir 	sal_Bool				bModified 	: 1;
171cdf0e10cSrcweir 	sal_Bool				bPreset		: 1;
172cdf0e10cSrcweir 
173cdf0e10cSrcweir 
174cdf0e10cSrcweir 	protected:
175cdf0e10cSrcweir 		DECL_LINK(NumSelectHdl_Impl, ValueSet*);
176cdf0e10cSrcweir 		DECL_LINK( DoubleClickHdl_Impl, ValueSet* );
177cdf0e10cSrcweir 
178cdf0e10cSrcweir 	public:
179cdf0e10cSrcweir 		SvxNumPickTabPage(Window* pParent,
180cdf0e10cSrcweir 							   const SfxItemSet& rSet);
181cdf0e10cSrcweir 		~SvxNumPickTabPage();
182cdf0e10cSrcweir 
183cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent,
184cdf0e10cSrcweir 								const SfxItemSet& rAttrSet);
185cdf0e10cSrcweir 
186cdf0e10cSrcweir 	virtual void 		ActivatePage(const SfxItemSet& rSet);
187cdf0e10cSrcweir 	virtual int 		DeactivatePage(SfxItemSet *pSet);
188cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
189cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
190cdf0e10cSrcweir 
SetCharFmtNames(const String & rCharName,const String & rBulName)191cdf0e10cSrcweir 	void				SetCharFmtNames(const String& rCharName, const String& rBulName)
192cdf0e10cSrcweir 							{	sNumCharFmtName = rCharName;
193cdf0e10cSrcweir 								sBulletCharFmtName = rBulName;}
194cdf0e10cSrcweir 	virtual void 		PageCreated(SfxAllItemSet aSet); // add CHINA001
195cdf0e10cSrcweir };
196cdf0e10cSrcweir 
197cdf0e10cSrcweir /*-----------------12.02.97 07.42-------------------
198cdf0e10cSrcweir 
199cdf0e10cSrcweir --------------------------------------------------*/
200cdf0e10cSrcweir class SvxBitmapPickTabPage : public SfxTabPage
201cdf0e10cSrcweir {
202cdf0e10cSrcweir 	using TabPage::ActivatePage;
203cdf0e10cSrcweir 	using TabPage::DeactivatePage;
204cdf0e10cSrcweir 
205cdf0e10cSrcweir 	FixedLine           aValuesFL;
206cdf0e10cSrcweir 	SvxBmpNumValueSet* 	pExamplesVS;
207cdf0e10cSrcweir 	FixedText			aErrorText;
208cdf0e10cSrcweir 	CheckBox			aLinkedCB;
209cdf0e10cSrcweir 
210cdf0e10cSrcweir 	List				aGrfNames;
211cdf0e10cSrcweir 	String				sNumCharFmtName;
212cdf0e10cSrcweir 
213cdf0e10cSrcweir 	SvxNumRule* 		pActNum;
214cdf0e10cSrcweir 	SvxNumRule* 		pSaveNum;
215cdf0e10cSrcweir 	sal_uInt16 				nActNumLvl;
216cdf0e10cSrcweir 	sal_uInt16 				nNumItemId;
217cdf0e10cSrcweir 	SfxMapUnit			eCoreUnit;
218cdf0e10cSrcweir 	sal_Bool				bModified 	: 1;
219cdf0e10cSrcweir 	sal_Bool				bPreset		: 1;
220cdf0e10cSrcweir 
221cdf0e10cSrcweir 	protected:
222cdf0e10cSrcweir 		DECL_LINK( NumSelectHdl_Impl, ValueSet*);
223cdf0e10cSrcweir 		DECL_LINK( DoubleClickHdl_Impl, ValueSet* );
224cdf0e10cSrcweir 		DECL_LINK( LinkBmpHdl_Impl, CheckBox* );
225cdf0e10cSrcweir 
226cdf0e10cSrcweir 	public:
227cdf0e10cSrcweir 		SvxBitmapPickTabPage(Window* pParent,
228cdf0e10cSrcweir 							   const SfxItemSet& rSet);
229cdf0e10cSrcweir 		~SvxBitmapPickTabPage();
230cdf0e10cSrcweir 
231cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent,
232cdf0e10cSrcweir 								const SfxItemSet& rAttrSet);
233cdf0e10cSrcweir 
234cdf0e10cSrcweir 	virtual void 		ActivatePage(const SfxItemSet& rSet);
235cdf0e10cSrcweir 	virtual int 		DeactivatePage(SfxItemSet *pSet);
236cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
237cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
238cdf0e10cSrcweir 
SetNumCharFmtName(const String & rName)239cdf0e10cSrcweir 	void				SetNumCharFmtName(const String& rName){sNumCharFmtName = rName;}
240cdf0e10cSrcweir };
241cdf0e10cSrcweir 
242cdf0e10cSrcweir /*-----------------01.12.97 16:13-------------------
243cdf0e10cSrcweir 
244cdf0e10cSrcweir --------------------------------------------------*/
245cdf0e10cSrcweir class SvxNumOptionsTabPage : public SfxTabPage
246cdf0e10cSrcweir {
247cdf0e10cSrcweir 	using TabPage::ActivatePage;
248cdf0e10cSrcweir 	using TabPage::DeactivatePage;
249cdf0e10cSrcweir 
250cdf0e10cSrcweir 	FixedLine       aFormatFL;
251cdf0e10cSrcweir     FixedText       aLevelFT;
252cdf0e10cSrcweir 	MultiListBox	aLevelLB;
253cdf0e10cSrcweir 
254cdf0e10cSrcweir     FixedText       aFmtFT;
255cdf0e10cSrcweir 	ListBox     	aFmtLB;
256cdf0e10cSrcweir 	FixedText   	aPrefixFT;
257cdf0e10cSrcweir 	Edit        	aPrefixED;
258cdf0e10cSrcweir 	FixedText   	aSuffixFT;
259cdf0e10cSrcweir 	Edit        	aSuffixED;
260cdf0e10cSrcweir 	FixedText		aCharFmtFT;
261cdf0e10cSrcweir 	ListBox			aCharFmtLB;
262cdf0e10cSrcweir 	FixedText		aBulColorFT;
263cdf0e10cSrcweir 	ColorListBox	aBulColLB;
264cdf0e10cSrcweir 	FixedText 		aBulRelSizeFT;
265cdf0e10cSrcweir 	MetricField		aBulRelSizeMF;
266cdf0e10cSrcweir 	FixedText       aAllLevelFT;
267cdf0e10cSrcweir 	NumericField	aAllLevelNF;
268cdf0e10cSrcweir 	FixedText       aStartFT;
269cdf0e10cSrcweir 	NumericField    aStartED;
270cdf0e10cSrcweir 	PushButton      aBulletPB;
271cdf0e10cSrcweir 	FixedText		aAlignFT;
272cdf0e10cSrcweir 	ListBox			aAlignLB;
273cdf0e10cSrcweir 	FixedText 		aBitmapFT;
274cdf0e10cSrcweir     MenuButton      aBitmapMB;
275cdf0e10cSrcweir 	FixedText 		aSizeFT;
276cdf0e10cSrcweir 	MetricField		aWidthMF;
277cdf0e10cSrcweir 	FixedText		aMultFT;
278cdf0e10cSrcweir 	MetricField		aHeightMF;
279cdf0e10cSrcweir 	CheckBox		aRatioCB;
280cdf0e10cSrcweir 	FixedText		aOrientFT;
281cdf0e10cSrcweir 	ListBox			aOrientLB;
282cdf0e10cSrcweir 
283cdf0e10cSrcweir     FixedLine       aSameLevelFL;
284cdf0e10cSrcweir 	CheckBox		aSameLevelCB;
285cdf0e10cSrcweir 
286cdf0e10cSrcweir 	String 			sNumCharFmtName;
287cdf0e10cSrcweir 	String 			sBulletCharFmtName;
288cdf0e10cSrcweir 
289cdf0e10cSrcweir     Timer           aInvalidateTimer;
290cdf0e10cSrcweir 
291cdf0e10cSrcweir 	SvxNumberingPreview*	pPreviewWIN;
292cdf0e10cSrcweir 
293cdf0e10cSrcweir 	SvxNumRule* 		pActNum;
294cdf0e10cSrcweir 	SvxNumRule* 		pSaveNum;
295cdf0e10cSrcweir 
296cdf0e10cSrcweir 	Size				aInitSize[SVX_MAX_NUM];
297cdf0e10cSrcweir 
298cdf0e10cSrcweir 	sal_Bool				bLastWidthModified 	: 1;
299cdf0e10cSrcweir 	sal_Bool				bModified 			: 1;
300cdf0e10cSrcweir 	sal_Bool				bPreset				: 1;
301cdf0e10cSrcweir 	sal_Bool				bAutomaticCharStyles: 1;
302cdf0e10cSrcweir 	sal_Bool 				bHTMLMode 			: 1;
303cdf0e10cSrcweir 	sal_Bool				bMenuButtonInitialized : 1;
304cdf0e10cSrcweir 
305cdf0e10cSrcweir 	List				aGrfNames;
306cdf0e10cSrcweir 	Font            	aActBulletFont;
307cdf0e10cSrcweir 	String				sBullet;
308cdf0e10cSrcweir 	String				sStartWith;
309cdf0e10cSrcweir 
310cdf0e10cSrcweir 	sal_uInt8            	nBullet;
311cdf0e10cSrcweir 	sal_uInt16				nActNumLvl;
312cdf0e10cSrcweir 	sal_uInt16 				nNumItemId;
313cdf0e10cSrcweir 	SfxMapUnit			eCoreUnit;
314cdf0e10cSrcweir 
315cdf0e10cSrcweir 	void				InitControls();
316cdf0e10cSrcweir 	void				SwitchNumberType( sal_uInt8 nType, sal_Bool bBmp = sal_False );
317cdf0e10cSrcweir     void                CheckForStartValue_Impl(sal_uInt16 nNumberingType);
318cdf0e10cSrcweir 
319cdf0e10cSrcweir 		DECL_LINK( NumberTypeSelectHdl_Impl, ListBox * );
320cdf0e10cSrcweir 		DECL_LINK( LevelHdl_Impl, ListBox * );
321cdf0e10cSrcweir 		DECL_LINK( PopupActivateHdl_Impl, Menu * );
322cdf0e10cSrcweir 		DECL_LINK( GraphicHdl_Impl, MenuButton * );
323cdf0e10cSrcweir 		DECL_LINK( BulletHdl_Impl, Button * );
324cdf0e10cSrcweir 		DECL_LINK( SizeHdl_Impl, MetricField * );
325cdf0e10cSrcweir 		DECL_LINK( RatioHdl_Impl, CheckBox * );
326cdf0e10cSrcweir 		DECL_LINK( CharFmtHdl_Impl, ListBox * );
327cdf0e10cSrcweir 		DECL_LINK( EditModifyHdl_Impl, Edit * );
328cdf0e10cSrcweir 		DECL_LINK( AllLevelHdl_Impl, NumericField * );
329cdf0e10cSrcweir 		DECL_LINK( OrientHdl_Impl, ListBox * );
330cdf0e10cSrcweir 		DECL_LINK( SameLevelHdl_Impl, CheckBox * );
331cdf0e10cSrcweir 		DECL_LINK( BulColorHdl_Impl, ColorListBox* );
332cdf0e10cSrcweir 		DECL_LINK( BulRelSizeHdl_Impl, MetricField *);
333cdf0e10cSrcweir         DECL_LINK( PreviewInvalidateHdl_Impl, Timer* );
334cdf0e10cSrcweir 
335cdf0e10cSrcweir 		DECL_STATIC_LINK( SvxNumOptionsTabPage, GraphicArrivedHdl_Impl, SvxBrushItem* );
336cdf0e10cSrcweir 
337cdf0e10cSrcweir 	public:
338cdf0e10cSrcweir 		SvxNumOptionsTabPage(Window* pParent,
339cdf0e10cSrcweir 							   const SfxItemSet& rSet);
340cdf0e10cSrcweir 		~SvxNumOptionsTabPage();
341cdf0e10cSrcweir 
342cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent,
343cdf0e10cSrcweir 								const SfxItemSet& rAttrSet);
344cdf0e10cSrcweir 
345cdf0e10cSrcweir 	virtual void 		ActivatePage(const SfxItemSet& rSet);
346cdf0e10cSrcweir 	virtual int 		DeactivatePage(SfxItemSet *pSet);
347cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
348cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
349cdf0e10cSrcweir 
350cdf0e10cSrcweir //???	void				SetWrtShell(SwWrtShell* pSh);
SetCharFmts(const String & rNumName,const String & rBulletName)351cdf0e10cSrcweir 	void				SetCharFmts(const String& rNumName, const String& rBulletName )
352cdf0e10cSrcweir 								{
353cdf0e10cSrcweir 									sNumCharFmtName = rNumName;
354cdf0e10cSrcweir 									sBulletCharFmtName = rBulletName;
355cdf0e10cSrcweir 								}
356cdf0e10cSrcweir 	void				SetMetric(FieldUnit eSet);
357cdf0e10cSrcweir 
GetCharFmtListBox()358cdf0e10cSrcweir 	ListBox&			GetCharFmtListBox() {return aCharFmtLB;}
359cdf0e10cSrcweir 	void				SetModified(sal_Bool bRepaint = sal_True);
360cdf0e10cSrcweir 	virtual void 		PageCreated(SfxAllItemSet aSet); // add CHINA001
361cdf0e10cSrcweir };
362cdf0e10cSrcweir 
363cdf0e10cSrcweir /*-----------------03.12.97 10:18-------------------
364cdf0e10cSrcweir 
365cdf0e10cSrcweir --------------------------------------------------*/
366cdf0e10cSrcweir class SvxNumPositionTabPage : public SfxTabPage
367cdf0e10cSrcweir {
368cdf0e10cSrcweir 	using TabPage::ActivatePage;
369cdf0e10cSrcweir 	using TabPage::DeactivatePage;
370cdf0e10cSrcweir 
371cdf0e10cSrcweir 	FixedLine           aPositionFL;
372cdf0e10cSrcweir     FixedText           aLevelFT;
373cdf0e10cSrcweir     MultiListBox        aLevelLB;
374cdf0e10cSrcweir 
375cdf0e10cSrcweir     // --> OD 2008-01-11 #newlistlevelattrs#
376cdf0e10cSrcweir     // former set of controls shown for numbering rules containing list level
377cdf0e10cSrcweir     // attributes in SvxNumberFormat::SvxNumPositionAndSpaceMode == LABEL_WIDTH_AND_POSITION
378cdf0e10cSrcweir 	FixedText       	aDistBorderFT;
379cdf0e10cSrcweir 	MetricField			aDistBorderMF;
380cdf0e10cSrcweir 	CheckBox			aRelativeCB;
381cdf0e10cSrcweir 	FixedText			aIndentFT;
382cdf0e10cSrcweir 	MetricField			aIndentMF;
383cdf0e10cSrcweir 	FixedText       	aDistNumFT;
384cdf0e10cSrcweir 	MetricField			aDistNumMF;
385cdf0e10cSrcweir 	FixedText			aAlignFT;
386cdf0e10cSrcweir 	ListBox				aAlignLB;
387cdf0e10cSrcweir     // <--
388cdf0e10cSrcweir 
389cdf0e10cSrcweir     // --> OD 2008-01-10 #newlistlevelattrs#
390cdf0e10cSrcweir     // new set of controls shown for numbering rules containing list level
391cdf0e10cSrcweir     // attributes in SvxNumberFormat::SvxNumPositionAndSpaceMode == LABEL_ALIGNMENT
392cdf0e10cSrcweir     FixedText           aLabelFollowedByFT;
393cdf0e10cSrcweir     ListBox             aLabelFollowedByLB;
394cdf0e10cSrcweir     FixedText           aListtabFT;
395cdf0e10cSrcweir     MetricField         aListtabMF;
396cdf0e10cSrcweir     FixedText           aAlign2FT;
397cdf0e10cSrcweir     ListBox             aAlign2LB;
398cdf0e10cSrcweir     FixedText           aAlignedAtFT;
399cdf0e10cSrcweir     MetricField         aAlignedAtMF;
400cdf0e10cSrcweir     FixedText           aIndentAtFT;
401cdf0e10cSrcweir     MetricField         aIndentAtMF;
402cdf0e10cSrcweir     // <--
403cdf0e10cSrcweir 
404cdf0e10cSrcweir 	PushButton			aStandardPB;
405cdf0e10cSrcweir 
406cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 1
407cdf0e10cSrcweir 	FixedText* 			pDebugFixedText;
408cdf0e10cSrcweir #endif
409cdf0e10cSrcweir 	SvxNumberingPreview* pPreviewWIN;
410cdf0e10cSrcweir 
411cdf0e10cSrcweir 	SvxNumRule* 		pActNum;
412cdf0e10cSrcweir 	SvxNumRule* 		pSaveNum;
413cdf0e10cSrcweir 
414cdf0e10cSrcweir 	sal_uInt16				nActNumLvl;
415cdf0e10cSrcweir 	sal_uInt16 				nNumItemId;
416cdf0e10cSrcweir 	SfxMapUnit			eCoreUnit;
417cdf0e10cSrcweir 
418cdf0e10cSrcweir 	sal_Bool				bModified 			: 1;
419cdf0e10cSrcweir 	sal_Bool				bPreset				: 1;
420cdf0e10cSrcweir 	sal_Bool				bInInintControl		: 1;  //Modify-Fehler umgehen, soll ab 391 behoben sein
421cdf0e10cSrcweir     // --> OD 2008-01-11 #newlistlevelattrs#
422cdf0e10cSrcweir     bool                bLabelAlignmentPosAndSpaceModeActive;
423cdf0e10cSrcweir     // <--
424cdf0e10cSrcweir 
425cdf0e10cSrcweir     void                InitControls();
426cdf0e10cSrcweir 
427cdf0e10cSrcweir 	DECL_LINK( LevelHdl_Impl, ListBox * );
428cdf0e10cSrcweir 	DECL_LINK( EditModifyHdl_Impl, Edit*);
429cdf0e10cSrcweir 	DECL_LINK( DistanceHdl_Impl, MetricField * );
430cdf0e10cSrcweir 	DECL_LINK( RelativeHdl_Impl, CheckBox * );
431cdf0e10cSrcweir 	DECL_LINK( StandardHdl_Impl, PushButton * );
432cdf0e10cSrcweir 
433cdf0e10cSrcweir     // --> OD 2008-01-11 #newlistlevelattrs#
434cdf0e10cSrcweir     void InitPosAndSpaceMode();
435cdf0e10cSrcweir     void ShowControlsDependingOnPosAndSpaceMode();
436cdf0e10cSrcweir 
437cdf0e10cSrcweir     DECL_LINK( LabelFollowedByHdl_Impl, ListBox* );
438cdf0e10cSrcweir     DECL_LINK( ListtabPosHdl_Impl, MetricField* );
439cdf0e10cSrcweir     DECL_LINK( AlignAtHdl_Impl, MetricField* );
440cdf0e10cSrcweir     DECL_LINK( IndentAtHdl_Impl, MetricField* );
441cdf0e10cSrcweir     // <--
442cdf0e10cSrcweir 
443cdf0e10cSrcweir public:
444cdf0e10cSrcweir 		SvxNumPositionTabPage(Window* pParent,
445cdf0e10cSrcweir 							   const SfxItemSet& rSet);
446cdf0e10cSrcweir 		~SvxNumPositionTabPage();
447cdf0e10cSrcweir 
448cdf0e10cSrcweir 	virtual void 		ActivatePage(const SfxItemSet& rSet);
449cdf0e10cSrcweir 	virtual int 		DeactivatePage(SfxItemSet *pSet);
450cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
451cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
452cdf0e10cSrcweir 
453cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent,
454cdf0e10cSrcweir 								const SfxItemSet& rAttrSet);
455cdf0e10cSrcweir 
456cdf0e10cSrcweir 	void				SetMetric(FieldUnit eSet);
457cdf0e10cSrcweir 	void				SetModified(sal_Bool bRepaint = sal_True);
458cdf0e10cSrcweir 	virtual void 		PageCreated(SfxAllItemSet aSet); // add CHINA001
459cdf0e10cSrcweir };
460cdf0e10cSrcweir 
461cdf0e10cSrcweir #endif
462cdf0e10cSrcweir 
463cdf0e10cSrcweir 
464cdf0e10cSrcweir 
465cdf0e10cSrcweir 
466