diff options
author | Mathias Bauer <mba@openoffice.org> | 2009-10-31 00:36:06 +0100 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2009-10-31 00:36:06 +0100 |
commit | d32b3a714fe55892bdead03502c5a9b0e77fa61d (patch) | |
tree | 05a682f7a6b9210ddeb38b2afb05c7886caaf4cf /cui/source/dialogs/sdrcelldlg.cxx | |
parent | merge commit for m62 (diff) | |
download | core-d32b3a714fe55892bdead03502c5a9b0e77fa61d.tar.gz core-d32b3a714fe55892bdead03502c5a9b0e77fa61d.zip |
#i106421#: move svx/source/cui to cui
Diffstat (limited to 'cui/source/dialogs/sdrcelldlg.cxx')
-rw-r--r-- | cui/source/dialogs/sdrcelldlg.cxx | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/cui/source/dialogs/sdrcelldlg.cxx b/cui/source/dialogs/sdrcelldlg.cxx new file mode 100644 index 000000000000..29fe21131b02 --- /dev/null +++ b/cui/source/dialogs/sdrcelldlg.cxx @@ -0,0 +1,103 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: sdrcelldlg.cxx,v $ + * $Revision: 1.3 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +// MARKER(update_precomp.py): autogen include statement, do not remove +#include "precompiled_cui.hxx" + +#include <svl/cjkoptions.hxx> +#include <svx/flagsdef.hxx> +#include "svx/dialogs.hrc" +#include "sdrcelldlg.hxx" +#include "svx/dialmgr.hxx" +#include "cuitabarea.hxx" +#include "svx/svdmodel.hxx" +#include "border.hxx" + +SvxFormatCellsDialog::SvxFormatCellsDialog( Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel ) +: SfxTabDialog ( pParent, SVX_RES( RID_SVX_FORMAT_CELLS_DLG ), pAttr ) +, mrOutAttrs ( *pAttr ) +, mpColorTab ( pModel->GetColorTable() ) +, mpGradientList ( pModel->GetGradientList() ) +, mpHatchingList ( pModel->GetHatchList() ) +, mpBitmapList ( pModel->GetBitmapList() ) + +{ + FreeResource(); + + AddTabPage( RID_SVXPAGE_CHAR_NAME ); + AddTabPage( RID_SVXPAGE_CHAR_EFFECTS ); + AddTabPage( RID_SVXPAGE_BORDER ); + AddTabPage( RID_SVXPAGE_AREA ); + +/* + SvtCJKOptions aCJKOptions; + if( aCJKOptions.IsAsianTypographyEnabled() ) + AddTabPage( RID_SVXPAGE_PARA_ASIAN); + else + RemoveTabPage( RID_SVXPAGE_PARA_ASIAN ); +*/ +} + +SvxFormatCellsDialog::~SvxFormatCellsDialog() +{ +} + +void SvxFormatCellsDialog::PageCreated( USHORT nId, SfxTabPage &rPage ) +{ + switch( nId ) + { + case RID_SVXPAGE_AREA: + ( (SvxAreaTabPage&) rPage ).SetColorTable( mpColorTab ); + ( (SvxAreaTabPage&) rPage ).SetGradientList( mpGradientList ); + ( (SvxAreaTabPage&) rPage ).SetHatchingList( mpHatchingList ); + ( (SvxAreaTabPage&) rPage ).SetBitmapList( mpBitmapList ); + ( (SvxAreaTabPage&) rPage ).SetPageType( PT_AREA ); + ( (SvxAreaTabPage&) rPage ).SetDlgType( 1 ); + ( (SvxAreaTabPage&) rPage ).SetPos( 0 ); +// ( (SvxAreaTabPage&) rPage ).SetAreaTP( &mbAreaTP ); +// ( (SvxAreaTabPage&) rPage ).SetGrdChgd( &mnGradientListState ); +// ( (SvxAreaTabPage&) rPage ).SetHtchChgd( &mnHatchingListState ); +// ( (SvxAreaTabPage&) rPage ).SetBmpChgd( &mnBitmapListState ); +// ( (SvxAreaTabPage&) rPage ).SetColorChgd( &mnColorTableState ); + ( (SvxAreaTabPage&) rPage ).Construct(); + // ActivatePage() wird das erste mal nicht gerufen + ( (SvxAreaTabPage&) rPage ).ActivatePage( mrOutAttrs ); + + break; + + default: + SfxTabDialog::PageCreated( nId, rPage ); + break; + } +} + +void SvxFormatCellsDialog::Apply() +{ +} |