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