1*2ee96f1cSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2ee96f1cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2ee96f1cSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2ee96f1cSAndrew Rist * distributed with this work for additional information 6*2ee96f1cSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2ee96f1cSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2ee96f1cSAndrew Rist * "License"); you may not use this file except in compliance 9*2ee96f1cSAndrew Rist * with the License. You may obtain a copy of the License at 10*2ee96f1cSAndrew Rist * 11*2ee96f1cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*2ee96f1cSAndrew Rist * 13*2ee96f1cSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2ee96f1cSAndrew Rist * software distributed under the License is distributed on an 15*2ee96f1cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2ee96f1cSAndrew Rist * KIND, either express or implied. See the License for the 17*2ee96f1cSAndrew Rist * specific language governing permissions and limitations 18*2ee96f1cSAndrew Rist * under the License. 19*2ee96f1cSAndrew Rist * 20*2ee96f1cSAndrew Rist *************************************************************/ 21*2ee96f1cSAndrew Rist 22*2ee96f1cSAndrew 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 60cdf0e10cSrcweir SvxAreaTabDialog::SvxAreaTabDialog 61cdf0e10cSrcweir ( 62cdf0e10cSrcweir Window* pParent, 63cdf0e10cSrcweir const SfxItemSet* pAttr, 64cdf0e10cSrcweir SdrModel* pModel, 65cdf0e10cSrcweir const SdrView* /* pSdrView */ 66cdf0e10cSrcweir ) : 67cdf0e10cSrcweir 68cdf0e10cSrcweir SfxTabDialog( pParent, CUI_RES( RID_SVXDLG_AREA ), pAttr ), 69cdf0e10cSrcweir 70cdf0e10cSrcweir mpDrawModel ( pModel ), 71cdf0e10cSrcweir // mpView ( pSdrView ), 72cdf0e10cSrcweir mpColorTab ( pModel->GetColorTable() ), 73cdf0e10cSrcweir mpNewColorTab ( pModel->GetColorTable() ), 74cdf0e10cSrcweir mpGradientList ( pModel->GetGradientList() ), 75cdf0e10cSrcweir mpNewGradientList ( pModel->GetGradientList() ), 76cdf0e10cSrcweir mpHatchingList ( pModel->GetHatchList() ), 77cdf0e10cSrcweir mpNewHatchingList ( pModel->GetHatchList() ), 78cdf0e10cSrcweir mpBitmapList ( pModel->GetBitmapList() ), 79cdf0e10cSrcweir mpNewBitmapList ( pModel->GetBitmapList() ), 80cdf0e10cSrcweir mrOutAttrs ( *pAttr ), 81cdf0e10cSrcweir mnColorTableState ( CT_NONE ), 82cdf0e10cSrcweir mnBitmapListState ( CT_NONE ), 83cdf0e10cSrcweir mnGradientListState ( CT_NONE ), 84cdf0e10cSrcweir mnHatchingListState ( CT_NONE ), 85cdf0e10cSrcweir mnPageType( PT_AREA ), 86cdf0e10cSrcweir mnDlgType( 0 ), 87cdf0e10cSrcweir mnPos( 0 ), 88cdf0e10cSrcweir mbAreaTP( sal_False ), 89cdf0e10cSrcweir mbDeleteColorTable( sal_True ) 90cdf0e10cSrcweir { 91cdf0e10cSrcweir FreeResource(); 92cdf0e10cSrcweir 93cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_AREA, SvxAreaTabPage::Create, 0 ); 94cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_SHADOW, SvxShadowTabPage::Create, 0 ); 95cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_TRANSPARENCE, SvxTransparenceTabPage::Create, 0); 96cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_COLOR, SvxColorTabPage::Create, 0 ); 97cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_GRADIENT, SvxGradientTabPage::Create, 0 ); 98cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_HATCH, SvxHatchTabPage::Create, 0 ); 99cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_BITMAP, SvxBitmapTabPage::Create, 0); 100cdf0e10cSrcweir 101cdf0e10cSrcweir SetCurPageId( RID_SVXPAGE_AREA ); 102cdf0e10cSrcweir 103cdf0e10cSrcweir CancelButton& rBtnCancel = GetCancelButton(); 104cdf0e10cSrcweir rBtnCancel.SetClickHdl( LINK( this, SvxAreaTabDialog, CancelHdlImpl ) ); 105cdf0e10cSrcweir //! rBtnCancel.SetText( CUI_RESSTR( RID_SVXSTR_CLOSE ) ); 106cdf0e10cSrcweir } 107cdf0e10cSrcweir 108cdf0e10cSrcweir // ----------------------------------------------------------------------- 109cdf0e10cSrcweir 110cdf0e10cSrcweir SvxAreaTabDialog::~SvxAreaTabDialog() 111cdf0e10cSrcweir { 112cdf0e10cSrcweir } 113cdf0e10cSrcweir 114cdf0e10cSrcweir 115cdf0e10cSrcweir // ----------------------------------------------------------------------- 116cdf0e10cSrcweir 117cdf0e10cSrcweir void SvxAreaTabDialog::SavePalettes() 118cdf0e10cSrcweir { 119cdf0e10cSrcweir SfxObjectShell* pShell = SfxObjectShell::Current(); 120cdf0e10cSrcweir /*uno::Reference< frame::XDispatchProvider > xDispatchProvider; 121cdf0e10cSrcweir if ( !pShell ) 122cdf0e10cSrcweir { 123cdf0e10cSrcweir uno::Reference< frame::XModel> xModel = mpDrawModel->getUnoModel(); 124cdf0e10cSrcweir if ( xModel.is() ) 125cdf0e10cSrcweir xDispatchProvider.set(xModel->getCurrentController(),uno::UNO_QUERY); 126cdf0e10cSrcweir }*/ 127cdf0e10cSrcweir if( mpNewColorTab != mpDrawModel->GetColorTable() ) 128cdf0e10cSrcweir { 129cdf0e10cSrcweir if(mbDeleteColorTable) 130cdf0e10cSrcweir delete mpDrawModel->GetColorTable(); 131cdf0e10cSrcweir mpDrawModel->SetColorTable( mpNewColorTab ); 132cdf0e10cSrcweir SvxColorTableItem aColorTableItem( mpNewColorTab, SID_COLOR_TABLE ); 133cdf0e10cSrcweir if ( pShell ) 134cdf0e10cSrcweir pShell->PutItem( aColorTableItem ); 135cdf0e10cSrcweir else 136cdf0e10cSrcweir { 137cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aColorTableItem,SID_COLOR_TABLE); 138cdf0e10cSrcweir } 139cdf0e10cSrcweir mpColorTab = mpDrawModel->GetColorTable(); 140cdf0e10cSrcweir } 141cdf0e10cSrcweir if( mpNewGradientList != mpDrawModel->GetGradientList() ) 142cdf0e10cSrcweir { 143cdf0e10cSrcweir delete mpDrawModel->GetGradientList(); 144cdf0e10cSrcweir mpDrawModel->SetGradientList( mpNewGradientList ); 145cdf0e10cSrcweir SvxGradientListItem aItem( mpNewGradientList, SID_GRADIENT_LIST ); 146cdf0e10cSrcweir if ( pShell ) 147cdf0e10cSrcweir pShell->PutItem( aItem ); 148cdf0e10cSrcweir else 149cdf0e10cSrcweir { 150cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem,SID_GRADIENT_LIST); 151cdf0e10cSrcweir } 152cdf0e10cSrcweir mpGradientList = mpDrawModel->GetGradientList(); 153cdf0e10cSrcweir } 154cdf0e10cSrcweir if( mpNewHatchingList != mpDrawModel->GetHatchList() ) 155cdf0e10cSrcweir { 156cdf0e10cSrcweir delete mpDrawModel->GetHatchList(); 157cdf0e10cSrcweir mpDrawModel->SetHatchList( mpNewHatchingList ); 158cdf0e10cSrcweir SvxHatchListItem aItem( mpNewHatchingList, SID_HATCH_LIST ); 159cdf0e10cSrcweir if ( pShell ) 160cdf0e10cSrcweir pShell->PutItem( aItem ); 161cdf0e10cSrcweir else 162cdf0e10cSrcweir { 163cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem,SID_HATCH_LIST); 164cdf0e10cSrcweir } 165cdf0e10cSrcweir mpHatchingList = mpDrawModel->GetHatchList(); 166cdf0e10cSrcweir } 167cdf0e10cSrcweir if( mpNewBitmapList != mpDrawModel->GetBitmapList() ) 168cdf0e10cSrcweir { 169cdf0e10cSrcweir delete mpDrawModel->GetBitmapList(); 170cdf0e10cSrcweir mpDrawModel->SetBitmapList( mpNewBitmapList ); 171cdf0e10cSrcweir SvxBitmapListItem aItem( mpNewBitmapList, SID_BITMAP_LIST ); 172cdf0e10cSrcweir if ( pShell ) 173cdf0e10cSrcweir pShell->PutItem( aItem ); 174cdf0e10cSrcweir else 175cdf0e10cSrcweir { 176cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem,SID_BITMAP_LIST); 177cdf0e10cSrcweir } 178cdf0e10cSrcweir mpBitmapList = mpDrawModel->GetBitmapList(); 179cdf0e10cSrcweir } 180cdf0e10cSrcweir 181cdf0e10cSrcweir // Speichern der Tabellen, wenn sie geaendert wurden. 182cdf0e10cSrcweir 183cdf0e10cSrcweir const String aPath( SvtPathOptions().GetPalettePath() ); 184cdf0e10cSrcweir 185cdf0e10cSrcweir if( mnHatchingListState & CT_MODIFIED ) 186cdf0e10cSrcweir { 187cdf0e10cSrcweir mpHatchingList->SetPath( aPath ); 188cdf0e10cSrcweir mpHatchingList->Save(); 189cdf0e10cSrcweir 190cdf0e10cSrcweir SvxHatchListItem aItem( mpHatchingList, SID_HATCH_LIST ); 191cdf0e10cSrcweir // ToolBoxControls werden benachrichtigt: 192cdf0e10cSrcweir if ( pShell ) 193cdf0e10cSrcweir pShell->PutItem( aItem ); 194cdf0e10cSrcweir else 195cdf0e10cSrcweir { 196cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem); 197cdf0e10cSrcweir } 198cdf0e10cSrcweir } 199cdf0e10cSrcweir 200cdf0e10cSrcweir if( mnBitmapListState & CT_MODIFIED ) 201cdf0e10cSrcweir { 202cdf0e10cSrcweir mpBitmapList->SetPath( aPath ); 203cdf0e10cSrcweir mpBitmapList->Save(); 204cdf0e10cSrcweir 205cdf0e10cSrcweir SvxBitmapListItem aItem( mpBitmapList, SID_BITMAP_LIST ); 206cdf0e10cSrcweir // ToolBoxControls werden benachrichtigt: 207cdf0e10cSrcweir if ( pShell ) 208cdf0e10cSrcweir pShell->PutItem( aItem ); 209cdf0e10cSrcweir else 210cdf0e10cSrcweir { 211cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem); 212cdf0e10cSrcweir } 213cdf0e10cSrcweir } 214cdf0e10cSrcweir 215cdf0e10cSrcweir if( mnGradientListState & CT_MODIFIED ) 216cdf0e10cSrcweir { 217cdf0e10cSrcweir mpGradientList->SetPath( aPath ); 218cdf0e10cSrcweir mpGradientList->Save(); 219cdf0e10cSrcweir 220cdf0e10cSrcweir SvxGradientListItem aItem( mpGradientList, SID_GRADIENT_LIST ); 221cdf0e10cSrcweir // ToolBoxControls werden benachrichtigt: 222cdf0e10cSrcweir if ( pShell ) 223cdf0e10cSrcweir pShell->PutItem( aItem ); 224cdf0e10cSrcweir else 225cdf0e10cSrcweir { 226cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem); 227cdf0e10cSrcweir } 228cdf0e10cSrcweir } 229cdf0e10cSrcweir 230cdf0e10cSrcweir if( mnColorTableState & CT_MODIFIED ) 231cdf0e10cSrcweir { 232cdf0e10cSrcweir mpColorTab->SetPath( aPath ); 233cdf0e10cSrcweir mpColorTab->Save(); 234cdf0e10cSrcweir 235cdf0e10cSrcweir SvxColorTableItem aItem( mpColorTab, SID_COLOR_TABLE ); 236cdf0e10cSrcweir // ToolBoxControls werden benachrichtigt: 237cdf0e10cSrcweir if ( pShell ) 238cdf0e10cSrcweir pShell->PutItem( aItem ); 239cdf0e10cSrcweir else 240cdf0e10cSrcweir { 241cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem); 242cdf0e10cSrcweir } 243cdf0e10cSrcweir } 244cdf0e10cSrcweir } 245cdf0e10cSrcweir // ----------------------------------------------------------------------- 246cdf0e10cSrcweir 247cdf0e10cSrcweir short SvxAreaTabDialog::Ok() 248cdf0e10cSrcweir { 249cdf0e10cSrcweir SavePalettes(); 250cdf0e10cSrcweir 251cdf0e10cSrcweir // Es wird RET_OK zurueckgeliefert, wenn wenigstens eine 252cdf0e10cSrcweir // TabPage in FillItemSet() sal_True zurueckliefert. Dieses 253cdf0e10cSrcweir // geschieht z.Z. standardmaessig. 254cdf0e10cSrcweir return( SfxTabDialog::Ok() ); 255cdf0e10cSrcweir } 256cdf0e10cSrcweir 257cdf0e10cSrcweir // ----------------------------------------------------------------------- 258cdf0e10cSrcweir 259cdf0e10cSrcweir IMPL_LINK_INLINE_START( SvxAreaTabDialog, CancelHdlImpl, void *, EMPTYARG) 260cdf0e10cSrcweir { 261cdf0e10cSrcweir SavePalettes(); 262cdf0e10cSrcweir 263cdf0e10cSrcweir EndDialog( RET_CANCEL ); 264cdf0e10cSrcweir return 0; 265cdf0e10cSrcweir } 266cdf0e10cSrcweir IMPL_LINK_INLINE_END( SvxAreaTabDialog, CancelHdlImpl, void *, p ) 267cdf0e10cSrcweir 268cdf0e10cSrcweir // ----------------------------------------------------------------------- 269cdf0e10cSrcweir 270cdf0e10cSrcweir void SvxAreaTabDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) 271cdf0e10cSrcweir { 272cdf0e10cSrcweir switch( nId ) 273cdf0e10cSrcweir { 274cdf0e10cSrcweir case RID_SVXPAGE_AREA: 275cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetColorTable( mpColorTab ); 276cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetGradientList( mpGradientList ); 277cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetHatchingList( mpHatchingList ); 278cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetBitmapList( mpBitmapList ); 279cdf0e10cSrcweir //CHINA001 ( (SvxAreaTabPage&) rPage ).SetPageType( &mnPageType ); 280cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetPageType( mnPageType ); //add CHINA001 281cdf0e10cSrcweir //CHINA001 ( (SvxAreaTabPage&) rPage ).SetDlgType( &mnDlgType ); 282cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetDlgType( mnDlgType );//add CHINA001 283cdf0e10cSrcweir //CHINA001 ( (SvxAreaTabPage&) rPage ).SetPos( &nPos ); 284cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetPos( mnPos );//add CHINA001 285cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 286cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetGrdChgd( &mnGradientListState ); 287cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetHtchChgd( &mnHatchingListState ); 288cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetBmpChgd( &mnBitmapListState ); 289cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 290cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).Construct(); 291cdf0e10cSrcweir // ActivatePage() wird das erste mal nicht gerufen 292cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).ActivatePage( mrOutAttrs ); 293cdf0e10cSrcweir 294cdf0e10cSrcweir break; 295cdf0e10cSrcweir 296cdf0e10cSrcweir case RID_SVXPAGE_SHADOW: 297cdf0e10cSrcweir { 298cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).SetColorTable( mpColorTab ); 299cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).SetPageType( mnPageType );//CHINA001 ( (SvxShadowTabPage&) rPage ).SetPageType( &mnPageType ); 300cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).SetDlgType( mnDlgType );//CHINA001 ( (SvxShadowTabPage&) rPage ).SetDlgType( &mnDlgType ); 301cdf0e10cSrcweir //( (SvxShadowTabPage&) rPage ).SetPos( &nPos ); 302cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 303cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 304cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).Construct(); 305cdf0e10cSrcweir } 306cdf0e10cSrcweir break; 307cdf0e10cSrcweir 308cdf0e10cSrcweir case RID_SVXPAGE_GRADIENT: 309cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetColorTable( mpColorTab ); 310cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetGradientList( mpGradientList ); 311cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetPageType( &mnPageType ); 312cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetDlgType( &mnDlgType ); 313cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetPos( &mnPos ); 314cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 315cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetGrdChgd( &mnGradientListState ); 316cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 317cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).Construct(); 318cdf0e10cSrcweir break; 319cdf0e10cSrcweir 320cdf0e10cSrcweir case RID_SVXPAGE_HATCH: 321cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetColorTable( mpColorTab ); 322cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetHatchingList( mpHatchingList ); 323cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetPageType( &mnPageType ); 324cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetDlgType( &mnDlgType ); 325cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetPos( &mnPos ); 326cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 327cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetHtchChgd( &mnHatchingListState ); 328cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 329cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).Construct(); 330cdf0e10cSrcweir break; 331cdf0e10cSrcweir 332cdf0e10cSrcweir case RID_SVXPAGE_BITMAP: 333cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetColorTable( mpColorTab ); 334cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetBitmapList( mpBitmapList ); 335cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetPageType( &mnPageType ); 336cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetDlgType( &mnDlgType ); 337cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetPos( &mnPos ); 338cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 339cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetBmpChgd( &mnBitmapListState ); 340cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 341cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).Construct(); 342cdf0e10cSrcweir break; 343cdf0e10cSrcweir 344cdf0e10cSrcweir case RID_SVXPAGE_COLOR: 345cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetColorTable( mpColorTab ); 346cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetPageType( &mnPageType ); 347cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetDlgType( &mnDlgType ); 348cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetPos( &mnPos ); 349cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 350cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 351cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetDeleteColorTable( mbDeleteColorTable ); 352cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).Construct(); 353cdf0e10cSrcweir break; 354cdf0e10cSrcweir 355cdf0e10cSrcweir case RID_SVXPAGE_TRANSPARENCE: 356cdf0e10cSrcweir ( (SvxTransparenceTabPage&) rPage ).SetPageType( mnPageType );//CHINA001 ( (SvxTransparenceTabPage&) rPage ).SetPageType( &mnPageType ); 357cdf0e10cSrcweir ( (SvxTransparenceTabPage&) rPage ).SetDlgType( mnDlgType );//CHINA001 ( (SvxTransparenceTabPage&) rPage ).SetDlgType( &mnDlgType ); 358cdf0e10cSrcweir ( (SvxTransparenceTabPage&) rPage ).Construct(); 359cdf0e10cSrcweir break; 360cdf0e10cSrcweir 361cdf0e10cSrcweir } 362cdf0e10cSrcweir } 363cdf0e10cSrcweir 364cdf0e10cSrcweir 365