xref: /aoo42x/main/cui/source/inc/cuitabarea.hxx (revision 64b14621)
1c4eee24dSAndrew Rist /**************************************************************
2c4eee24dSAndrew Rist  *
3c4eee24dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4c4eee24dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5c4eee24dSAndrew Rist  * distributed with this work for additional information
6c4eee24dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7c4eee24dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8c4eee24dSAndrew Rist  * "License"); you may not use this file except in compliance
9c4eee24dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10c4eee24dSAndrew Rist  *
11c4eee24dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13c4eee24dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14c4eee24dSAndrew Rist  * software distributed under the License is distributed on an
15c4eee24dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16c4eee24dSAndrew Rist  * KIND, either express or implied.  See the License for the
17c4eee24dSAndrew Rist  * specific language governing permissions and limitations
18c4eee24dSAndrew Rist  * under the License.
19c4eee24dSAndrew Rist  *
20c4eee24dSAndrew Rist  *************************************************************/
21c4eee24dSAndrew Rist 
22c4eee24dSAndrew Rist 
23cdf0e10cSrcweir #ifndef _CUI_TAB_AREA_HXX
24cdf0e10cSrcweir #define _CUI_TAB_AREA_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // include ---------------------------------------------------------------
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <svx/tabarea.hxx>
2928bcfa49SArmin Le Grand #include <svx/SvxColorValueSet.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir /*************************************************************************
32cdf0e10cSrcweir |*
33cdf0e10cSrcweir |* Fl"achen-Tab-Dialog
34cdf0e10cSrcweir |*
35cdf0e10cSrcweir \************************************************************************/
36cdf0e10cSrcweir 
37cdf0e10cSrcweir class SvxAreaTabDialog : public SfxTabDialog
38cdf0e10cSrcweir {
39cdf0e10cSrcweir private:
40cdf0e10cSrcweir 	SdrModel*           mpDrawModel;
41cdf0e10cSrcweir //	const SdrView*		mpView;
42cdf0e10cSrcweir 
43c7be74b1SArmin Le Grand 	XColorListSharedPtr     maColorTab;
44c7be74b1SArmin Le Grand 	XColorListSharedPtr     maNewColorTab;
45c7be74b1SArmin Le Grand 	XGradientListSharedPtr  maGradientList;
46c7be74b1SArmin Le Grand 	XGradientListSharedPtr  maNewGradientList;
47c7be74b1SArmin Le Grand 	XHatchListSharedPtr     maHatchingList;
48c7be74b1SArmin Le Grand 	XHatchListSharedPtr     maNewHatchingList;
49c7be74b1SArmin Le Grand 	XBitmapListSharedPtr    maBitmapList;
50c7be74b1SArmin Le Grand 	XBitmapListSharedPtr    maNewBitmapList;
51cdf0e10cSrcweir 
52cdf0e10cSrcweir 	const SfxItemSet&   mrOutAttrs;
53cdf0e10cSrcweir 
54cdf0e10cSrcweir 	ChangeType          mnColorTableState;
55cdf0e10cSrcweir 	ChangeType          mnBitmapListState;
56cdf0e10cSrcweir 	ChangeType          mnGradientListState;
57cdf0e10cSrcweir 	ChangeType          mnHatchingListState;
58cdf0e10cSrcweir 
59cdf0e10cSrcweir 	sal_uInt16              mnPageType;
60cdf0e10cSrcweir 	sal_uInt16              mnDlgType;
61cdf0e10cSrcweir 	sal_uInt16              mnPos;
62cdf0e10cSrcweir 	sal_Bool                mbAreaTP;
63cdf0e10cSrcweir 
64cdf0e10cSrcweir 	virtual void        PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
65cdf0e10cSrcweir 
66cdf0e10cSrcweir protected:
67cdf0e10cSrcweir 	virtual short       Ok();
68cdf0e10cSrcweir #ifdef _SVX_TABAREA_CXX
69cdf0e10cSrcweir 	DECL_LINK( CancelHdlImpl, void * );
70cdf0e10cSrcweir 	void                SavePalettes();
71cdf0e10cSrcweir #endif
72cdf0e10cSrcweir 
73cdf0e10cSrcweir public:
74*64b14621SArmin Le Grand 	SvxAreaTabDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, bool bShadow );
75cdf0e10cSrcweir 	~SvxAreaTabDialog();
76cdf0e10cSrcweir 
77c7be74b1SArmin Le Grand 	void SetNewColorTable( XColorListSharedPtr aColTab ) { maNewColorTab = aColTab; }
78c7be74b1SArmin Le Grand 	XColorListSharedPtr GetNewColorTable() const { return maNewColorTab; }
79c7be74b1SArmin Le Grand 	const XColorListSharedPtr GetColorTable() const { return maColorTab; }
80c7be74b1SArmin Le Grand 
81c7be74b1SArmin Le Grand 	void SetNewGradientList( XGradientListSharedPtr aGrdLst) { maNewGradientList = aGrdLst; }
82c7be74b1SArmin Le Grand 	XGradientListSharedPtr GetNewGradientList() const { return maNewGradientList; }
83c7be74b1SArmin Le Grand 	const XGradientListSharedPtr GetGradientList() const { return maGradientList; }
84c7be74b1SArmin Le Grand 
85c7be74b1SArmin Le Grand 	void SetNewHatchingList( XHatchListSharedPtr aHtchLst) { maNewHatchingList = aHtchLst; }
86c7be74b1SArmin Le Grand 	XHatchListSharedPtr GetNewHatchingList() const { return maNewHatchingList; }
87c7be74b1SArmin Le Grand 	const XHatchListSharedPtr GetHatchingList() const { return maHatchingList; }
88c7be74b1SArmin Le Grand 
89c7be74b1SArmin Le Grand 	void SetNewBitmapList( XBitmapListSharedPtr aBmpLst) { maNewBitmapList = aBmpLst; }
90c7be74b1SArmin Le Grand 	XBitmapListSharedPtr GetNewBitmapList() const { return maNewBitmapList; }
91c7be74b1SArmin Le Grand 	const XBitmapListSharedPtr GetBitmapList() const { return maBitmapList; }
92cdf0e10cSrcweir };
93cdf0e10cSrcweir 
94cdf0e10cSrcweir /*************************************************************************
95cdf0e10cSrcweir |*
96cdf0e10cSrcweir |* Transparence-Tab-Page
97cdf0e10cSrcweir |*
98cdf0e10cSrcweir \************************************************************************/
99cdf0e10cSrcweir 
100cdf0e10cSrcweir class SvxTransparenceTabPage : public SvxTabPage
101cdf0e10cSrcweir {
102cdf0e10cSrcweir 	using TabPage::ActivatePage;
103cdf0e10cSrcweir 	using TabPage::DeactivatePage;
104cdf0e10cSrcweir 
105cdf0e10cSrcweir 	const SfxItemSet&   rOutAttrs;
106cdf0e10cSrcweir 	RECT_POINT          eRP;
107cdf0e10cSrcweir 
108cdf0e10cSrcweir 	//CHINA001 sal_uInt16*             pPageType;
109cdf0e10cSrcweir 	//CHINA001 sal_uInt16*             pDlgType;
110cdf0e10cSrcweir 	sal_uInt16             nPageType; //add CHINA001
111cdf0e10cSrcweir 	sal_uInt16             nDlgType;  //add CHINA001
112cdf0e10cSrcweir 
113cdf0e10cSrcweir 	// main selection
114cdf0e10cSrcweir     FixedLine           aFlProp;
115cdf0e10cSrcweir     RadioButton         aRbtTransOff;
116cdf0e10cSrcweir     RadioButton         aRbtTransLinear;
117cdf0e10cSrcweir 	RadioButton         aRbtTransGradient;
118cdf0e10cSrcweir 
119cdf0e10cSrcweir 	// linear transparency
120cdf0e10cSrcweir 	MetricField         aMtrTransparent;
121cdf0e10cSrcweir 
122cdf0e10cSrcweir 	// gradient transparency
123cdf0e10cSrcweir 	FixedText           aFtTrgrType;
124cdf0e10cSrcweir 	ListBox             aLbTrgrGradientType;
125cdf0e10cSrcweir 	FixedText           aFtTrgrCenterX;
126cdf0e10cSrcweir 	MetricField         aMtrTrgrCenterX;
127cdf0e10cSrcweir 	FixedText           aFtTrgrCenterY;
128cdf0e10cSrcweir 	MetricField         aMtrTrgrCenterY;
129cdf0e10cSrcweir 	FixedText           aFtTrgrAngle;
130cdf0e10cSrcweir 	MetricField         aMtrTrgrAngle;
131cdf0e10cSrcweir 	FixedText           aFtTrgrBorder;
132cdf0e10cSrcweir 	MetricField         aMtrTrgrBorder;
133cdf0e10cSrcweir 	FixedText           aFtTrgrStartValue;
134cdf0e10cSrcweir 	MetricField         aMtrTrgrStartValue;
135cdf0e10cSrcweir 	FixedText           aFtTrgrEndValue;
136cdf0e10cSrcweir 	MetricField         aMtrTrgrEndValue;
137cdf0e10cSrcweir 
138cdf0e10cSrcweir 	// preview
139cdf0e10cSrcweir 	SvxXRectPreview     aCtlBitmapPreview;
140cdf0e10cSrcweir 	SvxXRectPreview     aCtlXRectPreview;
141cdf0e10cSrcweir 	sal_Bool				bBitmap;
142cdf0e10cSrcweir 
143cdf0e10cSrcweir 	XOutdevItemPool*    pXPool;
144cdf0e10cSrcweir 	XFillAttrSetItem    aXFillAttr;
145cdf0e10cSrcweir 	SfxItemSet&         rXFSet;
146cdf0e10cSrcweir 
147cdf0e10cSrcweir #ifdef _SVX_TPAREA_CXX
148cdf0e10cSrcweir 	DECL_LINK(ClickTransOffHdl_Impl, void * );
149cdf0e10cSrcweir 	DECL_LINK(ClickTransLinearHdl_Impl, void * );
150cdf0e10cSrcweir 	DECL_LINK(ClickTransGradientHdl_Impl, void * );
151cdf0e10cSrcweir 	DECL_LINK(ModifyTransparentHdl_Impl, void*);
152cdf0e10cSrcweir 	DECL_LINK(ChangeTrgrTypeHdl_Impl, void*);
153cdf0e10cSrcweir 	DECL_LINK(ModifiedTrgrHdl_Impl, void*);
154cdf0e10cSrcweir #endif
155cdf0e10cSrcweir 
156cdf0e10cSrcweir 	void ActivateLinear(sal_Bool bActivate);
157cdf0e10cSrcweir 	void ActivateGradient(sal_Bool bActivate);
158cdf0e10cSrcweir 	void SetControlState_Impl(XGradientStyle eXGS);
159cdf0e10cSrcweir 
160cdf0e10cSrcweir 	sal_Bool InitPreview ( const SfxItemSet& rSet );
161cdf0e10cSrcweir 	void InvalidatePreview (sal_Bool bEnable = sal_True );
162cdf0e10cSrcweir 
163cdf0e10cSrcweir public:
164cdf0e10cSrcweir 	SvxTransparenceTabPage(Window* pParent, const SfxItemSet& rInAttrs);
165cdf0e10cSrcweir 	void Construct();
166cdf0e10cSrcweir 
167cdf0e10cSrcweir 	static SfxTabPage* Create(Window*, const SfxItemSet&);
168cdf0e10cSrcweir 	static sal_uInt16* GetRanges();
169cdf0e10cSrcweir 
170cdf0e10cSrcweir 	virtual sal_Bool FillItemSet(SfxItemSet&);
171cdf0e10cSrcweir 	virtual void Reset(const SfxItemSet&);
172cdf0e10cSrcweir 	virtual void ActivatePage(const SfxItemSet& rSet);
173cdf0e10cSrcweir 	virtual int  DeactivatePage(SfxItemSet* pSet);
174cdf0e10cSrcweir 	virtual void PointChanged(Window* pWindow, RECT_POINT eRP);
175cdf0e10cSrcweir 
176cdf0e10cSrcweir 	//CHINA001 void SetPageType(sal_uInt16 *pInType) { pPageType = pInType; }
177cdf0e10cSrcweir 	//CHINA001 void SetDlgType(sal_uInt16* pInType) { pDlgType = pInType; }
178cdf0e10cSrcweir 	void SetPageType(sal_uInt16 nInType) { nPageType = nInType; } //add CHINA001
179cdf0e10cSrcweir 	void SetDlgType(sal_uInt16 nInType) { nDlgType = nInType; }//add CHINA001
180cdf0e10cSrcweir 	virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001
181cdf0e10cSrcweir };
182cdf0e10cSrcweir 
183cdf0e10cSrcweir /*************************************************************************
184cdf0e10cSrcweir |*
185cdf0e10cSrcweir |* Fl"achen-Tab-Page
186cdf0e10cSrcweir |*
187cdf0e10cSrcweir \************************************************************************/
188cdf0e10cSrcweir 
189cdf0e10cSrcweir class SvxAreaTabPage : public SvxTabPage
190cdf0e10cSrcweir {
191cdf0e10cSrcweir 	using TabPage::ActivatePage;
192cdf0e10cSrcweir 	using TabPage::DeactivatePage;
193cdf0e10cSrcweir 
194cdf0e10cSrcweir private:
195cdf0e10cSrcweir     FixedLine           aFlProp;
196cdf0e10cSrcweir     ListBox             aTypeLB;
197cdf0e10cSrcweir 
198cdf0e10cSrcweir 	ColorLB             aLbColor;
199cdf0e10cSrcweir 	GradientLB          aLbGradient;
200cdf0e10cSrcweir 	HatchingLB          aLbHatching;
201cdf0e10cSrcweir 	BitmapLB            aLbBitmap;
202cdf0e10cSrcweir 	SvxXRectPreview     aCtlBitmapPreview;
203cdf0e10cSrcweir 
204cdf0e10cSrcweir 	TriStateBox         aTsbStepCount;
205cdf0e10cSrcweir     FixedLine           aFlStepCount;
206cdf0e10cSrcweir 	NumericField        aNumFldStepCount;
207cdf0e10cSrcweir 
208cdf0e10cSrcweir 	CheckBox			aCbxHatchBckgrd;
209cdf0e10cSrcweir 	ColorLB             aLbHatchBckgrdColor;
210cdf0e10cSrcweir 
211cdf0e10cSrcweir     FixedLine           aFlSize;
212cdf0e10cSrcweir 	TriStateBox			aTsbOriginal;
213cdf0e10cSrcweir 	TriStateBox			aTsbScale;
214cdf0e10cSrcweir 	FixedText			aFtXSize;
215cdf0e10cSrcweir 	MetricField			aMtrFldXSize;
216cdf0e10cSrcweir 	FixedText			aFtYSize;
217cdf0e10cSrcweir 	MetricField			aMtrFldYSize;
218cdf0e10cSrcweir     FixedLine           aFlPosition;
219cdf0e10cSrcweir 	SvxRectCtl			aCtlPosition;
220cdf0e10cSrcweir 	FixedText			aFtXOffset;
221cdf0e10cSrcweir 	MetricField			aMtrFldXOffset;
222cdf0e10cSrcweir 	FixedText			aFtYOffset;
223cdf0e10cSrcweir 	MetricField			aMtrFldYOffset;
224cdf0e10cSrcweir 	TriStateBox         aTsbTile;
225cdf0e10cSrcweir 	TriStateBox         aTsbStretch;
226cdf0e10cSrcweir     FixedLine           aFlOffset;
227cdf0e10cSrcweir 	RadioButton			aRbtRow;
228cdf0e10cSrcweir 	RadioButton			aRbtColumn;
229cdf0e10cSrcweir 	MetricField			aMtrFldOffset;
230cdf0e10cSrcweir 
231cdf0e10cSrcweir 	SvxXRectPreview     aCtlXRectPreview;
232cdf0e10cSrcweir 
233cdf0e10cSrcweir 	const SfxItemSet&   rOutAttrs;
234cdf0e10cSrcweir 	RECT_POINT          eRP;
235cdf0e10cSrcweir 
236c7be74b1SArmin Le Grand 	XColorListSharedPtr     maColorTab;
237c7be74b1SArmin Le Grand 	XGradientListSharedPtr  maGradientList;
238c7be74b1SArmin Le Grand 	XHatchListSharedPtr     maHatchingList;
239c7be74b1SArmin Le Grand 	XBitmapListSharedPtr    maBitmapList;
240cdf0e10cSrcweir 
241cdf0e10cSrcweir 	ChangeType*         pnColorTableState;
242cdf0e10cSrcweir 	ChangeType*         pnBitmapListState;
243cdf0e10cSrcweir 	ChangeType*         pnGradientListState;
244cdf0e10cSrcweir 	ChangeType*         pnHatchingListState;
245cdf0e10cSrcweir 
246cdf0e10cSrcweir 	//CHINA001 sal_uInt16*             pPageType;
247cdf0e10cSrcweir 	//CHINA001 sal_uInt16*             pDlgType;
248cdf0e10cSrcweir 	//CHINA001 sal_uInt16*             pPos;
249cdf0e10cSrcweir 	sal_uInt16 nPageType; //add CHINA001
250cdf0e10cSrcweir 	sal_uInt16 nDlgType;//add CHINA001
251cdf0e10cSrcweir 	sal_uInt16 nPos; //add CHINA001
252cdf0e10cSrcweir 
253cdf0e10cSrcweir 	sal_Bool*               pbAreaTP;
254cdf0e10cSrcweir 
255cdf0e10cSrcweir 	XOutdevItemPool*    pXPool;
256cdf0e10cSrcweir 	XFillAttrSetItem    aXFillAttr;
257cdf0e10cSrcweir 	SfxItemSet&         rXFSet;
258cdf0e10cSrcweir 
259cdf0e10cSrcweir 	SfxMapUnit			ePoolUnit;
260cdf0e10cSrcweir 	FieldUnit			eFUnit;
261cdf0e10cSrcweir 
262cdf0e10cSrcweir #ifdef _SVX_TPAREA_CXX
263cdf0e10cSrcweir 	DECL_LINK( SelectDialogTypeHdl_Impl, ListBox * );
264cdf0e10cSrcweir 	DECL_LINK( ClickInvisibleHdl_Impl, void * );
265cdf0e10cSrcweir 	DECL_LINK( ClickColorHdl_Impl, void * );
266cdf0e10cSrcweir 	DECL_LINK( ModifyColorHdl_Impl, void * );
267cdf0e10cSrcweir 	DECL_LINK( ModifyHatchBckgrdColorHdl_Impl, void * );
268cdf0e10cSrcweir 	DECL_LINK( ClickGradientHdl_Impl, void * );
269cdf0e10cSrcweir 	DECL_LINK( ModifyGradientHdl_Impl, void * );
270cdf0e10cSrcweir 	DECL_LINK( ClickHatchingHdl_Impl, void * );
271cdf0e10cSrcweir 	DECL_LINK( ModifyHatchingHdl_Impl, void * );
272cdf0e10cSrcweir 	DECL_LINK( ToggleHatchBckgrdColorHdl_Impl, void * );
273cdf0e10cSrcweir 	DECL_LINK( ClickBitmapHdl_Impl, void * );
274cdf0e10cSrcweir 	DECL_LINK( ModifyBitmapHdl_Impl, void * );
275cdf0e10cSrcweir //	DECL_LINK( ModifyTransparentHdl_Impl, void * );
276cdf0e10cSrcweir 	DECL_LINK( ModifyStepCountHdl_Impl, void * );
277cdf0e10cSrcweir 	DECL_LINK( ModifyTileHdl_Impl, void * );
278cdf0e10cSrcweir 	DECL_LINK( ClickScaleHdl_Impl, void * );
279cdf0e10cSrcweir #endif
280cdf0e10cSrcweir 
281cdf0e10cSrcweir public:
282cdf0e10cSrcweir 	SvxAreaTabPage( Window* pParent, const SfxItemSet& rInAttrs  );
283cdf0e10cSrcweir 
284cdf0e10cSrcweir 	void    Construct();
285cdf0e10cSrcweir 
286cdf0e10cSrcweir 	static  SfxTabPage* Create( Window*, const SfxItemSet& );
287cdf0e10cSrcweir 	static  sal_uInt16*	    GetRanges();
288cdf0e10cSrcweir 
289cdf0e10cSrcweir 	virtual sal_Bool FillItemSet( SfxItemSet& );
290cdf0e10cSrcweir 	virtual void Reset( const SfxItemSet & );
291cdf0e10cSrcweir 	virtual void ActivatePage( const SfxItemSet& rSet );
292cdf0e10cSrcweir 	virtual int  DeactivatePage( SfxItemSet* pSet );
293cdf0e10cSrcweir 	virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
294cdf0e10cSrcweir 
295c7be74b1SArmin Le Grand 	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
296c7be74b1SArmin Le Grand 	void    SetGradientList( XGradientListSharedPtr aGrdLst) { maGradientList = aGrdLst; }
297c7be74b1SArmin Le Grand 	void    SetHatchingList( XHatchListSharedPtr aHtchLst) { maHatchingList = aHtchLst; }
298c7be74b1SArmin Le Grand 	void    SetBitmapList( XBitmapListSharedPtr aBmpLst) { maBitmapList = aBmpLst; }
299cdf0e10cSrcweir 
300cdf0e10cSrcweir 	//CHINA001 void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
301cdf0e10cSrcweir 	void    SetPageType( sal_uInt16 nInType ) { nPageType = nInType; } //add CHINA001
302cdf0e10cSrcweir 	//CHINA001 void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
303cdf0e10cSrcweir 	void    SetDlgType( sal_uInt16 nInType ) { nDlgType = nInType; }//add CHINA001
304cdf0e10cSrcweir 	//CHINA001 void    SetPos( sal_uInt16* pInPos ) { pPos = pInPos; }
305cdf0e10cSrcweir 	void    SetPos( sal_uInt16 nInPos ) { nPos = nInPos; }//add CHINA001
306cdf0e10cSrcweir 	void    SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; }
307cdf0e10cSrcweir 	virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001
308cdf0e10cSrcweir 	void    SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; }
309cdf0e10cSrcweir 	void    SetGrdChgd( ChangeType* pIn ) { pnGradientListState = pIn; }
310cdf0e10cSrcweir 	void    SetHtchChgd( ChangeType* pIn ) { pnHatchingListState = pIn; }
311cdf0e10cSrcweir 	void    SetBmpChgd( ChangeType* pIn ) { pnBitmapListState = pIn; }
312cdf0e10cSrcweir };
313cdf0e10cSrcweir 
314cdf0e10cSrcweir /*************************************************************************
315cdf0e10cSrcweir |*
316cdf0e10cSrcweir |* Schatten-Tab-Page
317cdf0e10cSrcweir |*
318cdf0e10cSrcweir \************************************************************************/
319cdf0e10cSrcweir 
320cdf0e10cSrcweir class SvxShadowTabPage : public SvxTabPage
321cdf0e10cSrcweir {
322cdf0e10cSrcweir 	using TabPage::ActivatePage;
323cdf0e10cSrcweir 	using TabPage::DeactivatePage;
324cdf0e10cSrcweir 
325cdf0e10cSrcweir private:
326cdf0e10cSrcweir     FixedLine           aFlProp;
327cdf0e10cSrcweir     TriStateBox         aTsbShowShadow;
328cdf0e10cSrcweir 	FixedText           aFtPosition;
329cdf0e10cSrcweir 	SvxRectCtl          aCtlPosition;
330cdf0e10cSrcweir 	FixedText           aFtDistance;
331cdf0e10cSrcweir 	MetricField         aMtrDistance;
332cdf0e10cSrcweir 	FixedText           aFtShadowColor;
333cdf0e10cSrcweir 	ColorLB             aLbShadowColor;
334cdf0e10cSrcweir 	FixedText           aFtTransparent;
335cdf0e10cSrcweir 	MetricField         aMtrTransparent;
336cdf0e10cSrcweir 	SvxXShadowPreview	aCtlXRectPreview;
337cdf0e10cSrcweir 
338cdf0e10cSrcweir 	const SfxItemSet&   rOutAttrs;
339cdf0e10cSrcweir 	RECT_POINT          eRP;
340cdf0e10cSrcweir 
341c7be74b1SArmin Le Grand 	XColorListSharedPtr maColorTab;
342cdf0e10cSrcweir 	ChangeType*         pnColorTableState;
343cdf0e10cSrcweir 	sal_uInt16				nPageType;	//add CHINA001
344cdf0e10cSrcweir 	sal_uInt16				nDlgType;	//add CHINA001
345cdf0e10cSrcweir 	sal_uInt16*             pPos;
346cdf0e10cSrcweir 	sal_Bool*               pbAreaTP;
347cdf0e10cSrcweir 
348cdf0e10cSrcweir 	sal_Bool				bDisable;
349cdf0e10cSrcweir 
350cdf0e10cSrcweir 	XOutdevItemPool*    pXPool;
351cdf0e10cSrcweir 	XFillAttrSetItem    aXFillAttr;
352cdf0e10cSrcweir 	SfxItemSet&         rXFSet;
353cdf0e10cSrcweir 	SfxMapUnit			ePoolUnit;
354cdf0e10cSrcweir 
355cdf0e10cSrcweir #ifdef _SVX_TPSHADOW_CXX
356cdf0e10cSrcweir 	DECL_LINK( ClickShadowHdl_Impl, void * );
357cdf0e10cSrcweir 	DECL_LINK( ModifyShadowHdl_Impl, void * );
358cdf0e10cSrcweir #endif
359cdf0e10cSrcweir 
360cdf0e10cSrcweir public:
361cdf0e10cSrcweir 	SvxShadowTabPage( Window* pParent, const SfxItemSet& rInAttrs  );
362cdf0e10cSrcweir 
363cdf0e10cSrcweir 	void    Construct();
364cdf0e10cSrcweir 	static  SfxTabPage* Create( Window*, const SfxItemSet& );
365cdf0e10cSrcweir 	static  sal_uInt16*	    GetRanges();
366cdf0e10cSrcweir 
367cdf0e10cSrcweir 	virtual sal_Bool FillItemSet( SfxItemSet& );
368cdf0e10cSrcweir 	virtual void Reset( const SfxItemSet & );
369cdf0e10cSrcweir 	virtual void ActivatePage( const SfxItemSet& rSet );
370cdf0e10cSrcweir 	virtual int  DeactivatePage( SfxItemSet* pSet );
371cdf0e10cSrcweir 	virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
372cdf0e10cSrcweir 
373c7be74b1SArmin Le Grand 	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
374cdf0e10cSrcweir //CHINA001	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
375cdf0e10cSrcweir //CHINA001	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
376cdf0e10cSrcweir 	void    SetPageType( sal_uInt16 nInType ) { nPageType = nInType; } //add CHINA001
377cdf0e10cSrcweir 	void    SetDlgType( sal_uInt16 nInType ) { nDlgType = nInType; }	//add CHINA001
378cdf0e10cSrcweir 	void    SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; }
379cdf0e10cSrcweir 	void    SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; }
380cdf0e10cSrcweir 	virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001
381cdf0e10cSrcweir 	void	DisablePage( sal_Bool bIn ) { bDisable = bIn; }
382cdf0e10cSrcweir };
383cdf0e10cSrcweir 
384cdf0e10cSrcweir /*************************************************************************
385cdf0e10cSrcweir |*
386cdf0e10cSrcweir |* Farbverlauf-Tab-Page
387cdf0e10cSrcweir |*
388cdf0e10cSrcweir \************************************************************************/
389cdf0e10cSrcweir 
390cdf0e10cSrcweir class SvxGradientTabPage : public SfxTabPage
391cdf0e10cSrcweir {
392cdf0e10cSrcweir 	using TabPage::ActivatePage;
393cdf0e10cSrcweir 	using TabPage::DeactivatePage;
394cdf0e10cSrcweir 
395cdf0e10cSrcweir private:
396cdf0e10cSrcweir     FixedLine           aFlProp;
397cdf0e10cSrcweir 	FixedText           aFtType;
398cdf0e10cSrcweir 	ListBox             aLbGradientType;
399cdf0e10cSrcweir 	FixedText           aFtCenterX;
400cdf0e10cSrcweir 	MetricField         aMtrCenterX;
401cdf0e10cSrcweir 	FixedText           aFtCenterY;
402cdf0e10cSrcweir 	MetricField         aMtrCenterY;
403cdf0e10cSrcweir 	FixedText           aFtAngle;
404cdf0e10cSrcweir 	MetricField         aMtrAngle;
405cdf0e10cSrcweir 	FixedText           aFtBorder;
406cdf0e10cSrcweir 	MetricField         aMtrBorder;
407cdf0e10cSrcweir 	FixedText           aFtColorFrom;
408cdf0e10cSrcweir 	ColorLB             aLbColorFrom;
409cdf0e10cSrcweir 	MetricField         aMtrColorFrom;
410cdf0e10cSrcweir 	FixedText           aFtColorTo;
411cdf0e10cSrcweir 	ColorLB             aLbColorTo;
412cdf0e10cSrcweir 	MetricField         aMtrColorTo;
413cdf0e10cSrcweir 	GradientLB          aLbGradients;
414cdf0e10cSrcweir 	SvxXRectPreview     aCtlPreview;
415cdf0e10cSrcweir 	PushButton          aBtnAdd;
416cdf0e10cSrcweir 	PushButton          aBtnModify;
417cdf0e10cSrcweir 	PushButton          aBtnDelete;
418cdf0e10cSrcweir 	ImageButton         aBtnLoad;
419cdf0e10cSrcweir 	ImageButton         aBtnSave;
420cdf0e10cSrcweir 
421cdf0e10cSrcweir 	const SfxItemSet&   rOutAttrs;
422cdf0e10cSrcweir 
423c7be74b1SArmin Le Grand 	XColorListSharedPtr     maColorTab;
424c7be74b1SArmin Le Grand 	XGradientListSharedPtr  maGradientList;
425cdf0e10cSrcweir 
426cdf0e10cSrcweir 	ChangeType*         pnGradientListState;
427cdf0e10cSrcweir 	ChangeType*         pnColorTableState;
428cdf0e10cSrcweir 	sal_uInt16*             pPageType;
429cdf0e10cSrcweir 	sal_uInt16*             pDlgType;
430cdf0e10cSrcweir 	sal_uInt16*             pPos;
431cdf0e10cSrcweir 	sal_Bool*               pbAreaTP;
432cdf0e10cSrcweir 
433cdf0e10cSrcweir 	XOutdevItemPool*    pXPool;
434cdf0e10cSrcweir 	XFillStyleItem      aXFStyleItem;
435cdf0e10cSrcweir 	XFillGradientItem   aXGradientItem;
436cdf0e10cSrcweir 	XFillAttrSetItem    aXFillAttr;
437cdf0e10cSrcweir 	SfxItemSet&         rXFSet;
438cdf0e10cSrcweir 
439cdf0e10cSrcweir #ifdef _SVX_TPGRADNT_CXX
440cdf0e10cSrcweir 	DECL_LINK( ClickAddHdl_Impl, void * );
441cdf0e10cSrcweir 	DECL_LINK( ClickModifyHdl_Impl, void * );
442cdf0e10cSrcweir 	DECL_LINK( ClickDeleteHdl_Impl, void * );
443cdf0e10cSrcweir 	DECL_LINK( ChangeGradientHdl_Impl, void * );
444cdf0e10cSrcweir 	DECL_LINK( ModifiedHdl_Impl, void * );
445cdf0e10cSrcweir 	DECL_LINK( ClickLoadHdl_Impl, void * );
446cdf0e10cSrcweir 	DECL_LINK( ClickSaveHdl_Impl, void * );
447cdf0e10cSrcweir 
448cdf0e10cSrcweir 	long CheckChanges_Impl();
449cdf0e10cSrcweir 	void SetControlState_Impl( XGradientStyle eXGS );
450cdf0e10cSrcweir #endif
451cdf0e10cSrcweir 
452cdf0e10cSrcweir public:
453cdf0e10cSrcweir 	SvxGradientTabPage( Window* pParent, const SfxItemSet& rInAttrs  );
454cdf0e10cSrcweir 
455cdf0e10cSrcweir 	void    Construct();
456cdf0e10cSrcweir 
457cdf0e10cSrcweir 	static  SfxTabPage* Create( Window*, const SfxItemSet& );
458cdf0e10cSrcweir 	virtual sal_Bool FillItemSet( SfxItemSet& );
459cdf0e10cSrcweir 	virtual void Reset( const SfxItemSet & );
460cdf0e10cSrcweir 
461cdf0e10cSrcweir 	virtual void ActivatePage( const SfxItemSet& rSet );
462cdf0e10cSrcweir 	virtual int  DeactivatePage( SfxItemSet* pSet );
463cdf0e10cSrcweir 
464c7be74b1SArmin Le Grand 	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
465c7be74b1SArmin Le Grand 	void    SetGradientList( XGradientListSharedPtr aGrdLst) { maGradientList = aGrdLst; }
466cdf0e10cSrcweir 
467cdf0e10cSrcweir 	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
468cdf0e10cSrcweir 	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
469cdf0e10cSrcweir 	void    SetPos( sal_uInt16* pInPos ) { pPos = pInPos; }
470cdf0e10cSrcweir 	void    SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; }
471cdf0e10cSrcweir 
472cdf0e10cSrcweir 	void    SetGrdChgd( ChangeType* pIn ) { pnGradientListState = pIn; }
473cdf0e10cSrcweir 	void    SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; }
474cdf0e10cSrcweir };
475cdf0e10cSrcweir 
476cdf0e10cSrcweir /*************************************************************************
477cdf0e10cSrcweir |*
478cdf0e10cSrcweir |* Schraffuren-Tab-Page
479cdf0e10cSrcweir |*
480cdf0e10cSrcweir \************************************************************************/
481cdf0e10cSrcweir 
482cdf0e10cSrcweir class SvxHatchTabPage : public SvxTabPage
483cdf0e10cSrcweir {
484cdf0e10cSrcweir 	using TabPage::ActivatePage;
485cdf0e10cSrcweir 	using TabPage::DeactivatePage;
486cdf0e10cSrcweir 
487cdf0e10cSrcweir private:
488cdf0e10cSrcweir 	FixedText           aFtDistance;
489cdf0e10cSrcweir 	MetricField         aMtrDistance;
490cdf0e10cSrcweir 	FixedText           aFtAngle;
491cdf0e10cSrcweir 	MetricField         aMtrAngle;
492cdf0e10cSrcweir 	SvxRectCtl          aCtlAngle;
493cdf0e10cSrcweir     FixedLine           aFlProp;
494cdf0e10cSrcweir 	FixedText           aFtLineType;
495cdf0e10cSrcweir 	ListBox             aLbLineType;
496cdf0e10cSrcweir 	FixedText           aFtLineColor;
497cdf0e10cSrcweir 	ColorLB             aLbLineColor;
498cdf0e10cSrcweir 	HatchingLB          aLbHatchings;
499cdf0e10cSrcweir 	SvxXRectPreview     aCtlPreview;
500cdf0e10cSrcweir 	PushButton          aBtnAdd;
501cdf0e10cSrcweir 	PushButton          aBtnModify;
502cdf0e10cSrcweir 	PushButton          aBtnDelete;
503cdf0e10cSrcweir 	ImageButton         aBtnLoad;
504cdf0e10cSrcweir 	ImageButton         aBtnSave;
505cdf0e10cSrcweir 
506cdf0e10cSrcweir 	const SfxItemSet&   rOutAttrs;
507cdf0e10cSrcweir 	RECT_POINT          eRP;
508cdf0e10cSrcweir 
509c7be74b1SArmin Le Grand 	XColorListSharedPtr maColorTab;
510c7be74b1SArmin Le Grand 	XHatchListSharedPtr maHatchingList;
511cdf0e10cSrcweir 
512cdf0e10cSrcweir 	ChangeType*         pnHatchingListState;
513cdf0e10cSrcweir 	ChangeType*         pnColorTableState;
514cdf0e10cSrcweir 	sal_uInt16*             pPageType;
515cdf0e10cSrcweir 	sal_uInt16*             pDlgType;
516cdf0e10cSrcweir 	sal_uInt16*             pPos;
517cdf0e10cSrcweir 	sal_Bool*               pbAreaTP;
518cdf0e10cSrcweir 
519cdf0e10cSrcweir 	XOutdevItemPool*    pXPool;
520cdf0e10cSrcweir 	XFillStyleItem      aXFStyleItem;
521cdf0e10cSrcweir 	XFillHatchItem      aXHatchItem;
522cdf0e10cSrcweir 	XFillAttrSetItem    aXFillAttr;
523cdf0e10cSrcweir 	SfxItemSet&         rXFSet;
524cdf0e10cSrcweir 
525cdf0e10cSrcweir 	SfxMapUnit			ePoolUnit;
526cdf0e10cSrcweir 
527cdf0e10cSrcweir #ifdef _SVX_TPHATCH_CXX
528cdf0e10cSrcweir 	DECL_LINK( ChangeHatchHdl_Impl, void * );
529cdf0e10cSrcweir 	DECL_LINK( ModifiedHdl_Impl, void * );
530cdf0e10cSrcweir 	DECL_LINK( ClickAddHdl_Impl, void * );
531cdf0e10cSrcweir 	DECL_LINK( ClickModifyHdl_Impl, void * );
532cdf0e10cSrcweir 	DECL_LINK( ClickDeleteHdl_Impl, void * );
533cdf0e10cSrcweir 	DECL_LINK( ClickLoadHdl_Impl, void * );
534cdf0e10cSrcweir 	DECL_LINK( ClickSaveHdl_Impl, void * );
535cdf0e10cSrcweir 
536cdf0e10cSrcweir 	long CheckChanges_Impl();
537cdf0e10cSrcweir #endif
538cdf0e10cSrcweir 
539cdf0e10cSrcweir public:
540cdf0e10cSrcweir 	SvxHatchTabPage( Window* pParent, const SfxItemSet& rInAttrs  );
541cdf0e10cSrcweir 
542cdf0e10cSrcweir 	void    Construct();
543cdf0e10cSrcweir 
544cdf0e10cSrcweir 	static  SfxTabPage* Create( Window*, const SfxItemSet& );
545cdf0e10cSrcweir 	virtual sal_Bool FillItemSet( SfxItemSet& );
546cdf0e10cSrcweir 	virtual void Reset( const SfxItemSet & );
547cdf0e10cSrcweir 
548cdf0e10cSrcweir 	virtual void ActivatePage( const SfxItemSet& rSet );
549cdf0e10cSrcweir 	virtual int  DeactivatePage( SfxItemSet* pSet );
550cdf0e10cSrcweir 
551cdf0e10cSrcweir 	virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
552cdf0e10cSrcweir 
553c7be74b1SArmin Le Grand 	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
554c7be74b1SArmin Le Grand 	void    SetHatchingList( XHatchListSharedPtr aHtchLst) { maHatchingList = aHtchLst; }
555cdf0e10cSrcweir 
556cdf0e10cSrcweir 	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
557cdf0e10cSrcweir 	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
558cdf0e10cSrcweir 	void    SetPos( sal_uInt16* pInPos ) { pPos = pInPos; }
559cdf0e10cSrcweir 	void    SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; }
560cdf0e10cSrcweir 
561cdf0e10cSrcweir 	void    SetHtchChgd( ChangeType* pIn ) { pnHatchingListState = pIn; }
562cdf0e10cSrcweir 	void    SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; }
563cdf0e10cSrcweir 
564cdf0e10cSrcweir 	virtual void		DataChanged( const DataChangedEvent& rDCEvt );
565cdf0e10cSrcweir };
566cdf0e10cSrcweir 
567cdf0e10cSrcweir /*************************************************************************
568cdf0e10cSrcweir |*
569cdf0e10cSrcweir |* Bitmap-Tab-Page
570cdf0e10cSrcweir |*
571cdf0e10cSrcweir \************************************************************************/
572cdf0e10cSrcweir 
573cdf0e10cSrcweir class SvxBitmapTabPage : public SvxTabPage
574cdf0e10cSrcweir {
575cdf0e10cSrcweir 	using TabPage::ActivatePage;
576cdf0e10cSrcweir 	using TabPage::DeactivatePage;
577cdf0e10cSrcweir 
578cdf0e10cSrcweir private:
579cdf0e10cSrcweir 	SvxPixelCtl         aCtlPixel;
580cdf0e10cSrcweir     FixedText           aFtPixelEdit;
581cdf0e10cSrcweir 	FixedText           aFtColor;
582cdf0e10cSrcweir 	ColorLB             aLbColor;
583cdf0e10cSrcweir 	FixedText           aFtBackgroundColor;
584cdf0e10cSrcweir 	ColorLB             aLbBackgroundColor;
585cdf0e10cSrcweir 	FixedText           aLbBitmapsHidden;
586cdf0e10cSrcweir 	BitmapLB            aLbBitmaps;
587cdf0e10cSrcweir     FixedLine           aFlProp;
588cdf0e10cSrcweir 	SvxXRectPreview     aCtlPreview;
589cdf0e10cSrcweir 	PushButton          aBtnAdd;
590cdf0e10cSrcweir 	PushButton          aBtnModify;
591cdf0e10cSrcweir 	PushButton          aBtnImport;
592cdf0e10cSrcweir 	PushButton          aBtnDelete;
593cdf0e10cSrcweir 	ImageButton         aBtnLoad;
594cdf0e10cSrcweir 	ImageButton         aBtnSave;
595cdf0e10cSrcweir 
596cdf0e10cSrcweir 	SvxBitmapCtl        aBitmapCtl;
597cdf0e10cSrcweir 
598cdf0e10cSrcweir 	const SfxItemSet&   rOutAttrs;
599cdf0e10cSrcweir 
600c7be74b1SArmin Le Grand 	XColorListSharedPtr     maColorTab;
601c7be74b1SArmin Le Grand 	XBitmapListSharedPtr    maBitmapList;
602cdf0e10cSrcweir 
603cdf0e10cSrcweir 	ChangeType*         pnBitmapListState;
604cdf0e10cSrcweir 	ChangeType*         pnColorTableState;
605cdf0e10cSrcweir 	sal_uInt16*             pPageType;
606cdf0e10cSrcweir 	sal_uInt16*             pDlgType;
607cdf0e10cSrcweir 	sal_uInt16*             pPos;
608cdf0e10cSrcweir 	sal_Bool*               pbAreaTP;
609cdf0e10cSrcweir 
610cdf0e10cSrcweir 	sal_Bool                bBmpChanged;
611cdf0e10cSrcweir 
612cdf0e10cSrcweir 	XOutdevItemPool*    pXPool;
613cdf0e10cSrcweir 	XFillStyleItem      aXFStyleItem;
614cdf0e10cSrcweir 	XFillBitmapItem     aXBitmapItem;
615cdf0e10cSrcweir 	XFillAttrSetItem    aXFillAttr;
616cdf0e10cSrcweir 	SfxItemSet&         rXFSet;
617cdf0e10cSrcweir 
618cdf0e10cSrcweir #ifdef _SVX_TPBITMAP_CXX
619cdf0e10cSrcweir 	DECL_LINK( ClickAddHdl_Impl, void * );
620cdf0e10cSrcweir 	DECL_LINK( ClickImportHdl_Impl, void * );
621cdf0e10cSrcweir 	DECL_LINK( ClickModifyHdl_Impl, void * );
622cdf0e10cSrcweir 	DECL_LINK( ClickDeleteHdl_Impl, void * );
623cdf0e10cSrcweir 	DECL_LINK( ChangeBitmapHdl_Impl, void * );
624cdf0e10cSrcweir 	DECL_LINK( ChangePixelColorHdl_Impl, void * );
625cdf0e10cSrcweir 	DECL_LINK( ChangeBackgrndColorHdl_Impl, void * );
626cdf0e10cSrcweir 	DECL_LINK( ClickLoadHdl_Impl, void * );
627cdf0e10cSrcweir 	DECL_LINK( ClickSaveHdl_Impl, void * );
628cdf0e10cSrcweir 
629cdf0e10cSrcweir 	long CheckChanges_Impl();
630cdf0e10cSrcweir #endif
631cdf0e10cSrcweir 
632cdf0e10cSrcweir public:
633cdf0e10cSrcweir 	SvxBitmapTabPage( Window* pParent, const SfxItemSet& rInAttrs  );
634cdf0e10cSrcweir 
635cdf0e10cSrcweir 	void    Construct();
636cdf0e10cSrcweir 
637cdf0e10cSrcweir 	static  SfxTabPage* Create( Window*, const SfxItemSet& );
638cdf0e10cSrcweir 	virtual sal_Bool FillItemSet( SfxItemSet& );
639cdf0e10cSrcweir 	virtual void Reset( const SfxItemSet & );
640cdf0e10cSrcweir 
641cdf0e10cSrcweir 	virtual void ActivatePage( const SfxItemSet& rSet );
642cdf0e10cSrcweir 	virtual int  DeactivatePage( SfxItemSet* pSet );
643cdf0e10cSrcweir 
644cdf0e10cSrcweir 	virtual void PointChanged( Window* pWindow, RECT_POINT eRP );
645cdf0e10cSrcweir 
646c7be74b1SArmin Le Grand 	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
647c7be74b1SArmin Le Grand 	void    SetBitmapList( XBitmapListSharedPtr aBmpLst) { maBitmapList = aBmpLst; }
648cdf0e10cSrcweir 
649cdf0e10cSrcweir 	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
650cdf0e10cSrcweir 	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
651cdf0e10cSrcweir 	void    SetPos( sal_uInt16* pInPos ) { pPos = pInPos; }
652cdf0e10cSrcweir 	void    SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; }
653cdf0e10cSrcweir 
654cdf0e10cSrcweir 	void    SetBmpChgd( ChangeType* pIn ) { pnBitmapListState = pIn; }
655cdf0e10cSrcweir 	void    SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; }
656cdf0e10cSrcweir 
657cdf0e10cSrcweir     /** Return a label that is associated with the given control.  This
658cdf0e10cSrcweir         label is used to the determine the name for the control.
659cdf0e10cSrcweir         @param pLabeled
660cdf0e10cSrcweir             The control for which to return a label.
661cdf0e10cSrcweir         @return
662cdf0e10cSrcweir             Return a label control that provides a name for the specified
663cdf0e10cSrcweir             control.
664cdf0e10cSrcweir     */
665cdf0e10cSrcweir     virtual Window*	GetParentLabeledBy( const Window* pLabeled ) const;
666cdf0e10cSrcweir };
667cdf0e10cSrcweir 
668cdf0e10cSrcweir /*************************************************************************
669cdf0e10cSrcweir |*
670cdf0e10cSrcweir |* Farben-Tab-Page
671cdf0e10cSrcweir |*
672cdf0e10cSrcweir \************************************************************************/
673cdf0e10cSrcweir 
674cdf0e10cSrcweir class SvxColorTabPage : public SfxTabPage
675cdf0e10cSrcweir {
676cdf0e10cSrcweir 	using TabPage::ActivatePage;
677cdf0e10cSrcweir 	using TabPage::DeactivatePage;
678cdf0e10cSrcweir 
679cdf0e10cSrcweir private:
680cdf0e10cSrcweir     FixedLine           aFlProp;
681cdf0e10cSrcweir 	FixedText           aFtName;
682cdf0e10cSrcweir 	Edit                aEdtName;
683cdf0e10cSrcweir     FixedText           aFtColor;
684cdf0e10cSrcweir 	ColorLB             aLbColor;
685cdf0e10cSrcweir 
686cdf0e10cSrcweir     FixedText           aTableNameFT;
68728bcfa49SArmin Le Grand     SvxColorValueSet    aValSetColorTable;
688cdf0e10cSrcweir 
689cdf0e10cSrcweir     SvxXRectPreview     aCtlPreviewOld;
690cdf0e10cSrcweir 	SvxXRectPreview     aCtlPreviewNew;
691cdf0e10cSrcweir 
692cdf0e10cSrcweir     ListBox             aLbColorModel;
693cdf0e10cSrcweir     FixedText           aFtColorModel1;
694cdf0e10cSrcweir 	MetricField         aMtrFldColorModel1;
695cdf0e10cSrcweir     FixedText           aFtColorModel2;
696cdf0e10cSrcweir 	MetricField         aMtrFldColorModel2;
697cdf0e10cSrcweir     FixedText           aFtColorModel3;
698cdf0e10cSrcweir 	MetricField         aMtrFldColorModel3;
699cdf0e10cSrcweir 
700cdf0e10cSrcweir     FixedText           aFtColorModel4;
701cdf0e10cSrcweir 	MetricField         aMtrFldColorModel4;
702cdf0e10cSrcweir 
703cdf0e10cSrcweir     PushButton          aBtnAdd;
704cdf0e10cSrcweir 	PushButton          aBtnModify;
705cdf0e10cSrcweir 	PushButton          aBtnWorkOn;
706cdf0e10cSrcweir 	PushButton          aBtnDelete;
707cdf0e10cSrcweir 	ImageButton         aBtnLoad;
708cdf0e10cSrcweir 	ImageButton         aBtnSave;
709cdf0e10cSrcweir 
710cdf0e10cSrcweir 	const SfxItemSet&   rOutAttrs;
711cdf0e10cSrcweir 
712c7be74b1SArmin Le Grand 	XColorListSharedPtr maColorTab;
713cdf0e10cSrcweir 
714cdf0e10cSrcweir 	ChangeType*         pnColorTableState;
715cdf0e10cSrcweir 	sal_uInt16*             pPageType;
716cdf0e10cSrcweir 	sal_uInt16*             pDlgType;
717cdf0e10cSrcweir 	sal_uInt16*             pPos;
718cdf0e10cSrcweir 	sal_Bool*               pbAreaTP;
719cdf0e10cSrcweir 
720cdf0e10cSrcweir 	XOutdevItemPool*    pXPool;
721cdf0e10cSrcweir 	XFillStyleItem      aXFStyleItem;
722cdf0e10cSrcweir 	XFillColorItem      aXFillColorItem;
723cdf0e10cSrcweir 	XFillAttrSetItem    aXFillAttr;
724cdf0e10cSrcweir 	SfxItemSet&         rXFSet;
725cdf0e10cSrcweir 
726cdf0e10cSrcweir 	ColorModel          eCM;
727cdf0e10cSrcweir 
728cdf0e10cSrcweir 	Color				aAktuellColor;
729cdf0e10cSrcweir 
730cdf0e10cSrcweir #ifdef _SVX_TPCOLOR_CXX
731cdf0e10cSrcweir 	void    ConvertColorValues (Color& rColor, ColorModel eModell);
732cdf0e10cSrcweir 	void    RgbToCmyk_Impl( Color& rColor, sal_uInt16& rK );
733cdf0e10cSrcweir 	void    CmykToRgb_Impl( Color& rColor, const sal_uInt16 nKey );
734cdf0e10cSrcweir 	sal_uInt16  ColorToPercent_Impl( sal_uInt16 nColor );
735cdf0e10cSrcweir 	sal_uInt16  PercentToColor_Impl( sal_uInt16 nPercent );
736cdf0e10cSrcweir 
73728bcfa49SArmin Le Grand     void ImpColorCountChanged();
73828bcfa49SArmin Le Grand 
739cdf0e10cSrcweir 	//-----------------------------------------------------------------------------------------------------
740cdf0e10cSrcweir 	DECL_LINK( ClickAddHdl_Impl, void * );		// Button 'Hinzufuegen'
741cdf0e10cSrcweir 	DECL_LINK( ClickModifyHdl_Impl, void * );	// Button 'Aendern'
742cdf0e10cSrcweir 	DECL_LINK( ClickDeleteHdl_Impl, void * );	// Button 'loeschen'
743cdf0e10cSrcweir 	DECL_LINK( ClickWorkOnHdl_Impl, void * );	// Button 'Bearbeiten'
744cdf0e10cSrcweir 
745cdf0e10cSrcweir 	DECL_LINK( SelectColorLBHdl_Impl, void * );	// Farbe aus Listbox ausw�hlen
746cdf0e10cSrcweir 	DECL_LINK( SelectValSetHdl_Impl, void * );	// Farbe aus Farbpalette (links) ausw�hlen
747cdf0e10cSrcweir 	DECL_LINK( SelectColorModelHdl_Impl, void * );	// Auswahl Listbox 'Farbmodell'
748cdf0e10cSrcweir 	long ChangeColorHdl_Impl( void* p );
749cdf0e10cSrcweir 	DECL_LINK( ModifiedHdl_Impl, void * );		// Inhalt der Farbwerte-Felder wurde ver�ndert
750cdf0e10cSrcweir 	DECL_LINK( ClickLoadHdl_Impl, void * );		// Button 'Farbtabelle laden'
751cdf0e10cSrcweir 	DECL_LINK( ClickSaveHdl_Impl, void * );		// Button 'Farbtabelle sichern'
752cdf0e10cSrcweir 
753cdf0e10cSrcweir 	long CheckChanges_Impl();
754cdf0e10cSrcweir #endif
755cdf0e10cSrcweir 
756cdf0e10cSrcweir public:
757cdf0e10cSrcweir 	SvxColorTabPage( Window* pParent, const SfxItemSet& rInAttrs  );
758cdf0e10cSrcweir 
759cdf0e10cSrcweir 	void    Construct();
760cdf0e10cSrcweir 
761cdf0e10cSrcweir 	static  SfxTabPage* Create( Window*, const SfxItemSet& );
762cdf0e10cSrcweir 	virtual sal_Bool FillItemSet( SfxItemSet& );
763cdf0e10cSrcweir 	virtual void Reset( const SfxItemSet & );
764cdf0e10cSrcweir 
765cdf0e10cSrcweir 	virtual void ActivatePage( const SfxItemSet& rSet );
766cdf0e10cSrcweir 	virtual int  DeactivatePage( SfxItemSet* pSet );
767cdf0e10cSrcweir 
768c7be74b1SArmin Le Grand 	void    SetColorTable( XColorListSharedPtr aColTab ) { maColorTab = aColTab; }
769cdf0e10cSrcweir 
770cdf0e10cSrcweir 	void    SetPageType( sal_uInt16* pInType ) { pPageType = pInType; }
771cdf0e10cSrcweir 	void    SetDlgType( sal_uInt16* pInType ) { pDlgType = pInType; }
772cdf0e10cSrcweir 	void    SetPos( sal_uInt16* pInPos ) { pPos = pInPos; }
773cdf0e10cSrcweir 	void    SetAreaTP( sal_Bool* pIn ) { pbAreaTP = pIn; }
774cdf0e10cSrcweir 
775cdf0e10cSrcweir 	void    SetColorChgd( ChangeType* pIn ) { pnColorTableState = pIn; }
776cdf0e10cSrcweir 
777cdf0e10cSrcweir 	virtual void FillUserData();
778cdf0e10cSrcweir };
779cdf0e10cSrcweir 
780cdf0e10cSrcweir 
781cdf0e10cSrcweir #endif // _CUI_TAB_AREA_HXX
782cdf0e10cSrcweir 
783