xref: /aoo42x/main/cui/source/tabpages/tabarea.cxx (revision 64b14621)
12ee96f1cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
32ee96f1cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
42ee96f1cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
52ee96f1cSAndrew Rist  * distributed with this work for additional information
62ee96f1cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
72ee96f1cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
82ee96f1cSAndrew Rist  * "License"); you may not use this file except in compliance
92ee96f1cSAndrew Rist  * with the License.  You may obtain a copy of the License at
102ee96f1cSAndrew Rist  *
112ee96f1cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
122ee96f1cSAndrew Rist  *
132ee96f1cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
142ee96f1cSAndrew Rist  * software distributed under the License is distributed on an
152ee96f1cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
162ee96f1cSAndrew Rist  * KIND, either express or implied.  See the License for the
172ee96f1cSAndrew Rist  * specific language governing permissions and limitations
182ee96f1cSAndrew Rist  * under the License.
192ee96f1cSAndrew Rist  *
202ee96f1cSAndrew Rist  *************************************************************/
212ee96f1cSAndrew Rist 
222ee96f1cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_cui.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir // include ---------------------------------------------------------------
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <tools/ref.hxx>
30cdf0e10cSrcweir #include <sfx2/app.hxx>
31cdf0e10cSrcweir #include <sfx2/objsh.hxx>
32cdf0e10cSrcweir #include <vcl/msgbox.hxx>
33cdf0e10cSrcweir #include <unotools/pathoptions.hxx>
34cdf0e10cSrcweir #include <svx/svdmark.hxx>
35cdf0e10cSrcweir #include <svx/svdobj.hxx>
36cdf0e10cSrcweir #include <svx/svdview.hxx>
37cdf0e10cSrcweir #include <svx/dialogs.hrc>
38cdf0e10cSrcweir 
39cdf0e10cSrcweir #define _SVX_TABAREA_CXX
40cdf0e10cSrcweir 
41cdf0e10cSrcweir #include <cuires.hrc>
42cdf0e10cSrcweir #include <svx/xtable.hxx>
43cdf0e10cSrcweir #include "svx/globl3d.hxx"
44cdf0e10cSrcweir #include <svx/svdmodel.hxx>
45cdf0e10cSrcweir #include "svx/drawitem.hxx"
46cdf0e10cSrcweir #include "cuitabarea.hxx"
47cdf0e10cSrcweir #include "tabarea.hrc"
48cdf0e10cSrcweir #include "dlgname.hxx"
49cdf0e10cSrcweir //#include "dlgname.hrc"
50cdf0e10cSrcweir #include <dialmgr.hxx>
51cdf0e10cSrcweir 
52cdf0e10cSrcweir #define DLGWIN this->GetParent()->GetParent()
53cdf0e10cSrcweir 
54cdf0e10cSrcweir /*************************************************************************
55cdf0e10cSrcweir |*
56cdf0e10cSrcweir |* Konstruktor des Tab-Dialogs: Fuegt die Seiten zum Dialog hinzu
57cdf0e10cSrcweir |*
58cdf0e10cSrcweir |************************************************************************/
59cdf0e10cSrcweir 
SvxAreaTabDialog(Window * pParent,const SfxItemSet * pAttr,SdrModel * pModel,bool bShadow)60cdf0e10cSrcweir SvxAreaTabDialog::SvxAreaTabDialog
61cdf0e10cSrcweir (
62cdf0e10cSrcweir 	Window* pParent,
63cdf0e10cSrcweir 	const SfxItemSet* pAttr,
64cdf0e10cSrcweir 	SdrModel* pModel,
65*64b14621SArmin Le Grand     bool bShadow
66cdf0e10cSrcweir ) :
67cdf0e10cSrcweir 
68cdf0e10cSrcweir 	SfxTabDialog( pParent, CUI_RES( RID_SVXDLG_AREA ), pAttr ),
69cdf0e10cSrcweir 
70cdf0e10cSrcweir     mpDrawModel          ( pModel ),
71c7be74b1SArmin Le Grand     maColorTab           ( pModel->GetColorTableFromSdrModel() ),
72c7be74b1SArmin Le Grand     maNewColorTab        ( pModel->GetColorTableFromSdrModel() ),
73c7be74b1SArmin Le Grand     maGradientList       ( pModel->GetGradientListFromSdrModel() ),
74c7be74b1SArmin Le Grand     maNewGradientList    ( pModel->GetGradientListFromSdrModel() ),
75c7be74b1SArmin Le Grand     maHatchingList       ( pModel->GetHatchListFromSdrModel() ),
76c7be74b1SArmin Le Grand     maNewHatchingList    ( pModel->GetHatchListFromSdrModel() ),
77c7be74b1SArmin Le Grand     maBitmapList         ( pModel->GetBitmapListFromSdrModel() ),
78c7be74b1SArmin Le Grand     maNewBitmapList      ( pModel->GetBitmapListFromSdrModel() ),
79cdf0e10cSrcweir     mrOutAttrs           ( *pAttr ),
80cdf0e10cSrcweir     mnColorTableState ( CT_NONE ),
81cdf0e10cSrcweir     mnBitmapListState ( CT_NONE ),
82cdf0e10cSrcweir     mnGradientListState ( CT_NONE ),
83cdf0e10cSrcweir     mnHatchingListState ( CT_NONE ),
84cdf0e10cSrcweir     mnPageType( PT_AREA ),
85cdf0e10cSrcweir     mnDlgType( 0 ),
86cdf0e10cSrcweir     mnPos( 0 ),
87c7be74b1SArmin Le Grand     mbAreaTP( sal_False )
88cdf0e10cSrcweir {
89*64b14621SArmin Le Grand     FreeResource();
90cdf0e10cSrcweir 
91*64b14621SArmin Le Grand     AddTabPage( RID_SVXPAGE_AREA, SvxAreaTabPage::Create, 0 );
92cdf0e10cSrcweir 
93*64b14621SArmin Le Grand     if(bShadow)
94*64b14621SArmin Le Grand     {
95*64b14621SArmin Le Grand         AddTabPage( RID_SVXPAGE_SHADOW, SvxShadowTabPage::Create, 0 );
96*64b14621SArmin Le Grand     }
97*64b14621SArmin Le Grand     else
98*64b14621SArmin Le Grand     {
99*64b14621SArmin Le Grand         RemoveTabPage( RID_SVXPAGE_SHADOW );
100*64b14621SArmin Le Grand     }
101*64b14621SArmin Le Grand 
102*64b14621SArmin Le Grand     AddTabPage( RID_SVXPAGE_TRANSPARENCE, SvxTransparenceTabPage::Create,  0);
103*64b14621SArmin Le Grand     AddTabPage( RID_SVXPAGE_COLOR, SvxColorTabPage::Create, 0 );
104*64b14621SArmin Le Grand     AddTabPage( RID_SVXPAGE_GRADIENT, SvxGradientTabPage::Create, 0 );
105*64b14621SArmin Le Grand     AddTabPage( RID_SVXPAGE_HATCH, SvxHatchTabPage::Create, 0 );
106*64b14621SArmin Le Grand     AddTabPage( RID_SVXPAGE_BITMAP, SvxBitmapTabPage::Create,  0);
107*64b14621SArmin Le Grand 
108*64b14621SArmin Le Grand     SetCurPageId( RID_SVXPAGE_AREA );
109cdf0e10cSrcweir 
110*64b14621SArmin Le Grand     CancelButton& rBtnCancel = GetCancelButton();
111*64b14621SArmin Le Grand     rBtnCancel.SetClickHdl( LINK( this, SvxAreaTabDialog, CancelHdlImpl ) );
112cdf0e10cSrcweir //! rBtnCancel.SetText( CUI_RESSTR( RID_SVXSTR_CLOSE ) );
113cdf0e10cSrcweir }
114cdf0e10cSrcweir 
115cdf0e10cSrcweir // -----------------------------------------------------------------------
116cdf0e10cSrcweir 
~SvxAreaTabDialog()117cdf0e10cSrcweir SvxAreaTabDialog::~SvxAreaTabDialog()
118cdf0e10cSrcweir {
119cdf0e10cSrcweir }
120cdf0e10cSrcweir 
121cdf0e10cSrcweir 
122cdf0e10cSrcweir // -----------------------------------------------------------------------
123cdf0e10cSrcweir 
SavePalettes()124cdf0e10cSrcweir void SvxAreaTabDialog::SavePalettes()
125cdf0e10cSrcweir {
126cdf0e10cSrcweir     SfxObjectShell* pShell = SfxObjectShell::Current();
127cdf0e10cSrcweir     /*uno::Reference< frame::XDispatchProvider > xDispatchProvider;
128cdf0e10cSrcweir     if ( !pShell )
129cdf0e10cSrcweir     {
130cdf0e10cSrcweir         uno::Reference< frame::XModel> xModel = mpDrawModel->getUnoModel();
131cdf0e10cSrcweir         if ( xModel.is() )
132cdf0e10cSrcweir             xDispatchProvider.set(xModel->getCurrentController(),uno::UNO_QUERY);
133cdf0e10cSrcweir     }*/
134c7be74b1SArmin Le Grand 	if( maNewColorTab != mpDrawModel->GetColorTableFromSdrModel() )
135cdf0e10cSrcweir 	{
136c7be74b1SArmin Le Grand 		mpDrawModel->SetColorTableAtSdrModel( maNewColorTab );
137c7be74b1SArmin Le Grand         SvxColorTableItem aColorTableItem( maNewColorTab, SID_COLOR_TABLE );
138cdf0e10cSrcweir         if ( pShell )
139cdf0e10cSrcweir             pShell->PutItem( aColorTableItem );
140cdf0e10cSrcweir         else
141cdf0e10cSrcweir         {
142cdf0e10cSrcweir             mpDrawModel->GetItemPool().Put(aColorTableItem,SID_COLOR_TABLE);
143cdf0e10cSrcweir         }
144c7be74b1SArmin Le Grand 		maColorTab = mpDrawModel->GetColorTableFromSdrModel();
145cdf0e10cSrcweir 	}
146c7be74b1SArmin Le Grand 	if( maNewGradientList != mpDrawModel->GetGradientListFromSdrModel() )
147cdf0e10cSrcweir 	{
148c7be74b1SArmin Le Grand 		mpDrawModel->SetGradientListAtSdrModel( maNewGradientList );
149c7be74b1SArmin Le Grand         SvxGradientListItem aItem( maNewGradientList, SID_GRADIENT_LIST );
150cdf0e10cSrcweir         if ( pShell )
151cdf0e10cSrcweir             pShell->PutItem( aItem );
152cdf0e10cSrcweir         else
153cdf0e10cSrcweir         {
154cdf0e10cSrcweir             mpDrawModel->GetItemPool().Put(aItem,SID_GRADIENT_LIST);
155cdf0e10cSrcweir         }
156c7be74b1SArmin Le Grand 		maGradientList = mpDrawModel->GetGradientListFromSdrModel();
157cdf0e10cSrcweir 	}
158c7be74b1SArmin Le Grand 	if( maNewHatchingList != mpDrawModel->GetHatchListFromSdrModel() )
159cdf0e10cSrcweir 	{
160c7be74b1SArmin Le Grand 		mpDrawModel->SetHatchListAtSdrModel( maNewHatchingList );
161c7be74b1SArmin Le Grand         SvxHatchListItem aItem( maNewHatchingList, SID_HATCH_LIST );
162cdf0e10cSrcweir         if ( pShell )
163cdf0e10cSrcweir             pShell->PutItem( aItem );
164cdf0e10cSrcweir         else
165cdf0e10cSrcweir         {
166cdf0e10cSrcweir             mpDrawModel->GetItemPool().Put(aItem,SID_HATCH_LIST);
167cdf0e10cSrcweir         }
168c7be74b1SArmin Le Grand 		maHatchingList = mpDrawModel->GetHatchListFromSdrModel();
169cdf0e10cSrcweir 	}
170c7be74b1SArmin Le Grand 	if( maNewBitmapList != mpDrawModel->GetBitmapListFromSdrModel() )
171cdf0e10cSrcweir 	{
172c7be74b1SArmin Le Grand 		mpDrawModel->SetBitmapListAtSdrModel( maNewBitmapList );
173c7be74b1SArmin Le Grand         SvxBitmapListItem aItem( maNewBitmapList, SID_BITMAP_LIST );
174cdf0e10cSrcweir         if ( pShell )
175cdf0e10cSrcweir             pShell->PutItem( aItem );
176cdf0e10cSrcweir         else
177cdf0e10cSrcweir         {
178cdf0e10cSrcweir             mpDrawModel->GetItemPool().Put(aItem,SID_BITMAP_LIST);
179cdf0e10cSrcweir         }
180c7be74b1SArmin Le Grand 		maBitmapList = mpDrawModel->GetBitmapListFromSdrModel();
181cdf0e10cSrcweir 	}
182cdf0e10cSrcweir 
183cdf0e10cSrcweir 	// Speichern der Tabellen, wenn sie geaendert wurden.
184cdf0e10cSrcweir 
185cdf0e10cSrcweir 	const String aPath( SvtPathOptions().GetPalettePath() );
186cdf0e10cSrcweir 
187cdf0e10cSrcweir 	if( mnHatchingListState & CT_MODIFIED )
188cdf0e10cSrcweir 	{
189c7be74b1SArmin Le Grand 		maHatchingList->SetPath( aPath );
190c7be74b1SArmin Le Grand 		maHatchingList->Save();
191cdf0e10cSrcweir 
192c7be74b1SArmin Le Grand         SvxHatchListItem aItem( maHatchingList, SID_HATCH_LIST );
193cdf0e10cSrcweir 		// ToolBoxControls werden benachrichtigt:
194cdf0e10cSrcweir         if ( pShell )
195cdf0e10cSrcweir             pShell->PutItem( aItem );
196cdf0e10cSrcweir         else
197cdf0e10cSrcweir         {
198cdf0e10cSrcweir             mpDrawModel->GetItemPool().Put(aItem);
199cdf0e10cSrcweir         }
200cdf0e10cSrcweir 	}
201cdf0e10cSrcweir 
202cdf0e10cSrcweir 	if( mnBitmapListState & CT_MODIFIED )
203cdf0e10cSrcweir 	{
204c7be74b1SArmin Le Grand 		maBitmapList->SetPath( aPath );
205c7be74b1SArmin Le Grand 		maBitmapList->Save();
206cdf0e10cSrcweir 
207c7be74b1SArmin Le Grand         SvxBitmapListItem aItem( maBitmapList, SID_BITMAP_LIST );
208cdf0e10cSrcweir 		// ToolBoxControls werden benachrichtigt:
209cdf0e10cSrcweir         if ( pShell )
210cdf0e10cSrcweir             pShell->PutItem( aItem );
211cdf0e10cSrcweir         else
212cdf0e10cSrcweir         {
213cdf0e10cSrcweir             mpDrawModel->GetItemPool().Put(aItem);
214cdf0e10cSrcweir         }
215cdf0e10cSrcweir 	}
216cdf0e10cSrcweir 
217cdf0e10cSrcweir 	if( mnGradientListState & CT_MODIFIED )
218cdf0e10cSrcweir 	{
219c7be74b1SArmin Le Grand 		maGradientList->SetPath( aPath );
220c7be74b1SArmin Le Grand 		maGradientList->Save();
221cdf0e10cSrcweir 
222c7be74b1SArmin Le Grand         SvxGradientListItem aItem( maGradientList, SID_GRADIENT_LIST );
223cdf0e10cSrcweir 		// ToolBoxControls werden benachrichtigt:
224cdf0e10cSrcweir         if ( pShell )
225cdf0e10cSrcweir             pShell->PutItem( aItem );
226cdf0e10cSrcweir         else
227cdf0e10cSrcweir         {
228cdf0e10cSrcweir             mpDrawModel->GetItemPool().Put(aItem);
229cdf0e10cSrcweir         }
230cdf0e10cSrcweir 	}
231cdf0e10cSrcweir 
232cdf0e10cSrcweir 	if( mnColorTableState & CT_MODIFIED )
233cdf0e10cSrcweir 	{
234c7be74b1SArmin Le Grand 		maColorTab->SetPath( aPath );
235c7be74b1SArmin Le Grand 		maColorTab->Save();
236cdf0e10cSrcweir 
237c7be74b1SArmin Le Grand         SvxColorTableItem aItem( maColorTab, SID_COLOR_TABLE );
238cdf0e10cSrcweir 		// ToolBoxControls werden benachrichtigt:
239cdf0e10cSrcweir         if ( pShell )
240cdf0e10cSrcweir             pShell->PutItem( aItem );
241cdf0e10cSrcweir         else
242cdf0e10cSrcweir         {
243cdf0e10cSrcweir             mpDrawModel->GetItemPool().Put(aItem);
244cdf0e10cSrcweir         }
245cdf0e10cSrcweir 	}
246cdf0e10cSrcweir }
247cdf0e10cSrcweir // -----------------------------------------------------------------------
248cdf0e10cSrcweir 
Ok()249cdf0e10cSrcweir short SvxAreaTabDialog::Ok()
250cdf0e10cSrcweir {
251cdf0e10cSrcweir 	SavePalettes();
252cdf0e10cSrcweir 
253cdf0e10cSrcweir 	// Es wird RET_OK zurueckgeliefert, wenn wenigstens eine
254cdf0e10cSrcweir 	// TabPage in FillItemSet() sal_True zurueckliefert. Dieses
255cdf0e10cSrcweir 	// geschieht z.Z. standardmaessig.
256cdf0e10cSrcweir 	return( SfxTabDialog::Ok() );
257cdf0e10cSrcweir }
258cdf0e10cSrcweir 
259cdf0e10cSrcweir // -----------------------------------------------------------------------
260cdf0e10cSrcweir 
IMPL_LINK_INLINE_START(SvxAreaTabDialog,CancelHdlImpl,void *,EMPTYARG)261cdf0e10cSrcweir IMPL_LINK_INLINE_START( SvxAreaTabDialog, CancelHdlImpl, void *, EMPTYARG)
262cdf0e10cSrcweir {
263cdf0e10cSrcweir 	SavePalettes();
264cdf0e10cSrcweir 
265cdf0e10cSrcweir 	EndDialog( RET_CANCEL );
266cdf0e10cSrcweir 	return 0;
267cdf0e10cSrcweir }
IMPL_LINK_INLINE_END(SvxAreaTabDialog,CancelHdlImpl,void *,p)268cdf0e10cSrcweir IMPL_LINK_INLINE_END( SvxAreaTabDialog, CancelHdlImpl, void *, p )
269cdf0e10cSrcweir 
270cdf0e10cSrcweir // -----------------------------------------------------------------------
271cdf0e10cSrcweir 
272cdf0e10cSrcweir void SvxAreaTabDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
273cdf0e10cSrcweir {
274cdf0e10cSrcweir 	switch( nId )
275cdf0e10cSrcweir 	{
276cdf0e10cSrcweir 		case RID_SVXPAGE_AREA:
277c7be74b1SArmin Le Grand 			( (SvxAreaTabPage&) rPage ).SetColorTable( maColorTab );
278c7be74b1SArmin Le Grand 			( (SvxAreaTabPage&) rPage ).SetGradientList( maGradientList );
279c7be74b1SArmin Le Grand 			( (SvxAreaTabPage&) rPage ).SetHatchingList( maHatchingList );
280c7be74b1SArmin Le Grand 			( (SvxAreaTabPage&) rPage ).SetBitmapList( maBitmapList );
281cdf0e10cSrcweir 			//CHINA001 ( (SvxAreaTabPage&) rPage ).SetPageType( &mnPageType );
282cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).SetPageType( mnPageType ); //add CHINA001
283cdf0e10cSrcweir 			//CHINA001 ( (SvxAreaTabPage&) rPage ).SetDlgType( &mnDlgType );
284cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).SetDlgType( mnDlgType );//add CHINA001
285cdf0e10cSrcweir 			//CHINA001 ( (SvxAreaTabPage&) rPage ).SetPos( &nPos );
286cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).SetPos( mnPos );//add CHINA001
287cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).SetAreaTP( &mbAreaTP );
288cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).SetGrdChgd( &mnGradientListState );
289cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).SetHtchChgd( &mnHatchingListState );
290cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).SetBmpChgd( &mnBitmapListState );
291cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).SetColorChgd( &mnColorTableState );
292cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).Construct();
293cdf0e10cSrcweir 			// ActivatePage() wird das erste mal nicht gerufen
294cdf0e10cSrcweir 			( (SvxAreaTabPage&) rPage ).ActivatePage( mrOutAttrs );
295cdf0e10cSrcweir 
296cdf0e10cSrcweir 		break;
297cdf0e10cSrcweir 
298cdf0e10cSrcweir 		case RID_SVXPAGE_SHADOW:
299cdf0e10cSrcweir 		{
300c7be74b1SArmin Le Grand 			( (SvxShadowTabPage&) rPage ).SetColorTable( maColorTab );
301cdf0e10cSrcweir 			( (SvxShadowTabPage&) rPage ).SetPageType( mnPageType );//CHINA001 ( (SvxShadowTabPage&) rPage ).SetPageType( &mnPageType );
302cdf0e10cSrcweir 			( (SvxShadowTabPage&) rPage ).SetDlgType( mnDlgType );//CHINA001 ( (SvxShadowTabPage&) rPage ).SetDlgType( &mnDlgType );
303cdf0e10cSrcweir 			//( (SvxShadowTabPage&) rPage ).SetPos( &nPos );
304cdf0e10cSrcweir 			( (SvxShadowTabPage&) rPage ).SetAreaTP( &mbAreaTP );
305cdf0e10cSrcweir 			( (SvxShadowTabPage&) rPage ).SetColorChgd( &mnColorTableState );
306cdf0e10cSrcweir 			( (SvxShadowTabPage&) rPage ).Construct();
307cdf0e10cSrcweir 		}
308cdf0e10cSrcweir 		break;
309cdf0e10cSrcweir 
310cdf0e10cSrcweir 		case RID_SVXPAGE_GRADIENT:
311c7be74b1SArmin Le Grand 			( (SvxGradientTabPage&) rPage ).SetColorTable( maColorTab );
312c7be74b1SArmin Le Grand 			( (SvxGradientTabPage&) rPage ).SetGradientList( maGradientList );
313cdf0e10cSrcweir 			( (SvxGradientTabPage&) rPage ).SetPageType( &mnPageType );
314cdf0e10cSrcweir 			( (SvxGradientTabPage&) rPage ).SetDlgType( &mnDlgType );
315cdf0e10cSrcweir 			( (SvxGradientTabPage&) rPage ).SetPos( &mnPos );
316cdf0e10cSrcweir 			( (SvxGradientTabPage&) rPage ).SetAreaTP( &mbAreaTP );
317cdf0e10cSrcweir 			( (SvxGradientTabPage&) rPage ).SetGrdChgd( &mnGradientListState );
318cdf0e10cSrcweir 			( (SvxGradientTabPage&) rPage ).SetColorChgd( &mnColorTableState );
319cdf0e10cSrcweir 			( (SvxGradientTabPage&) rPage ).Construct();
320cdf0e10cSrcweir 		break;
321cdf0e10cSrcweir 
322cdf0e10cSrcweir 		case RID_SVXPAGE_HATCH:
323c7be74b1SArmin Le Grand 			( (SvxHatchTabPage&) rPage ).SetColorTable( maColorTab );
324c7be74b1SArmin Le Grand 			( (SvxHatchTabPage&) rPage ).SetHatchingList( maHatchingList );
325cdf0e10cSrcweir 			( (SvxHatchTabPage&) rPage ).SetPageType( &mnPageType );
326cdf0e10cSrcweir 			( (SvxHatchTabPage&) rPage ).SetDlgType( &mnDlgType );
327cdf0e10cSrcweir 			( (SvxHatchTabPage&) rPage ).SetPos( &mnPos );
328cdf0e10cSrcweir 			( (SvxHatchTabPage&) rPage ).SetAreaTP( &mbAreaTP );
329cdf0e10cSrcweir 			( (SvxHatchTabPage&) rPage ).SetHtchChgd( &mnHatchingListState );
330cdf0e10cSrcweir 			( (SvxHatchTabPage&) rPage ).SetColorChgd( &mnColorTableState );
331cdf0e10cSrcweir 			( (SvxHatchTabPage&) rPage ).Construct();
332cdf0e10cSrcweir 		break;
333cdf0e10cSrcweir 
334cdf0e10cSrcweir 		case RID_SVXPAGE_BITMAP:
335c7be74b1SArmin Le Grand 			( (SvxBitmapTabPage&) rPage ).SetColorTable( maColorTab );
336c7be74b1SArmin Le Grand 			( (SvxBitmapTabPage&) rPage ).SetBitmapList( maBitmapList );
337cdf0e10cSrcweir 			( (SvxBitmapTabPage&) rPage ).SetPageType( &mnPageType );
338cdf0e10cSrcweir 			( (SvxBitmapTabPage&) rPage ).SetDlgType( &mnDlgType );
339cdf0e10cSrcweir 			( (SvxBitmapTabPage&) rPage ).SetPos( &mnPos );
340cdf0e10cSrcweir 			( (SvxBitmapTabPage&) rPage ).SetAreaTP( &mbAreaTP );
341cdf0e10cSrcweir 			( (SvxBitmapTabPage&) rPage ).SetBmpChgd( &mnBitmapListState );
342cdf0e10cSrcweir 			( (SvxBitmapTabPage&) rPage ).SetColorChgd( &mnColorTableState );
343cdf0e10cSrcweir 			( (SvxBitmapTabPage&) rPage ).Construct();
344cdf0e10cSrcweir 		break;
345cdf0e10cSrcweir 
346cdf0e10cSrcweir 		case RID_SVXPAGE_COLOR:
347c7be74b1SArmin Le Grand 			( (SvxColorTabPage&) rPage ).SetColorTable( maColorTab );
348cdf0e10cSrcweir 			( (SvxColorTabPage&) rPage ).SetPageType( &mnPageType );
349cdf0e10cSrcweir 			( (SvxColorTabPage&) rPage ).SetDlgType( &mnDlgType );
350cdf0e10cSrcweir 			( (SvxColorTabPage&) rPage ).SetPos( &mnPos );
351cdf0e10cSrcweir 			( (SvxColorTabPage&) rPage ).SetAreaTP( &mbAreaTP );
352cdf0e10cSrcweir 			( (SvxColorTabPage&) rPage ).SetColorChgd( &mnColorTableState );
353cdf0e10cSrcweir 			( (SvxColorTabPage&) rPage ).Construct();
354cdf0e10cSrcweir 		break;
355cdf0e10cSrcweir 
356cdf0e10cSrcweir 		case RID_SVXPAGE_TRANSPARENCE:
357cdf0e10cSrcweir 			( (SvxTransparenceTabPage&) rPage ).SetPageType( mnPageType );//CHINA001 ( (SvxTransparenceTabPage&) rPage ).SetPageType( &mnPageType );
358cdf0e10cSrcweir 			( (SvxTransparenceTabPage&) rPage ).SetDlgType( mnDlgType );//CHINA001 ( (SvxTransparenceTabPage&) rPage ).SetDlgType( &mnDlgType );
359cdf0e10cSrcweir 			( (SvxTransparenceTabPage&) rPage ).Construct();
360cdf0e10cSrcweir 		break;
361cdf0e10cSrcweir 
362cdf0e10cSrcweir 	}
363cdf0e10cSrcweir }
364cdf0e10cSrcweir 
365cdf0e10cSrcweir 
366