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 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 ), 71*c7be74b1SArmin Le Grand maColorTab ( pModel->GetColorTableFromSdrModel() ), 72*c7be74b1SArmin Le Grand maNewColorTab ( pModel->GetColorTableFromSdrModel() ), 73*c7be74b1SArmin Le Grand maGradientList ( pModel->GetGradientListFromSdrModel() ), 74*c7be74b1SArmin Le Grand maNewGradientList ( pModel->GetGradientListFromSdrModel() ), 75*c7be74b1SArmin Le Grand maHatchingList ( pModel->GetHatchListFromSdrModel() ), 76*c7be74b1SArmin Le Grand maNewHatchingList ( pModel->GetHatchListFromSdrModel() ), 77*c7be74b1SArmin Le Grand maBitmapList ( pModel->GetBitmapListFromSdrModel() ), 78*c7be74b1SArmin 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 ), 87*c7be74b1SArmin Le Grand mbAreaTP( sal_False ) 88cdf0e10cSrcweir { 89cdf0e10cSrcweir FreeResource(); 90cdf0e10cSrcweir 91cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_AREA, SvxAreaTabPage::Create, 0 ); 92cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_SHADOW, SvxShadowTabPage::Create, 0 ); 93cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_TRANSPARENCE, SvxTransparenceTabPage::Create, 0); 94cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_COLOR, SvxColorTabPage::Create, 0 ); 95cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_GRADIENT, SvxGradientTabPage::Create, 0 ); 96cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_HATCH, SvxHatchTabPage::Create, 0 ); 97cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_BITMAP, SvxBitmapTabPage::Create, 0); 98cdf0e10cSrcweir 99cdf0e10cSrcweir SetCurPageId( RID_SVXPAGE_AREA ); 100cdf0e10cSrcweir 101cdf0e10cSrcweir CancelButton& rBtnCancel = GetCancelButton(); 102cdf0e10cSrcweir rBtnCancel.SetClickHdl( LINK( this, SvxAreaTabDialog, CancelHdlImpl ) ); 103cdf0e10cSrcweir //! rBtnCancel.SetText( CUI_RESSTR( RID_SVXSTR_CLOSE ) ); 104cdf0e10cSrcweir } 105cdf0e10cSrcweir 106cdf0e10cSrcweir // ----------------------------------------------------------------------- 107cdf0e10cSrcweir 108cdf0e10cSrcweir SvxAreaTabDialog::~SvxAreaTabDialog() 109cdf0e10cSrcweir { 110cdf0e10cSrcweir } 111cdf0e10cSrcweir 112cdf0e10cSrcweir 113cdf0e10cSrcweir // ----------------------------------------------------------------------- 114cdf0e10cSrcweir 115cdf0e10cSrcweir void SvxAreaTabDialog::SavePalettes() 116cdf0e10cSrcweir { 117cdf0e10cSrcweir SfxObjectShell* pShell = SfxObjectShell::Current(); 118cdf0e10cSrcweir /*uno::Reference< frame::XDispatchProvider > xDispatchProvider; 119cdf0e10cSrcweir if ( !pShell ) 120cdf0e10cSrcweir { 121cdf0e10cSrcweir uno::Reference< frame::XModel> xModel = mpDrawModel->getUnoModel(); 122cdf0e10cSrcweir if ( xModel.is() ) 123cdf0e10cSrcweir xDispatchProvider.set(xModel->getCurrentController(),uno::UNO_QUERY); 124cdf0e10cSrcweir }*/ 125*c7be74b1SArmin Le Grand if( maNewColorTab != mpDrawModel->GetColorTableFromSdrModel() ) 126cdf0e10cSrcweir { 127*c7be74b1SArmin Le Grand mpDrawModel->SetColorTableAtSdrModel( maNewColorTab ); 128*c7be74b1SArmin Le Grand SvxColorTableItem aColorTableItem( maNewColorTab, SID_COLOR_TABLE ); 129cdf0e10cSrcweir if ( pShell ) 130cdf0e10cSrcweir pShell->PutItem( aColorTableItem ); 131cdf0e10cSrcweir else 132cdf0e10cSrcweir { 133cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aColorTableItem,SID_COLOR_TABLE); 134cdf0e10cSrcweir } 135*c7be74b1SArmin Le Grand maColorTab = mpDrawModel->GetColorTableFromSdrModel(); 136cdf0e10cSrcweir } 137*c7be74b1SArmin Le Grand if( maNewGradientList != mpDrawModel->GetGradientListFromSdrModel() ) 138cdf0e10cSrcweir { 139*c7be74b1SArmin Le Grand mpDrawModel->SetGradientListAtSdrModel( maNewGradientList ); 140*c7be74b1SArmin Le Grand SvxGradientListItem aItem( maNewGradientList, SID_GRADIENT_LIST ); 141cdf0e10cSrcweir if ( pShell ) 142cdf0e10cSrcweir pShell->PutItem( aItem ); 143cdf0e10cSrcweir else 144cdf0e10cSrcweir { 145cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem,SID_GRADIENT_LIST); 146cdf0e10cSrcweir } 147*c7be74b1SArmin Le Grand maGradientList = mpDrawModel->GetGradientListFromSdrModel(); 148cdf0e10cSrcweir } 149*c7be74b1SArmin Le Grand if( maNewHatchingList != mpDrawModel->GetHatchListFromSdrModel() ) 150cdf0e10cSrcweir { 151*c7be74b1SArmin Le Grand mpDrawModel->SetHatchListAtSdrModel( maNewHatchingList ); 152*c7be74b1SArmin Le Grand SvxHatchListItem aItem( maNewHatchingList, SID_HATCH_LIST ); 153cdf0e10cSrcweir if ( pShell ) 154cdf0e10cSrcweir pShell->PutItem( aItem ); 155cdf0e10cSrcweir else 156cdf0e10cSrcweir { 157cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem,SID_HATCH_LIST); 158cdf0e10cSrcweir } 159*c7be74b1SArmin Le Grand maHatchingList = mpDrawModel->GetHatchListFromSdrModel(); 160cdf0e10cSrcweir } 161*c7be74b1SArmin Le Grand if( maNewBitmapList != mpDrawModel->GetBitmapListFromSdrModel() ) 162cdf0e10cSrcweir { 163*c7be74b1SArmin Le Grand mpDrawModel->SetBitmapListAtSdrModel( maNewBitmapList ); 164*c7be74b1SArmin Le Grand SvxBitmapListItem aItem( maNewBitmapList, SID_BITMAP_LIST ); 165cdf0e10cSrcweir if ( pShell ) 166cdf0e10cSrcweir pShell->PutItem( aItem ); 167cdf0e10cSrcweir else 168cdf0e10cSrcweir { 169cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem,SID_BITMAP_LIST); 170cdf0e10cSrcweir } 171*c7be74b1SArmin Le Grand maBitmapList = mpDrawModel->GetBitmapListFromSdrModel(); 172cdf0e10cSrcweir } 173cdf0e10cSrcweir 174cdf0e10cSrcweir // Speichern der Tabellen, wenn sie geaendert wurden. 175cdf0e10cSrcweir 176cdf0e10cSrcweir const String aPath( SvtPathOptions().GetPalettePath() ); 177cdf0e10cSrcweir 178cdf0e10cSrcweir if( mnHatchingListState & CT_MODIFIED ) 179cdf0e10cSrcweir { 180*c7be74b1SArmin Le Grand maHatchingList->SetPath( aPath ); 181*c7be74b1SArmin Le Grand maHatchingList->Save(); 182cdf0e10cSrcweir 183*c7be74b1SArmin Le Grand SvxHatchListItem aItem( maHatchingList, SID_HATCH_LIST ); 184cdf0e10cSrcweir // ToolBoxControls werden benachrichtigt: 185cdf0e10cSrcweir if ( pShell ) 186cdf0e10cSrcweir pShell->PutItem( aItem ); 187cdf0e10cSrcweir else 188cdf0e10cSrcweir { 189cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem); 190cdf0e10cSrcweir } 191cdf0e10cSrcweir } 192cdf0e10cSrcweir 193cdf0e10cSrcweir if( mnBitmapListState & CT_MODIFIED ) 194cdf0e10cSrcweir { 195*c7be74b1SArmin Le Grand maBitmapList->SetPath( aPath ); 196*c7be74b1SArmin Le Grand maBitmapList->Save(); 197cdf0e10cSrcweir 198*c7be74b1SArmin Le Grand SvxBitmapListItem aItem( maBitmapList, SID_BITMAP_LIST ); 199cdf0e10cSrcweir // ToolBoxControls werden benachrichtigt: 200cdf0e10cSrcweir if ( pShell ) 201cdf0e10cSrcweir pShell->PutItem( aItem ); 202cdf0e10cSrcweir else 203cdf0e10cSrcweir { 204cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem); 205cdf0e10cSrcweir } 206cdf0e10cSrcweir } 207cdf0e10cSrcweir 208cdf0e10cSrcweir if( mnGradientListState & CT_MODIFIED ) 209cdf0e10cSrcweir { 210*c7be74b1SArmin Le Grand maGradientList->SetPath( aPath ); 211*c7be74b1SArmin Le Grand maGradientList->Save(); 212cdf0e10cSrcweir 213*c7be74b1SArmin Le Grand SvxGradientListItem aItem( maGradientList, SID_GRADIENT_LIST ); 214cdf0e10cSrcweir // ToolBoxControls werden benachrichtigt: 215cdf0e10cSrcweir if ( pShell ) 216cdf0e10cSrcweir pShell->PutItem( aItem ); 217cdf0e10cSrcweir else 218cdf0e10cSrcweir { 219cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem); 220cdf0e10cSrcweir } 221cdf0e10cSrcweir } 222cdf0e10cSrcweir 223cdf0e10cSrcweir if( mnColorTableState & CT_MODIFIED ) 224cdf0e10cSrcweir { 225*c7be74b1SArmin Le Grand maColorTab->SetPath( aPath ); 226*c7be74b1SArmin Le Grand maColorTab->Save(); 227cdf0e10cSrcweir 228*c7be74b1SArmin Le Grand SvxColorTableItem aItem( maColorTab, SID_COLOR_TABLE ); 229cdf0e10cSrcweir // ToolBoxControls werden benachrichtigt: 230cdf0e10cSrcweir if ( pShell ) 231cdf0e10cSrcweir pShell->PutItem( aItem ); 232cdf0e10cSrcweir else 233cdf0e10cSrcweir { 234cdf0e10cSrcweir mpDrawModel->GetItemPool().Put(aItem); 235cdf0e10cSrcweir } 236cdf0e10cSrcweir } 237cdf0e10cSrcweir } 238cdf0e10cSrcweir // ----------------------------------------------------------------------- 239cdf0e10cSrcweir 240cdf0e10cSrcweir short SvxAreaTabDialog::Ok() 241cdf0e10cSrcweir { 242cdf0e10cSrcweir SavePalettes(); 243cdf0e10cSrcweir 244cdf0e10cSrcweir // Es wird RET_OK zurueckgeliefert, wenn wenigstens eine 245cdf0e10cSrcweir // TabPage in FillItemSet() sal_True zurueckliefert. Dieses 246cdf0e10cSrcweir // geschieht z.Z. standardmaessig. 247cdf0e10cSrcweir return( SfxTabDialog::Ok() ); 248cdf0e10cSrcweir } 249cdf0e10cSrcweir 250cdf0e10cSrcweir // ----------------------------------------------------------------------- 251cdf0e10cSrcweir 252cdf0e10cSrcweir IMPL_LINK_INLINE_START( SvxAreaTabDialog, CancelHdlImpl, void *, EMPTYARG) 253cdf0e10cSrcweir { 254cdf0e10cSrcweir SavePalettes(); 255cdf0e10cSrcweir 256cdf0e10cSrcweir EndDialog( RET_CANCEL ); 257cdf0e10cSrcweir return 0; 258cdf0e10cSrcweir } 259cdf0e10cSrcweir IMPL_LINK_INLINE_END( SvxAreaTabDialog, CancelHdlImpl, void *, p ) 260cdf0e10cSrcweir 261cdf0e10cSrcweir // ----------------------------------------------------------------------- 262cdf0e10cSrcweir 263cdf0e10cSrcweir void SvxAreaTabDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) 264cdf0e10cSrcweir { 265cdf0e10cSrcweir switch( nId ) 266cdf0e10cSrcweir { 267cdf0e10cSrcweir case RID_SVXPAGE_AREA: 268*c7be74b1SArmin Le Grand ( (SvxAreaTabPage&) rPage ).SetColorTable( maColorTab ); 269*c7be74b1SArmin Le Grand ( (SvxAreaTabPage&) rPage ).SetGradientList( maGradientList ); 270*c7be74b1SArmin Le Grand ( (SvxAreaTabPage&) rPage ).SetHatchingList( maHatchingList ); 271*c7be74b1SArmin Le Grand ( (SvxAreaTabPage&) rPage ).SetBitmapList( maBitmapList ); 272cdf0e10cSrcweir //CHINA001 ( (SvxAreaTabPage&) rPage ).SetPageType( &mnPageType ); 273cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetPageType( mnPageType ); //add CHINA001 274cdf0e10cSrcweir //CHINA001 ( (SvxAreaTabPage&) rPage ).SetDlgType( &mnDlgType ); 275cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetDlgType( mnDlgType );//add CHINA001 276cdf0e10cSrcweir //CHINA001 ( (SvxAreaTabPage&) rPage ).SetPos( &nPos ); 277cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetPos( mnPos );//add CHINA001 278cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 279cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetGrdChgd( &mnGradientListState ); 280cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetHtchChgd( &mnHatchingListState ); 281cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetBmpChgd( &mnBitmapListState ); 282cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 283cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).Construct(); 284cdf0e10cSrcweir // ActivatePage() wird das erste mal nicht gerufen 285cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).ActivatePage( mrOutAttrs ); 286cdf0e10cSrcweir 287cdf0e10cSrcweir break; 288cdf0e10cSrcweir 289cdf0e10cSrcweir case RID_SVXPAGE_SHADOW: 290cdf0e10cSrcweir { 291*c7be74b1SArmin Le Grand ( (SvxShadowTabPage&) rPage ).SetColorTable( maColorTab ); 292cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).SetPageType( mnPageType );//CHINA001 ( (SvxShadowTabPage&) rPage ).SetPageType( &mnPageType ); 293cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).SetDlgType( mnDlgType );//CHINA001 ( (SvxShadowTabPage&) rPage ).SetDlgType( &mnDlgType ); 294cdf0e10cSrcweir //( (SvxShadowTabPage&) rPage ).SetPos( &nPos ); 295cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 296cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 297cdf0e10cSrcweir ( (SvxShadowTabPage&) rPage ).Construct(); 298cdf0e10cSrcweir } 299cdf0e10cSrcweir break; 300cdf0e10cSrcweir 301cdf0e10cSrcweir case RID_SVXPAGE_GRADIENT: 302*c7be74b1SArmin Le Grand ( (SvxGradientTabPage&) rPage ).SetColorTable( maColorTab ); 303*c7be74b1SArmin Le Grand ( (SvxGradientTabPage&) rPage ).SetGradientList( maGradientList ); 304cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetPageType( &mnPageType ); 305cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetDlgType( &mnDlgType ); 306cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetPos( &mnPos ); 307cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 308cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetGrdChgd( &mnGradientListState ); 309cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 310cdf0e10cSrcweir ( (SvxGradientTabPage&) rPage ).Construct(); 311cdf0e10cSrcweir break; 312cdf0e10cSrcweir 313cdf0e10cSrcweir case RID_SVXPAGE_HATCH: 314*c7be74b1SArmin Le Grand ( (SvxHatchTabPage&) rPage ).SetColorTable( maColorTab ); 315*c7be74b1SArmin Le Grand ( (SvxHatchTabPage&) rPage ).SetHatchingList( maHatchingList ); 316cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetPageType( &mnPageType ); 317cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetDlgType( &mnDlgType ); 318cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetPos( &mnPos ); 319cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 320cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetHtchChgd( &mnHatchingListState ); 321cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 322cdf0e10cSrcweir ( (SvxHatchTabPage&) rPage ).Construct(); 323cdf0e10cSrcweir break; 324cdf0e10cSrcweir 325cdf0e10cSrcweir case RID_SVXPAGE_BITMAP: 326*c7be74b1SArmin Le Grand ( (SvxBitmapTabPage&) rPage ).SetColorTable( maColorTab ); 327*c7be74b1SArmin Le Grand ( (SvxBitmapTabPage&) rPage ).SetBitmapList( maBitmapList ); 328cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetPageType( &mnPageType ); 329cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetDlgType( &mnDlgType ); 330cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetPos( &mnPos ); 331cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 332cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetBmpChgd( &mnBitmapListState ); 333cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 334cdf0e10cSrcweir ( (SvxBitmapTabPage&) rPage ).Construct(); 335cdf0e10cSrcweir break; 336cdf0e10cSrcweir 337cdf0e10cSrcweir case RID_SVXPAGE_COLOR: 338*c7be74b1SArmin Le Grand ( (SvxColorTabPage&) rPage ).SetColorTable( maColorTab ); 339cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetPageType( &mnPageType ); 340cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetDlgType( &mnDlgType ); 341cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetPos( &mnPos ); 342cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 343cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 344cdf0e10cSrcweir ( (SvxColorTabPage&) rPage ).Construct(); 345cdf0e10cSrcweir break; 346cdf0e10cSrcweir 347cdf0e10cSrcweir case RID_SVXPAGE_TRANSPARENCE: 348cdf0e10cSrcweir ( (SvxTransparenceTabPage&) rPage ).SetPageType( mnPageType );//CHINA001 ( (SvxTransparenceTabPage&) rPage ).SetPageType( &mnPageType ); 349cdf0e10cSrcweir ( (SvxTransparenceTabPage&) rPage ).SetDlgType( mnDlgType );//CHINA001 ( (SvxTransparenceTabPage&) rPage ).SetDlgType( &mnDlgType ); 350cdf0e10cSrcweir ( (SvxTransparenceTabPage&) rPage ).Construct(); 351cdf0e10cSrcweir break; 352cdf0e10cSrcweir 353cdf0e10cSrcweir } 354cdf0e10cSrcweir } 355cdf0e10cSrcweir 356cdf0e10cSrcweir 357