xref: /trunk/main/cui/source/dialogs/sdrcelldlg.cxx (revision c7be74b1)
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 <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 
SvxFormatCellsDialog(Window * pParent,const SfxItemSet * pAttr,SdrModel * pModel)37cdf0e10cSrcweir SvxFormatCellsDialog::SvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel )
38cdf0e10cSrcweir : SfxTabDialog        ( pParent, CUI_RES( RID_SVX_FORMAT_CELLS_DLG ), pAttr )
39cdf0e10cSrcweir , mrOutAttrs			( *pAttr )
40*c7be74b1SArmin Le Grand , maColorTab           ( pModel->GetColorTableFromSdrModel() )
41*c7be74b1SArmin Le Grand , maGradientList       ( pModel->GetGradientListFromSdrModel() )
42*c7be74b1SArmin Le Grand , maHatchingList       ( pModel->GetHatchListFromSdrModel() )
43*c7be74b1SArmin Le Grand , maBitmapList         ( pModel->GetBitmapListFromSdrModel() )
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 
~SvxFormatCellsDialog()62cdf0e10cSrcweir SvxFormatCellsDialog::~SvxFormatCellsDialog()
63cdf0e10cSrcweir {
64cdf0e10cSrcweir }
65cdf0e10cSrcweir 
PageCreated(sal_uInt16 nId,SfxTabPage & rPage)66cdf0e10cSrcweir void SvxFormatCellsDialog::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
67cdf0e10cSrcweir {
68cdf0e10cSrcweir 	switch( nId )
69cdf0e10cSrcweir 	{
70cdf0e10cSrcweir 		case RID_SVXPAGE_AREA:
71*c7be74b1SArmin Le Grand 			( (SvxAreaTabPage&) rPage ).SetColorTable( maColorTab );
72*c7be74b1SArmin Le Grand 			( (SvxAreaTabPage&) rPage ).SetGradientList( maGradientList );
73*c7be74b1SArmin Le Grand 			( (SvxAreaTabPage&) rPage ).SetHatchingList( maHatchingList );
74*c7be74b1SArmin Le Grand 			( (SvxAreaTabPage&) rPage ).SetBitmapList( maBitmapList );
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 
Apply()95cdf0e10cSrcweir void SvxFormatCellsDialog::Apply()
96cdf0e10cSrcweir {
97cdf0e10cSrcweir }
98