Files
libreoffice/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx

616 lines
26 KiB
C++
Raw Normal View History

2003-10-06 08:58:36 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2003-10-06 08:58:36 +00:00
*
* Copyright 2008 by Sun Microsystems, Inc.
2003-10-06 08:58:36 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2003-10-06 08:58:36 +00:00
*
* $RCSfile: dlg_ObjectProperties.cxx,v $
2008-10-01 07:35:04 +00:00
* $Revision: 1.23.42.3 $
2003-10-06 08:58:36 +00:00
*
* This file is part of OpenOffice.org.
2003-10-06 08:58:36 +00:00
*
* 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.
2003-10-06 08:58:36 +00:00
*
* 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).
2003-10-06 08:58:36 +00:00
*
* 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.
2003-10-06 08:58:36 +00:00
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_chart2.hxx"
2003-10-06 08:58:36 +00:00
#ifndef _ZFORLIST_HXX
#ifndef _ZFORLIST_DECLARE_TABLE
#define _ZFORLIST_DECLARE_TABLE
#endif
#include <svtools/zforlist.hxx>
#endif
#include "dlg_ObjectProperties.hxx"
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
#include "ResourceIds.hrc"
#include "Strings.hrc"
2003-10-06 08:58:36 +00:00
#include "TabPages.hrc"
#include "tp_AxisLabel.hxx"
#include "tp_DataLabel.hxx"
#include "tp_LegendPosition.hxx"
#include "tp_PointGeometry.hxx"
#include "tp_Scale.hxx"
2008-12-12 12:17:17 +00:00
#include "tp_AxisPositions.hxx"
#include "tp_ErrorBars.hxx"
#include "tp_Trendline.hxx"
2003-10-06 08:58:36 +00:00
#include "tp_SeriesToAxis.hxx"
#include "tp_TitleRotation.hxx"
#include "tp_PolarOptions.hxx"
2003-10-06 08:58:36 +00:00
#include "ResId.hxx"
#include "ViewElementListProvider.hxx"
#include "macros.hxx"
#include "ChartModelHelper.hxx"
#include "ChartTypeHelper.hxx"
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
#include "ObjectNameProvider.hxx"
#include "DiagramHelper.hxx"
#include "chartview/NumberFormatterWrapper.hxx"
#include "AxisIndexDefines.hxx"
2008-12-12 12:17:17 +00:00
#include "AxisHelper.hxx"
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
#include <com/sun/star/chart2/XAxis.hpp>
#include <com/sun/star/chart2/XChartType.hpp>
#include <com/sun/star/chart2/XDataSeries.hpp>
#include <svtools/intitem.hxx>
2008-11-26 15:19:48 +00:00
#include <svtools/languageoptions.hxx>
#include <svx/svxids.hrc>
#include <svx/drawitem.hxx>
#include <svx/ofaitem.hxx>
#include <svx/svxgrahicitem.hxx>
2003-10-06 08:58:36 +00:00
#include <svx/dialogs.hrc>
#include <svx/flstitem.hxx>
#include <svx/tabline.hxx>
2004-05-12 14:24:22 +00:00
#include <svx/flagsdef.hxx>
2003-10-06 08:58:36 +00:00
#include <svx/numinf.hxx>
//.............................................................................
namespace chart
{
//.............................................................................
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart2;
2008-12-12 12:17:17 +00:00
using ::com::sun::star::uno::Reference;
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
ObjectPropertiesDialogParameter::ObjectPropertiesDialogParameter( const rtl::OUString& rObjectCID )
: m_aObjectCID( rObjectCID )
, m_eObjectType( ObjectIdentifier::getObjectType( m_aObjectCID ) )
, m_bAffectsMultipleObjects(false)
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
, m_aLocalizedName()
, m_bHasGeometryProperties(false)
, m_bHasStatisticProperties(false)
, m_bProvidesSecondaryYAxis(false)
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
, m_bProvidesOverlapAndGapWidth(false)
, m_bProvidesBarConnectors(false)
, m_bHasAreaProperties(false)
, m_bHasSymbolProperties(false)
, m_bHasNumberProperties(false)
, m_bProvidesStartingAngle(false)
, m_bProvidesMissingValueTreatments(false)
2008-12-12 12:17:17 +00:00
, m_bHasScaleProperties(false)
, m_bCanAxisLabelsBeStaggered(false)
, m_bSupportingAxisPositioning(false)
, m_bShowAxisOrigin(false)
, m_bIsCrossingAxisIsCategoryAxis(false)
, m_aCategories()
, m_xChartDocument( 0 )
{
rtl::OUString aParticleID = ObjectIdentifier::getParticleID( m_aObjectCID );
m_bAffectsMultipleObjects = aParticleID.equals(C2U("ALLELEMENTS"));
}
ObjectPropertiesDialogParameter::~ObjectPropertiesDialogParameter()
{
}
ObjectType ObjectPropertiesDialogParameter::getObjectType() const
{
return m_eObjectType;
}
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
rtl::OUString ObjectPropertiesDialogParameter::getLocalizedName() const
{
return m_aLocalizedName;
}
void ObjectPropertiesDialogParameter::init( const uno::Reference< frame::XModel >& xChartModel )
{
m_xChartDocument.set( xChartModel, uno::UNO_QUERY );
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
uno::Reference< XDiagram > xDiagram( ChartModelHelper::findDiagram( xChartModel ) );
uno::Reference< XDataSeries > xSeries = ObjectIdentifier::getDataSeriesForCID( m_aObjectCID, xChartModel );
uno::Reference< XChartType > xChartType = ChartModelHelper::getChartTypeOfSeries( xChartModel, xSeries );
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
sal_Int32 nDimensionCount = DiagramHelper::getDimension( xDiagram );
bool bHasSeriesProperties = (OBJECTTYPE_DATA_SERIES==m_eObjectType || OBJECTTYPE_DATA_LABELS==m_eObjectType);
bool bHasDataPointproperties = (OBJECTTYPE_DATA_POINT==m_eObjectType);
if( bHasSeriesProperties || bHasDataPointproperties )
{
m_bHasGeometryProperties = ChartTypeHelper::isSupportingGeometryProperties( xChartType, nDimensionCount );
m_bHasAreaProperties = ChartTypeHelper::isSupportingAreaProperties( xChartType, nDimensionCount );
m_bHasSymbolProperties = ChartTypeHelper::isSupportingSymbolProperties( xChartType, nDimensionCount );
if( bHasSeriesProperties )
{
m_bHasStatisticProperties = ChartTypeHelper::isSupportingStatisticProperties( xChartType, nDimensionCount );
m_bProvidesSecondaryYAxis = ChartTypeHelper::isSupportingSecondaryAxis( xChartType, nDimensionCount, 1 );
m_bProvidesOverlapAndGapWidth = ChartTypeHelper::isSupportingOverlapAndGapWidthProperties( xChartType, nDimensionCount );
m_bProvidesBarConnectors = ChartTypeHelper::isSupportingBarConnectors( xChartType, nDimensionCount );
m_bProvidesStartingAngle = ChartTypeHelper::isSupportingStartingAngle( xChartType );
m_bProvidesMissingValueTreatments = ChartTypeHelper::getSupportedMissingValueTreatments( xChartType )
.getLength() ? true : false;
}
}
if( OBJECTTYPE_DATA_ERRORS == m_eObjectType )
m_bHasStatisticProperties = true;
if( OBJECTTYPE_AXIS == m_eObjectType )
{
//show scale properties only for a single axis not for multiselection
m_bHasScaleProperties = !m_bAffectsMultipleObjects;
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
if( m_bHasScaleProperties )
{
uno::Reference< XAxis > xAxis( ObjectIdentifier::getAxisForCID( m_aObjectCID, xChartModel ) );
if( xAxis.is() )
{
2008-12-12 12:17:17 +00:00
//no scale page for series axis
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
ScaleData aData( xAxis->getScaleData() );
if( chart2::AxisType::SERIES == aData.AxisType )
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
m_bHasScaleProperties = false;
if( chart2::AxisType::REALNUMBER == aData.AxisType || chart2::AxisType::PERCENT == aData.AxisType )
m_bHasNumberProperties = true;
2008-12-12 12:17:17 +00:00
sal_Int32 nCooSysIndex=0;
sal_Int32 nDimensionIndex=0;
sal_Int32 nAxisIndex=0;
if( AxisHelper::getIndicesForAxis( xAxis, xDiagram, nCooSysIndex, nDimensionIndex, nAxisIndex ) )
{
xChartType = AxisHelper::getFirstChartTypeWithSeriesAttachedToAxisIndex( xDiagram, nAxisIndex );
//show positioning controls only if they make sense
m_bSupportingAxisPositioning = ChartTypeHelper::isSupportingAxisPositioning( xChartType, nDimensionCount, nDimensionIndex );
//show axis origin only for secondary y axis
if( 1==nDimensionIndex && 1==nAxisIndex && ChartTypeHelper::isSupportingBaseValue( xChartType ) )
m_bShowAxisOrigin = true;
}
//is the crossin main axis a category axes?:
uno::Reference< XCoordinateSystem > xCooSys( AxisHelper::getCoordinateSystemOfAxis( xAxis, xDiagram ) );
uno::Reference< XAxis > xCrossingMainAxis( AxisHelper::getCrossingMainAxis( xAxis, xCooSys ) );
if( xCrossingMainAxis.is() )
{
ScaleData aScale( xCrossingMainAxis->getScaleData() );
m_bIsCrossingAxisIsCategoryAxis = ( chart2::AxisType::CATEGORY == aScale.AxisType );
if( m_bIsCrossingAxisIsCategoryAxis )
m_aCategories = DiagramHelper::generateAutomaticCategories( Reference< chart2::XChartDocument >( xChartModel, uno::UNO_QUERY) );
}
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
}
}
//no staggering of labels for 3D axis
m_bCanAxisLabelsBeStaggered = nDimensionCount==2;
}
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
//create gui name for this object
{
if( !m_bAffectsMultipleObjects && OBJECTTYPE_AXIS == m_eObjectType )
{
m_aLocalizedName = ObjectNameProvider::getAxisName( m_aObjectCID, xChartModel );
}
else
{
ObjectType eType = m_eObjectType;
if( OBJECTTYPE_DATA_LABEL == eType )
eType = OBJECTTYPE_DATA_POINT;
else if( OBJECTTYPE_DATA_LABELS == eType )
eType = OBJECTTYPE_DATA_SERIES;
m_aLocalizedName = ObjectNameProvider::getName(eType,m_bAffectsMultipleObjects);
}
}
}
bool ObjectPropertiesDialogParameter::HasGeometryProperties() const
{
return m_bHasGeometryProperties;
}
bool ObjectPropertiesDialogParameter::HasStatisticProperties() const
{
return m_bHasStatisticProperties;
}
bool ObjectPropertiesDialogParameter::ProvidesSecondaryYAxis() const
{
return m_bProvidesSecondaryYAxis;
}
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
bool ObjectPropertiesDialogParameter::ProvidesOverlapAndGapWidth() const
{
return m_bProvidesOverlapAndGapWidth;
}
bool ObjectPropertiesDialogParameter::ProvidesBarConnectors() const
{
return m_bProvidesBarConnectors;
}
bool ObjectPropertiesDialogParameter::HasAreaProperties() const
{
return m_bHasAreaProperties;
}
bool ObjectPropertiesDialogParameter::HasSymbolProperties() const
{
return m_bHasSymbolProperties;
}
bool ObjectPropertiesDialogParameter::HasScaleProperties() const
{
return m_bHasScaleProperties;
}
bool ObjectPropertiesDialogParameter::CanAxisLabelsBeStaggered() const
{
return m_bCanAxisLabelsBeStaggered;
}
2008-12-12 12:17:17 +00:00
bool ObjectPropertiesDialogParameter::ShowAxisOrigin() const
{
return m_bShowAxisOrigin;
}
bool ObjectPropertiesDialogParameter::IsSupportingAxisPositioning() const
{
return m_bSupportingAxisPositioning;
}
bool ObjectPropertiesDialogParameter::IsCrossingAxisIsCategoryAxis() const
{
return m_bIsCrossingAxisIsCategoryAxis;
}
const uno::Sequence< rtl::OUString >& ObjectPropertiesDialogParameter::GetCategories() const
{
return m_aCategories;
}
bool ObjectPropertiesDialogParameter::HasNumberProperties() const
{
return m_bHasNumberProperties;
}
bool ObjectPropertiesDialogParameter::ProvidesStartingAngle() const
{
return m_bProvidesStartingAngle;
}
bool ObjectPropertiesDialogParameter::ProvidesMissingValueTreatments() const
{
return m_bProvidesMissingValueTreatments;
}
uno::Reference< chart2::XChartDocument > ObjectPropertiesDialogParameter::getDocument() const
{
return m_xChartDocument;
}
//const USHORT nNoArrowDlg = 1100;
const USHORT nNoArrowNoShadowDlg = 1101;
//-------------------------------------------------------------------
//-------------------------------------------------------------------
//-------------------------------------------------------------------
2003-10-06 08:58:36 +00:00
2003-11-13 14:17:51 +00:00
void SchAttribTabDlg::setSymbolInformation( SfxItemSet* pSymbolShapeProperties,
Graphic* pAutoSymbolGraphic )
2003-10-06 08:58:36 +00:00
{
2003-11-13 14:17:51 +00:00
m_pSymbolShapeProperties = pSymbolShapeProperties;
m_pAutoSymbolGraphic = pAutoSymbolGraphic;
2003-10-06 08:58:36 +00:00
}
void SchAttribTabDlg::SetAxisMinorStepWidthForErrorBarDecimals( double fMinorStepWidth )
{
m_fAxisMinorStepWidthForErrorBarDecimals = fMinorStepWidth;
}
SchAttribTabDlg::SchAttribTabDlg(Window* pParent,
2003-10-06 08:58:36 +00:00
const SfxItemSet* pAttr,
const ObjectPropertiesDialogParameter* pDialogParameter,
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
const ViewElementListProvider* pViewElementListProvider,
const uno::Reference< util::XNumberFormatsSupplier >& xNumberFormatsSupplier
)
: SfxTabDialog(pParent, SchResId(DLG_OBJECT_PROPERTIES), pAttr)
, eObjectType(pDialogParameter->getObjectType())
2003-10-06 08:58:36 +00:00
, nDlgType(nNoArrowNoShadowDlg)
, nPageType(0)
, m_pParameter( pDialogParameter )
2003-10-06 08:58:36 +00:00
, m_pViewElementListProvider( pViewElementListProvider )
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
, m_pNumberFormatter(0)
2003-11-13 14:17:51 +00:00
, m_pSymbolShapeProperties(NULL)
, m_pAutoSymbolGraphic(NULL)
, m_fAxisMinorStepWidthForErrorBarDecimals(0.1)
, m_bOKPressed(false)
2003-10-06 08:58:36 +00:00
{
FreeResource();
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
NumberFormatterWrapper aNumberFormatterWrapper( xNumberFormatsSupplier );
m_pNumberFormatter = aNumberFormatterWrapper.getSvNumberFormatter();
this->SetText( pDialogParameter->getLocalizedName() );
2003-10-06 08:58:36 +00:00
switch (eObjectType)
{
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
case OBJECTTYPE_TITLE:
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_BORDER)));
AddTabPage(RID_SVXPAGE_AREA, String(SchResId(STR_PAGE_AREA)));
AddTabPage(RID_SVXPAGE_TRANSPARENCE, String(SchResId(STR_PAGE_TRANSPARENCY)));
AddTabPage(RID_SVXPAGE_CHAR_NAME, String(SchResId(STR_PAGE_CHARACTERS)));
AddTabPage(RID_SVXPAGE_CHAR_EFFECTS, String(SchResId(STR_PAGE_FONT_EFFECTS)));
AddTabPage(TP_ALIGNMENT, String(SchResId(STR_PAGE_ALIGNMENT)), SchAlignmentTabPage::Create, NULL);
2003-10-06 08:58:36 +00:00
break;
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
case OBJECTTYPE_LEGEND:
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_BORDER)));
AddTabPage(RID_SVXPAGE_AREA, String(SchResId(STR_PAGE_AREA)));
AddTabPage(RID_SVXPAGE_TRANSPARENCE, String(SchResId(STR_PAGE_TRANSPARENCY)));
AddTabPage(RID_SVXPAGE_CHAR_NAME, String(SchResId(STR_PAGE_CHARACTERS)));
AddTabPage(RID_SVXPAGE_CHAR_EFFECTS, String(SchResId(STR_PAGE_FONT_EFFECTS)));
AddTabPage(TP_LEGEND_POS, String(SchResId(STR_PAGE_POSITION)), SchLegendPosTabPage::Create, NULL);
2003-10-06 08:58:36 +00:00
break;
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
case OBJECTTYPE_DATA_SERIES:
case OBJECTTYPE_DATA_POINT:
2003-10-06 08:58:36 +00:00
case OBJECTTYPE_DATA_LABEL:
case OBJECTTYPE_DATA_LABELS:
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
AddTabPage(RID_SVXPAGE_LINE, String(SchResId( m_pParameter->HasAreaProperties() ? STR_PAGE_BORDER : STR_PAGE_LINE )));
if(m_pParameter->HasAreaProperties())
2003-10-06 08:58:36 +00:00
{
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
AddTabPage(RID_SVXPAGE_AREA, String(SchResId(STR_PAGE_AREA)));
AddTabPage(RID_SVXPAGE_TRANSPARENCE, String(SchResId(STR_PAGE_TRANSPARENCY)));
2003-10-06 08:58:36 +00:00
}
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
AddTabPage(RID_SVXPAGE_CHAR_NAME, String(SchResId(STR_PAGE_CHARACTERS)));
AddTabPage(RID_SVXPAGE_CHAR_EFFECTS, String(SchResId(STR_PAGE_FONT_EFFECTS)));
AddTabPage(TP_DATA_DESCR, String(SchResId(STR_OBJECT_DATALABELS)), DataLabelsTabPage::Create, NULL);
// if( m_pParameter->HasStatisticProperties() )
// AddTabPage(TP_YERRORBAR, String(SchResId(STR_PAGE_YERROR_BARS)), ErrorBarsTabPage::Create, NULL);
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
if( m_pParameter->HasGeometryProperties() )
AddTabPage(TP_LAYOUT, String(SchResId(STR_PAGE_LAYOUT)),SchLayoutTabPage::Create, NULL);
if( m_pParameter->ProvidesSecondaryYAxis() || m_pParameter->ProvidesOverlapAndGapWidth() || m_pParameter->ProvidesMissingValueTreatments() )
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
AddTabPage(TP_OPTIONS, String(SchResId(STR_PAGE_OPTIONS)),SchOptionTabPage::Create, NULL);
if( m_pParameter->ProvidesStartingAngle())
AddTabPage(TP_POLAROPTIONS, String(SchResId(STR_PAGE_OPTIONS)),PolarOptionsTabPage::Create, NULL);
2003-10-06 08:58:36 +00:00
break;
case OBJECTTYPE_AXIS:
{
2008-12-12 12:17:17 +00:00
if( m_pParameter->HasScaleProperties() )
AddTabPage(TP_SCALE, String(SchResId(STR_PAGE_SCALE)), ScaleTabPage::Create, NULL);
if( m_pParameter->HasScaleProperties() )//no positioning page for z axes so far as the tickmarks are not shown so far
AddTabPage(TP_AXIS_POSITIONS, String(SchResId(STR_PAGE_POSITIONING)), AxisPositionsTabPage::Create, NULL);
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_LINE)));
AddTabPage(TP_AXIS_LABEL, String(SchResId(STR_OBJECT_LABEL)), SchAxisLabelTabPage::Create, NULL);
if( m_pParameter->HasNumberProperties() )
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
AddTabPage(RID_SVXPAGE_NUMBERFORMAT, String(SchResId(STR_PAGE_NUMBERS)));
2008-12-12 12:17:17 +00:00
AddTabPage(RID_SVXPAGE_CHAR_NAME, String(SchResId(STR_PAGE_CHARACTERS)));
AddTabPage(RID_SVXPAGE_CHAR_EFFECTS, String(SchResId(STR_PAGE_FONT_EFFECTS)));
2003-10-06 08:58:36 +00:00
break;
}
case OBJECTTYPE_DATA_ERRORS:
case OBJECTTYPE_DATA_ERRORS_X:
case OBJECTTYPE_DATA_ERRORS_Y:
case OBJECTTYPE_DATA_ERRORS_Z:
AddTabPage(TP_YERRORBAR, String(SchResId(STR_PAGE_YERROR_BARS)), ErrorBarsTabPage::Create, NULL);
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_LINE)));
break;
case OBJECTTYPE_GRID:
case OBJECTTYPE_SUBGRID:
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
case OBJECTTYPE_DATA_AVERAGE_LINE:
case OBJECTTYPE_DATA_STOCK_RANGE:
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_LINE)));
2003-10-06 08:58:36 +00:00
break;
case OBJECTTYPE_DATA_CURVE:
AddTabPage(TP_TRENDLINE, String(SchResId(STR_PAGE_TRENDLINE_TYPE)), TrendlineTabPage::Create, NULL);
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_LINE)));
break;
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
case OBJECTTYPE_DATA_STOCK_LOSS:
case OBJECTTYPE_DATA_STOCK_GAIN:
case OBJECTTYPE_PAGE:
case OBJECTTYPE_DIAGRAM_FLOOR:
case OBJECTTYPE_DIAGRAM_WALL:
case OBJECTTYPE_DIAGRAM:
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_BORDER)));
AddTabPage(RID_SVXPAGE_AREA, String(SchResId(STR_PAGE_AREA)));
AddTabPage(RID_SVXPAGE_TRANSPARENCE, String(SchResId(STR_PAGE_TRANSPARENCY)));
2003-10-06 08:58:36 +00:00
break;
2003-12-10 15:51:53 +00:00
case OBJECTTYPE_LEGEND_ENTRY:
case OBJECTTYPE_AXIS_UNITLABEL:
case OBJECTTYPE_UNKNOWN:
// nothing
break;
case OBJECTTYPE_DATA_CURVE_EQUATION:
AddTabPage(RID_SVXPAGE_LINE, String(SchResId(STR_PAGE_BORDER)));
AddTabPage(RID_SVXPAGE_AREA, String(SchResId(STR_PAGE_AREA)));
AddTabPage(RID_SVXPAGE_TRANSPARENCE, String(SchResId(STR_PAGE_TRANSPARENCY)));
AddTabPage(RID_SVXPAGE_CHAR_NAME, String(SchResId(STR_PAGE_CHARACTERS)));
AddTabPage(RID_SVXPAGE_CHAR_EFFECTS, String(SchResId(STR_PAGE_FONT_EFFECTS)));
AddTabPage(RID_SVXPAGE_NUMBERFORMAT, String(SchResId(STR_PAGE_NUMBERS)));
2008-11-26 15:19:48 +00:00
if( SvtLanguageOptions().IsCTLFontEnabled() )
/* When rotation is supported for equation text boxes, use
SchAlignmentTabPage::Create here. The special
SchAlignmentTabPage::CreateWithoutRotation can be deleted. */
AddTabPage(TP_ALIGNMENT, String(SchResId(STR_PAGE_ALIGNMENT)), SchAlignmentTabPage::CreateWithoutRotation, NULL);
break;
2003-10-06 08:58:36 +00:00
}
// used to find out if user left the dialog with OK. When OK is pressed but
// no changes were done, Cancel is returned by the SfxTabDialog. See method
// DialogWasClosedWithOK.
m_aOriginalOKClickHdl = GetOKButton().GetClickHdl();
GetOKButton().SetClickHdl( LINK( this, SchAttribTabDlg, OKPressed ));
2003-10-06 08:58:36 +00:00
}
SchAttribTabDlg::~SchAttribTabDlg()
{
2003-11-13 14:17:51 +00:00
delete m_pSymbolShapeProperties;
delete m_pAutoSymbolGraphic;
2003-10-06 08:58:36 +00:00
}
void SchAttribTabDlg::PageCreated(USHORT nId, SfxTabPage &rPage)
{
SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
2003-10-06 08:58:36 +00:00
switch (nId)
{
case TP_LAYOUT:
break;
case RID_SVXPAGE_LINE:
aSet.Put (SvxColorTableItem(m_pViewElementListProvider->GetColorTable(),SID_COLOR_TABLE));
aSet.Put (SvxDashListItem(m_pViewElementListProvider->GetDashList(),SID_DASH_LIST));
aSet.Put (SvxLineEndListItem(m_pViewElementListProvider->GetLineEndList(),SID_LINEEND_LIST));
aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType));
aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType));
2003-11-12 17:13:41 +00:00
if( m_pParameter->HasSymbolProperties() )
{
aSet.Put(OfaPtrItem(SID_OBJECT_LIST,m_pViewElementListProvider->GetSymbolList()));
2003-11-13 14:17:51 +00:00
if( m_pSymbolShapeProperties )
aSet.Put(SfxTabDialogItem(SID_ATTR_SET,*m_pSymbolShapeProperties));
2003-11-13 14:17:51 +00:00
if( m_pAutoSymbolGraphic )
aSet.Put(SvxGraphicItem(SID_GRAPHIC,*m_pAutoSymbolGraphic));
2003-10-06 08:58:36 +00:00
}
rPage.PageCreated(aSet);
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
//rPage.ActivatePage(*GetInputSetImpl()); //what for?
2003-10-06 08:58:36 +00:00
break;
case RID_SVXPAGE_AREA:
aSet.Put(SvxColorTableItem(m_pViewElementListProvider->GetColorTable(),SID_COLOR_TABLE));
aSet.Put(SvxGradientListItem(m_pViewElementListProvider->GetGradientList(),SID_GRADIENT_LIST));
aSet.Put(SvxHatchListItem(m_pViewElementListProvider->GetHatchList(),SID_HATCH_LIST));
aSet.Put(SvxBitmapListItem(m_pViewElementListProvider->GetBitmapList(),SID_BITMAP_LIST));
aSet.Put(SfxUInt16Item(SID_PAGE_TYPE,nPageType));
aSet.Put(SfxUInt16Item(SID_DLG_TYPE,nDlgType));
rPage.PageCreated(aSet);
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
//rPage.ActivatePage(*GetInputSetImpl()); //what for?
2003-10-06 08:58:36 +00:00
break;
case RID_SVXPAGE_TRANSPARENCE:
aSet.Put (SfxUInt16Item(SID_PAGE_TYPE,nPageType));
aSet.Put (SfxUInt16Item(SID_DLG_TYPE,nDlgType));
rPage.PageCreated(aSet);
2003-10-06 08:58:36 +00:00
break;
case RID_SVXPAGE_CHAR_NAME:
//CHINA001 ((SvxCharNamePage&)rPage).
//CHINA001 SetFontList(SvxFontListItem(m_pViewElementListProvider->getFontList()));
aSet.Put (SvxFontListItem(m_pViewElementListProvider->getFontList(), SID_ATTR_CHAR_FONTLIST)); //CHINA001
rPage.PageCreated(aSet); //CHINA001
2003-10-06 08:58:36 +00:00
break;
case RID_SVXPAGE_CHAR_EFFECTS:
//CHINA001 ((SvxCharEffectsPage&) rPage).DisableControls( DISABLE_CASEMAP );
aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_CASEMAP)); //CHINA001
rPage.PageCreated(aSet);
2003-10-06 08:58:36 +00:00
break;
case TP_AXIS_LABEL:
{
bool bShowStaggeringControls = m_pParameter->CanAxisLabelsBeStaggered();
2003-10-06 08:58:36 +00:00
((SchAxisLabelTabPage&)rPage).ShowStaggeringControls( bShowStaggeringControls );
break;
}
case TP_ALIGNMENT:
break;
2008-12-12 12:17:17 +00:00
case TP_AXIS_POSITIONS:
2003-10-06 08:58:36 +00:00
{
2008-12-12 12:17:17 +00:00
AxisPositionsTabPage* pPage = dynamic_cast< AxisPositionsTabPage* >( &rPage );
if(pPage)
{
pPage->SetNumFormatter( m_pNumberFormatter );
if( m_pParameter->IsCrossingAxisIsCategoryAxis() )
{
pPage->SetCrossingAxisIsCategoryAxis( m_pParameter->IsCrossingAxisIsCategoryAxis() );
pPage->SetCategories( m_pParameter->GetCategories() );
}
pPage->SupportAxisPositioning( m_pParameter->IsSupportingAxisPositioning() );
}
}
break;
2003-10-06 08:58:36 +00:00
2008-12-12 12:17:17 +00:00
case TP_SCALE:
{
ScaleTabPage* pScaleTabPage = dynamic_cast< ScaleTabPage* >( &rPage );
if(pScaleTabPage)
{
pScaleTabPage->SetNumFormatter( m_pNumberFormatter );
pScaleTabPage->ShowAxisOrigin( m_pParameter->ShowAxisOrigin() );
}
2003-10-06 08:58:36 +00:00
}
break;
case TP_DATA_DESCR:
{
2008-12-12 12:17:17 +00:00
DataLabelsTabPage* pLabelPage = dynamic_cast< DataLabelsTabPage* >( &rPage );
if( pLabelPage )
pLabelPage->SetNumberFormatter( m_pNumberFormatter );
}
break;
2003-10-06 08:58:36 +00:00
case RID_SVXPAGE_NUMBERFORMAT:
INTEGRATION: CWS chart2mst3 (1.10.2); FILE MERGED 2007/05/14 20:03:04 bm 1.10.2.22: RESYNC: (1.14-1.15); FILE MERGED 2006/10/27 15:16:59 iha 1.10.2.21: name consolidation 2006/10/18 17:04:04 bm 1.10.2.20: RESYNC: (1.13-1.14); FILE MERGED 2006/04/10 12:25:05 iha 1.10.2.19: api restructure axis, grids, scales and increments 2005/11/25 16:23:25 iha 1.10.2.18: correct labels at z axis for deep stacking 2005/11/23 15:16:58 iha 1.10.2.17: support BarOverlap and GapWidth 2005/11/18 18:19:53 iha 1.10.2.16: restructuring for proper subgrid support 2005/10/24 11:06:38 iha 1.10.2.15: coordinate system restructure 2005/10/13 17:38:45 iha 1.10.2.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 11:16:38 bm 1.10.2.13: RESYNC: (1.12-1.13); FILE MERGED 2005/09/05 11:36:41 iha 1.10.2.12: no scale page for category axis 2005/06/07 15:58:31 iha 1.10.2.11: use numberformatter from model 2004/09/17 12:20:46 iha 1.10.2.10: implement api redesign - dimension property 2004/09/17 11:35:59 iha 1.10.2.9: implement api redesign - dimension property 2004/09/16 14:48:00 iha 1.10.2.8: implement api redesign 2004/06/03 10:02:19 iha 1.10.2.7: corrected merge error 2004/06/03 03:38:36 iha 1.10.2.6: RESYNC: (1.10-1.12); FILE MERGED 2004/05/17 17:33:50 iha 1.10.2.5: provide object naming; resource cleanup 2004/04/22 15:00:41 iha 1.10.2.4: #i20344# chabged legend, grid and title resources 2004/04/19 15:07:03 iha 1.10.2.3: concentrate ResourceIds to avoid dublicates 2004/03/04 11:00:57 iha 1.10.2.2: remove SchSlotIds 2004/02/18 19:55:00 iha 1.10.2.1: removed unused code
2007-05-22 16:37:01 +00:00
aSet.Put (SvxNumberInfoItem( m_pNumberFormatter, (const USHORT)SID_ATTR_NUMBERFORMAT_INFO));
rPage.PageCreated(aSet);
2003-10-06 08:58:36 +00:00
break;
2003-12-10 15:51:53 +00:00
case TP_YERRORBAR:
{
ErrorBarsTabPage * pTabPage = dynamic_cast< ErrorBarsTabPage * >( &rPage );
OSL_ASSERT( pTabPage );
if( pTabPage )
{
pTabPage->SetAxisMinorStepWidthForErrorBarDecimals( m_fAxisMinorStepWidthForErrorBarDecimals );
pTabPage->SetErrorBarType( ErrorBarResources::ERROR_BAR_Y );
pTabPage->SetChartDocumentForRangeChoosing( m_pParameter->getDocument());
}
break;
}
case TP_OPTIONS:
{
SchOptionTabPage* pTabPage = dynamic_cast< SchOptionTabPage* >( &rPage );
if( pTabPage && m_pParameter )
pTabPage->Init( m_pParameter->ProvidesSecondaryYAxis(), m_pParameter->ProvidesOverlapAndGapWidth(),
m_pParameter->ProvidesBarConnectors() );
break;
}
2003-10-06 08:58:36 +00:00
}
}
IMPL_LINK( SchAttribTabDlg, OKPressed, void * , EMPTYARG )
{
m_bOKPressed = true;
return m_aOriginalOKClickHdl.Call( this );
}
bool SchAttribTabDlg::DialogWasClosedWithOK() const
{
return m_bOKPressed;
}
2003-10-06 08:58:36 +00:00
//.............................................................................
} //namespace chart
//.............................................................................