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 <svl/cjkoptions.hxx> 28cdf0e10cSrcweir #include <svx/flagsdef.hxx> 29cdf0e10cSrcweir #include "cuires.hrc" 30cdf0e10cSrcweir #include "sdrcelldlg.hxx" 31cdf0e10cSrcweir #include "dialmgr.hxx" 32cdf0e10cSrcweir #include "cuitabarea.hxx" 33cdf0e10cSrcweir #include "svx/svdmodel.hxx" 34cdf0e10cSrcweir #include "border.hxx" 35cdf0e10cSrcweir #include <svx/dialogs.hrc> // RID_SVXPAGE_... 36cdf0e10cSrcweir 37cdf0e10cSrcweir SvxFormatCellsDialog::SvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel ) 38cdf0e10cSrcweir : SfxTabDialog ( pParent, CUI_RES( RID_SVX_FORMAT_CELLS_DLG ), pAttr ) 39cdf0e10cSrcweir , mrOutAttrs ( *pAttr ) 40cdf0e10cSrcweir , mpColorTab ( pModel->GetColorTable() ) 41cdf0e10cSrcweir , mpGradientList ( pModel->GetGradientList() ) 42cdf0e10cSrcweir , mpHatchingList ( pModel->GetHatchList() ) 43cdf0e10cSrcweir , mpBitmapList ( pModel->GetBitmapList() ) 44cdf0e10cSrcweir 45cdf0e10cSrcweir { 46cdf0e10cSrcweir FreeResource(); 47cdf0e10cSrcweir 48cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_CHAR_NAME ); 49cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_CHAR_EFFECTS ); 50cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_BORDER ); 51cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_AREA ); 52cdf0e10cSrcweir 53cdf0e10cSrcweir /* 54cdf0e10cSrcweir SvtCJKOptions aCJKOptions; 55cdf0e10cSrcweir if( aCJKOptions.IsAsianTypographyEnabled() ) 56cdf0e10cSrcweir AddTabPage( RID_SVXPAGE_PARA_ASIAN); 57cdf0e10cSrcweir else 58cdf0e10cSrcweir RemoveTabPage( RID_SVXPAGE_PARA_ASIAN ); 59cdf0e10cSrcweir */ 60cdf0e10cSrcweir } 61cdf0e10cSrcweir 62cdf0e10cSrcweir SvxFormatCellsDialog::~SvxFormatCellsDialog() 63cdf0e10cSrcweir { 64cdf0e10cSrcweir } 65cdf0e10cSrcweir 66cdf0e10cSrcweir void SvxFormatCellsDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) 67cdf0e10cSrcweir { 68cdf0e10cSrcweir switch( nId ) 69cdf0e10cSrcweir { 70cdf0e10cSrcweir case RID_SVXPAGE_AREA: 71cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetColorTable( mpColorTab ); 72cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetGradientList( mpGradientList ); 73cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetHatchingList( mpHatchingList ); 74cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetBitmapList( mpBitmapList ); 75cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetPageType( PT_AREA ); 76cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetDlgType( 1 ); 77cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).SetPos( 0 ); 78cdf0e10cSrcweir // ( (SvxAreaTabPage&) rPage ).SetAreaTP( &mbAreaTP ); 79cdf0e10cSrcweir // ( (SvxAreaTabPage&) rPage ).SetGrdChgd( &mnGradientListState ); 80cdf0e10cSrcweir // ( (SvxAreaTabPage&) rPage ).SetHtchChgd( &mnHatchingListState ); 81cdf0e10cSrcweir // ( (SvxAreaTabPage&) rPage ).SetBmpChgd( &mnBitmapListState ); 82cdf0e10cSrcweir // ( (SvxAreaTabPage&) rPage ).SetColorChgd( &mnColorTableState ); 83cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).Construct(); 84cdf0e10cSrcweir // ActivatePage() wird das erste mal nicht gerufen 85cdf0e10cSrcweir ( (SvxAreaTabPage&) rPage ).ActivatePage( mrOutAttrs ); 86cdf0e10cSrcweir 87cdf0e10cSrcweir break; 88cdf0e10cSrcweir 89cdf0e10cSrcweir default: 90cdf0e10cSrcweir SfxTabDialog::PageCreated( nId, rPage ); 91cdf0e10cSrcweir break; 92cdf0e10cSrcweir } 93cdf0e10cSrcweir } 94cdf0e10cSrcweir 95cdf0e10cSrcweir void SvxFormatCellsDialog::Apply() 96cdf0e10cSrcweir { 97cdf0e10cSrcweir } 98