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

876 lines
31 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
#include "DialogModel.hxx"
#include "RangeSelectionHelper.hxx"
#include "PropertyHelper.hxx"
#include "DataSeriesHelper.hxx"
#include "DataSourceHelper.hxx"
#include "DiagramHelper.hxx"
#include "macros.hxx"
#include "Strings.hrc"
#include "ResId.hxx"
#include "ContainerHelper.hxx"
#include "CommonFunctors.hxx"
#include "ControllerLockGuard.hxx"
#include "ChartTypeHelper.hxx"
#include "ThreeDHelper.hxx"
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
#include <com/sun/star/util/XCloneable.hpp>
#include <com/sun/star/chart2/AxisType.hpp>
#include <com/sun/star/chart2/XTitled.hpp>
#include <com/sun/star/chart2/XCoordinateSystemContainer.hpp>
#include <com/sun/star/chart2/XChartTypeContainer.hpp>
#include <com/sun/star/chart2/XDataSeriesContainer.hpp>
#include <com/sun/star/chart2/data/XDataSink.hpp>
#include <rtl/ustring.hxx>
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
#include <utility>
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
#include <algorithm>
#include <iterator>
#include <functional>
#include <numeric>
2011-02-08 19:31:15 +01:00
#include <o3tl/compat_functional.hxx>
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart2;
using namespace ::chart::ContainerHelper;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
namespace
{
const OUString lcl_aLabelRole( "label" );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
struct lcl_ChartTypeToSeriesCnt : ::std::unary_function<
Reference< XChartType >, Reference< XDataSeriesContainer > >
{
Reference< XDataSeriesContainer > operator() (
const Reference< XChartType > & xChartType )
{
return Reference< XDataSeriesContainer >::query( xChartType );
}
};
OUString lcl_ConvertRole( const OUString & rRoleString, bool bFromInternalToUI )
{
OUString aResult( rRoleString );
typedef ::std::map< OUString, OUString > tTranslationMap;
static tTranslationMap aTranslationMap;
2012-02-19 16:59:40 +04:00
if( aTranslationMap.empty() )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
aTranslationMap[ "categories" ] = ::chart::SchResId( STR_DATA_ROLE_CATEGORIES ).toString();
aTranslationMap[ "error-bars-x" ] = ::chart::SchResId( STR_DATA_ROLE_X_ERROR ).toString();
aTranslationMap[ "error-bars-x-positive" ] = ::chart::SchResId( STR_DATA_ROLE_X_ERROR_POSITIVE ).toString();
aTranslationMap[ "error-bars-x-negative" ] = ::chart::SchResId( STR_DATA_ROLE_X_ERROR_NEGATIVE ).toString();
aTranslationMap[ "error-bars-y" ] = ::chart::SchResId( STR_DATA_ROLE_Y_ERROR ).toString();
aTranslationMap[ "error-bars-y-positive" ] = ::chart::SchResId( STR_DATA_ROLE_Y_ERROR_POSITIVE ).toString();
aTranslationMap[ "error-bars-y-negative" ] = ::chart::SchResId( STR_DATA_ROLE_Y_ERROR_NEGATIVE ).toString();
aTranslationMap[ "label" ] = ::chart::SchResId( STR_DATA_ROLE_LABEL ).toString();
aTranslationMap[ "values-first" ] = ::chart::SchResId( STR_DATA_ROLE_FIRST ).toString();
aTranslationMap[ "values-last" ] = ::chart::SchResId( STR_DATA_ROLE_LAST ).toString();
aTranslationMap[ "values-max" ] = ::chart::SchResId( STR_DATA_ROLE_MAX ).toString();
aTranslationMap[ "values-min" ] = ::chart::SchResId( STR_DATA_ROLE_MIN ).toString();
aTranslationMap[ "values-x" ] = ::chart::SchResId( STR_DATA_ROLE_X ).toString();
aTranslationMap[ "values-y" ] = ::chart::SchResId( STR_DATA_ROLE_Y ).toString();
aTranslationMap[ "values-size" ] = ::chart::SchResId( STR_DATA_ROLE_SIZE ).toString();
aTranslationMap[ "FillColor" ] = ::chart::SchResId( STR_PROPERTY_ROLE_FILLCOLOR ).toString();
aTranslationMap[ "BorderColor" ] = ::chart::SchResId( STR_PROPERTY_ROLE_BORDERCOLOR ).toString();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
if( bFromInternalToUI )
{
tTranslationMap::const_iterator aIt( aTranslationMap.find( rRoleString ));
if( aIt != aTranslationMap.end())
{
aResult = (*aIt).second;
}
}
else
{
tTranslationMap::const_iterator aIt(
::std::find_if( aTranslationMap.begin(), aTranslationMap.end(),
2011-02-08 19:31:15 +01:00
::o3tl::compose1( ::std::bind2nd(
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
::std::equal_to< tTranslationMap::mapped_type >(),
rRoleString ),
2011-02-08 19:31:15 +01:00
::o3tl::select2nd< tTranslationMap::value_type >())));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
if( aIt != aTranslationMap.end())
aResult = (*aIt).first;
}
return aResult;
}
typedef ::std::map< OUString, sal_Int32 > lcl_tRoleIndexMap;
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
void lcl_createRoleIndexMap( lcl_tRoleIndexMap & rOutMap )
{
rOutMap.clear();
sal_Int32 nIndex = 0;
rOutMap[ "label" ] = ++nIndex;
rOutMap[ "categories" ] = ++nIndex;
rOutMap[ "values-x" ] = ++nIndex;
rOutMap[ "values-y" ] = ++nIndex;
rOutMap[ "error-bars-x" ] = ++nIndex;
rOutMap[ "error-bars-x-positive" ] = ++nIndex;
rOutMap[ "error-bars-x-negative" ] = ++nIndex;
rOutMap[ "error-bars-y" ] = ++nIndex;
rOutMap[ "error-bars-y-positive" ] = ++nIndex;
rOutMap[ "error-bars-y-negative" ] = ++nIndex;
rOutMap[ "values-first" ] = ++nIndex;
rOutMap[ "values-min" ] = ++nIndex;
rOutMap[ "values-max" ] = ++nIndex;
rOutMap[ "values-last" ] = ++nIndex;
rOutMap[ "values-size" ] = ++nIndex;
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
struct lcl_DataSeriesContainerAppend : public
::std::iterator< ::std::output_iterator_tag, Reference< XDataSeriesContainer > >
{
2010-11-30 01:45:03 +01:00
typedef ::std::vector< ::chart::DialogModel::tSeriesWithChartTypeByName > tContainerType;
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
explicit lcl_DataSeriesContainerAppend( tContainerType * rCnt )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
: m_rDestCnt( rCnt )
{}
lcl_DataSeriesContainerAppend & operator= ( const value_type & xVal )
{
try
{
if( xVal.is())
{
Sequence< Reference< XDataSeries > > aSeq( xVal->getDataSeries());
OUString aRole( "values-y" );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
Reference< XChartType > xCT( xVal, uno::UNO_QUERY );
if( xCT.is())
aRole = xCT->getRoleOfSequenceForSeriesLabel();
for( sal_Int32 nI = 0; nI < aSeq.getLength(); ++ nI )
{
m_rDestCnt->push_back(
2010-11-30 01:45:03 +01:00
::chart::DialogModel::tSeriesWithChartTypeByName(
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
::chart::DataSeriesHelper::getDataSeriesLabel( aSeq[nI], aRole ),
::std::make_pair( aSeq[nI], xCT )));
}
}
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
ASSERT_EXCEPTION( ex );
}
return *this;
}
// Implement output operator requirements as required by std::copy (and
// implement prefix increment in terms of postfix increment to avoid unused
// member function warnings for the latter in the common case where
// std::copy would not actually need it):
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
lcl_DataSeriesContainerAppend & operator* () { return *this; }
lcl_DataSeriesContainerAppend & operator++ () { return operator++(0); }
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
lcl_DataSeriesContainerAppend & operator++ (int) { return *this; }
private:
tContainerType * m_rDestCnt;
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
};
struct lcl_RolesWithRangeAppend : public
::std::iterator< ::std::output_iterator_tag, Reference< data::XLabeledDataSequence > >
{
typedef ::chart::DialogModel::tRolesWithRanges tContainerType;
explicit lcl_RolesWithRangeAppend( tContainerType * rCnt,
const OUString & aLabelRole )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
: m_rDestCnt( rCnt ),
m_aRoleForLabelSeq( aLabelRole )
{}
lcl_RolesWithRangeAppend & operator= ( const value_type & xVal )
{
try
{
if( xVal.is())
{
// data sequence
Reference< data::XDataSequence > xSeq( xVal->getValues());
if( xSeq.is())
{
OUString aRole;
Reference< beans::XPropertySet > xProp( xSeq, uno::UNO_QUERY_THROW );
if( xProp->getPropertyValue( "Role" ) >>= aRole )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
m_rDestCnt->insert(
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
tContainerType::value_type(
aRole, xSeq->getSourceRangeRepresentation()));
// label
if( aRole.equals( m_aRoleForLabelSeq ))
{
Reference< data::XDataSequence > xLabelSeq( xVal->getLabel());
if( xLabelSeq.is())
{
m_rDestCnt->insert(
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
tContainerType::value_type(
lcl_aLabelRole, xLabelSeq->getSourceRangeRepresentation()));
}
}
}
}
}
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
ASSERT_EXCEPTION( ex );
}
return *this;
}
// Implement output operator requirements as required by std::copy (and
// implement prefix increment in terms of postfix increment to avoid unused
// member function warnings for the latter in the common case where
// std::copy would not actually need it):
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
lcl_RolesWithRangeAppend & operator* () { return *this; }
lcl_RolesWithRangeAppend & operator++ () { return operator++(0); }
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
lcl_RolesWithRangeAppend & operator++ (int) { return *this; }
private:
tContainerType * m_rDestCnt;
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
OUString m_aRoleForLabelSeq;
};
void lcl_SetSequenceRole(
const Reference< data::XDataSequence > & xSeq,
const OUString & rRole )
{
Reference< beans::XPropertySet > xProp( xSeq, uno::UNO_QUERY );
if( xProp.is())
xProp->setPropertyValue( "Role" , uno::makeAny( rRole ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
Reference< XDataSeries > lcl_CreateNewSeries(
const Reference< uno::XComponentContext > & xContext,
const Reference< XChartType > & xChartType,
sal_Int32 nNewSeriesIndex,
sal_Int32 nTotalNumberOfSeriesInCTGroup,
const Reference< XDiagram > & xDiagram,
const Reference< XChartTypeTemplate > & xTemplate,
bool bCreateDataCachedSequences )
{
// create plain series
Reference< XDataSeries > xResult(
xContext->getServiceManager()->createInstanceWithContext(
"com.sun.star.chart2.DataSeries" ,
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
xContext ), uno::UNO_QUERY );
if( xTemplate.is())
{
Reference< beans::XPropertySet > xResultProp( xResult, uno::UNO_QUERY );
if( xResultProp.is())
{
// @deprecated: correct default color should be found by view
// without setting it as hard attribute
Reference< XColorScheme > xColorScheme( xDiagram->getDefaultColorScheme());
if( xColorScheme.is())
xResultProp->setPropertyValue( "Color" , uno::makeAny( xColorScheme->getColorByIndex( nNewSeriesIndex )));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
sal_Int32 nGroupIndex=0;
if( xChartType.is())
{
Sequence< Reference< XChartType > > aCTs(
::chart::DiagramHelper::getChartTypesFromDiagram( xDiagram ));
for( ; nGroupIndex<aCTs.getLength(); ++nGroupIndex)
if( aCTs[nGroupIndex] == xChartType )
break;
if( nGroupIndex == aCTs.getLength())
nGroupIndex = 0;
}
xTemplate->applyStyle( xResult, nGroupIndex, nNewSeriesIndex, nTotalNumberOfSeriesInCTGroup );
}
if( bCreateDataCachedSequences )
{
// set chart type specific roles
Reference< data::XDataSink > xSink( xResult, uno::UNO_QUERY );
if( xChartType.is() && xSink.is())
{
::std::vector< Reference< data::XLabeledDataSequence > > aNewSequences;
const OUString aRoleOfSeqForSeriesLabel = xChartType->getRoleOfSequenceForSeriesLabel();
const OUString aLabel(::chart::SchResId(STR_DATA_UNNAMED_SERIES).toString());
const Sequence< OUString > aRoles( xChartType->getSupportedMandatoryRoles());
const Sequence< OUString > aOptRoles( xChartType->getSupportedOptionalRoles());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
sal_Int32 nI = 0;
for(nI=0; nI<aRoles.getLength(); ++nI)
{
if( aRoles[nI].equals( lcl_aLabelRole ))
continue;
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
Reference< data::XDataSequence > xSeq( ::chart::DataSourceHelper::createCachedDataSequence() );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
lcl_SetSequenceRole( xSeq, aRoles[nI] );
// assert that aRoleOfSeqForSeriesLabel is part of the mandatory roles
if( aRoles[nI].equals( aRoleOfSeqForSeriesLabel ))
{
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
Reference< data::XDataSequence > xLabel( ::chart::DataSourceHelper::createCachedDataSequence( aLabel ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
lcl_SetSequenceRole( xLabel, lcl_aLabelRole );
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
aNewSequences.push_back( ::chart::DataSourceHelper::createLabeledDataSequence( xSeq, xLabel ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
else
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
aNewSequences.push_back( ::chart::DataSourceHelper::createLabeledDataSequence( xSeq ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
for(nI=0; nI<aOptRoles.getLength(); ++nI)
{
if( aOptRoles[nI].equals( lcl_aLabelRole ))
continue;
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
Reference< data::XDataSequence > xSeq( ::chart::DataSourceHelper::createCachedDataSequence());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
lcl_SetSequenceRole( xSeq, aOptRoles[nI] );
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
aNewSequences.push_back( ::chart::DataSourceHelper::createLabeledDataSequence( xSeq ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
xSink->setData( ContainerToSequence( aNewSequences ));
}
}
return xResult;
}
struct lcl_addSeriesNumber : public ::std::binary_function<
sal_Int32, Reference< XDataSeriesContainer >, sal_Int32 >
{
sal_Int32 operator() ( sal_Int32 nCurrentNumber, const Reference< XDataSeriesContainer > & xCnt ) const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
if( xCnt.is())
return nCurrentNumber + (xCnt->getDataSeries().getLength());
return nCurrentNumber;
}
};
} // anonymous namespace
namespace chart
{
DialogModelTimeBasedInfo::DialogModelTimeBasedInfo():
bTimeBased(false),
nStart(0),
nEnd(0)
{
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
DialogModel::DialogModel(
const Reference< XChartDocument > & xChartDocument,
const Reference< uno::XComponentContext > & xContext ) :
m_xChartDocument( xChartDocument ),
m_xContext( xContext ),
m_aTimerTriggeredControllerLock( uno::Reference< frame::XModel >( m_xChartDocument, uno::UNO_QUERY ) )
{
}
DialogModel::~DialogModel()
{
if(maTimeBasedInfo.bTimeBased)
{
getModel().setTimeBasedRange(maTimeBasedInfo.nStart, maTimeBasedInfo.nEnd);
}
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
void DialogModel::setTemplate(
const Reference< XChartTypeTemplate > & xTemplate )
{
m_xTemplate = xTemplate;
}
::boost::shared_ptr< RangeSelectionHelper >
DialogModel::getRangeSelectionHelper() const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
if( ! m_spRangeSelectionHelper.get())
m_spRangeSelectionHelper.reset(
new RangeSelectionHelper( m_xChartDocument ));
return m_spRangeSelectionHelper;
}
Reference< frame::XModel > DialogModel::getChartModel() const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
Reference< frame::XModel > xResult( m_xChartDocument, uno::UNO_QUERY );
return xResult;
}
Reference< data::XDataProvider > DialogModel::getDataProvider() const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
Reference< data::XDataProvider > xResult;
if( m_xChartDocument.is())
xResult.set( m_xChartDocument->getDataProvider());
return xResult;
}
::std::vector< Reference< XDataSeriesContainer > >
DialogModel::getAllDataSeriesContainers() const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
::std::vector< Reference< XDataSeriesContainer > > aResult;
try
{
Reference< XDiagram > xDiagram;
if( m_xChartDocument.is())
xDiagram.set( m_xChartDocument->getFirstDiagram());
if( xDiagram.is())
{
Reference< XCoordinateSystemContainer > xCooSysCnt(
xDiagram, uno::UNO_QUERY_THROW );
Sequence< Reference< XCoordinateSystem > > aCooSysSeq(
xCooSysCnt->getCoordinateSystems());
for( sal_Int32 i=0; i<aCooSysSeq.getLength(); ++i )
{
Reference< XChartTypeContainer > xCTCnt( aCooSysSeq[i], uno::UNO_QUERY_THROW );
Sequence< Reference< XChartType > > aChartTypeSeq( xCTCnt->getChartTypes());
::std::transform(
aChartTypeSeq.getConstArray(), aChartTypeSeq.getConstArray() + aChartTypeSeq.getLength(),
::std::back_inserter( aResult ),
lcl_ChartTypeToSeriesCnt() );
}
}
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
ASSERT_EXCEPTION( ex );
}
return aResult;
}
::std::vector< DialogModel::tSeriesWithChartTypeByName >
DialogModel::getAllDataSeriesWithLabel() const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
::std::vector< tSeriesWithChartTypeByName > aResult;
::std::vector< Reference< XDataSeriesContainer > > aContainers(
getAllDataSeriesContainers());
::std::copy( aContainers.begin(), aContainers.end(),
lcl_DataSeriesContainerAppend( &aResult ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
return aResult;
}
namespace {
void addMissingRoles(DialogModel::tRolesWithRanges& rResult, const uno::Sequence<OUString>& rRoles)
{
for(sal_Int32 i = 0, n = rRoles.getLength(); i < n; ++i)
{
if(rResult.find(rRoles[i]) == rResult.end())
rResult.insert(DialogModel::tRolesWithRanges::value_type(rRoles[i], OUString()));
}
}
/**
* Insert a new data series to chart type at position after specified series
* position.
*
* @param xChartType chart type that contains data series.
* @param xSeries insertion position. The new series will be inserted after
* this one.
* @param xNewSeries new data series to insert.
*/
void addNewSeriesToContainer(
const Reference<XChartType>& xChartType,
const Reference<XDataSeries>& xSeries,
const Reference<XDataSeries>& xNewSeries )
{
Reference<XDataSeriesContainer> xSeriesCnt(xChartType, uno::UNO_QUERY_THROW);
std::vector<Reference<XDataSeries> > aSeries = SequenceToVector(xSeriesCnt->getDataSeries());
std::vector<Reference<XDataSeries> >::iterator aIt =
std::find( aSeries.begin(), aSeries.end(), xSeries);
if( aIt == aSeries.end())
// if we have no series we insert at the first position.
aIt = aSeries.begin();
else
// vector::insert inserts before, so we have to advance
++aIt;
aSeries.insert(aIt, xNewSeries);
xSeriesCnt->setDataSeries(ContainerToSequence(aSeries));
}
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
DialogModel::tRolesWithRanges DialogModel::getRolesWithRanges(
const Reference< XDataSeries > & xSeries,
const OUString & aRoleOfSequenceForLabel,
const Reference< chart2::XChartType > & xChartType ) const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
DialogModel::tRolesWithRanges aResult;
try
{
Reference< data::XDataSource > xSource( xSeries, uno::UNO_QUERY_THROW );
const Sequence< Reference< data::XLabeledDataSequence > > aSeq( xSource->getDataSequences());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
::std::copy( aSeq.getConstArray(), aSeq.getConstArray() + aSeq.getLength(),
lcl_RolesWithRangeAppend( &aResult, aRoleOfSequenceForLabel ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
if( xChartType.is())
{
// add missing mandatory roles
Sequence< OUString > aRoles( xChartType->getSupportedMandatoryRoles());
addMissingRoles(aResult, aRoles);
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
// add missing optional roles
aRoles = xChartType->getSupportedOptionalRoles();
addMissingRoles(aResult, aRoles);
// add missing property roles
aRoles = xChartType->getSupportedPropertyRoles();
addMissingRoles(aResult, aRoles);
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
ASSERT_EXCEPTION( ex );
}
return aResult;
}
void DialogModel::moveSeries(
const Reference< XDataSeries > & xSeries,
eMoveDirection eDirection )
{
m_aTimerTriggeredControllerLock.startTimer();
ControllerLockGuardUNO aLockedControllers( Reference< frame::XModel >( m_xChartDocument, uno::UNO_QUERY ) );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
Reference< XDiagram > xDiagram( m_xChartDocument->getFirstDiagram());
DiagramHelper::moveSeries( xDiagram, xSeries, eDirection==MOVE_UP );
}
Reference< chart2::XDataSeries > DialogModel::insertSeriesAfter(
const Reference< XDataSeries > & xSeries,
const Reference< XChartType > & xChartType,
bool bCreateDataCachedSequences /* = false */ )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
m_aTimerTriggeredControllerLock.startTimer();
ControllerLockGuardUNO aLockedControllers( Reference< frame::XModel >( m_xChartDocument, uno::UNO_QUERY ) );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
Reference< XDataSeries > xNewSeries;
try
{
Reference< chart2::XDiagram > xDiagram( m_xChartDocument->getFirstDiagram() );
ThreeDLookScheme e3DScheme = ThreeDHelper::detectScheme( xDiagram );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
sal_Int32 nSeriesInChartType = 0;
const sal_Int32 nTotalSeries = countSeries();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
if( xChartType.is())
{
Reference< XDataSeriesContainer > xCnt( xChartType, uno::UNO_QUERY_THROW );
nSeriesInChartType = xCnt->getDataSeries().getLength();
}
// create new series
xNewSeries.set(
lcl_CreateNewSeries(
m_xContext,
xChartType,
nTotalSeries, // new series' index
nSeriesInChartType,
xDiagram,
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
m_xTemplate,
bCreateDataCachedSequences ));
// add new series to container
if( xNewSeries.is())
addNewSeriesToContainer(xChartType, xSeries, xNewSeries);
ThreeDHelper::setScheme( xDiagram, e3DScheme );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
ASSERT_EXCEPTION( ex );
}
return xNewSeries;
}
void DialogModel::deleteSeries(
const Reference< XDataSeries > & xSeries,
const Reference< XChartType > & xChartType )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
m_aTimerTriggeredControllerLock.startTimer();
ControllerLockGuardUNO aLockedControllers( Reference< frame::XModel >( m_xChartDocument, uno::UNO_QUERY ) );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
DataSeriesHelper::deleteSeries( xSeries, xChartType );
}
Reference< data::XLabeledDataSequence > DialogModel::getCategories() const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
Reference< data::XLabeledDataSequence > xResult;
try
{
if( m_xChartDocument.is())
{
Reference< chart2::XDiagram > xDiagram( m_xChartDocument->getFirstDiagram());
xResult.set( DiagramHelper::getCategoriesFromDiagram( xDiagram ));
}
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
ASSERT_EXCEPTION( ex );
}
return xResult;
}
void DialogModel::setCategories( const Reference< chart2::data::XLabeledDataSequence > & xCategories )
{
if( m_xChartDocument.is())
{
Reference< chart2::XDiagram > xDiagram( m_xChartDocument->getFirstDiagram());
if( xDiagram.is())
{
// categories
bool bSupportsCategories = true;
Reference< XChartType > xFirstChartType( DiagramHelper::getChartTypeByIndex( xDiagram, 0 ) );
if( xFirstChartType.is() )
{
sal_Int32 nAxisType = ChartTypeHelper::getAxisType( xFirstChartType, 0 ); // x-axis
bSupportsCategories = (nAxisType == AxisType::CATEGORY);
}
DiagramHelper::setCategoriesToDiagram( xCategories, xDiagram, true, bSupportsCategories );
}
}
}
OUString DialogModel::getCategoriesRange() const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
Reference< data::XLabeledDataSequence > xLSeq( getCategories());
OUString aRange;
if( xLSeq.is())
{
Reference< data::XDataSequence > xSeq( xLSeq->getValues());
if( xSeq.is())
aRange = xSeq->getSourceRangeRepresentation();
}
return aRange;
}
bool DialogModel::isCategoryDiagram() const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
bool bRet = false;
if( m_xChartDocument.is())
bRet = DiagramHelper::isCategoryDiagram( m_xChartDocument->getFirstDiagram() );
return bRet;
}
void DialogModel::detectArguments(
OUString & rOutRangeString,
bool & rOutUseColumns,
bool & rOutFirstCellAsLabel,
bool & rOutHasCategories ) const
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
try
{
uno::Sequence< sal_Int32 > aSequenceMapping;//todo YYYX
// Note: unused data is currently not supported in being passed to detectRangeSegmentation
if( m_xChartDocument.is())
DataSourceHelper::detectRangeSegmentation(
Reference< frame::XModel >( m_xChartDocument, uno::UNO_QUERY_THROW ),
rOutRangeString, aSequenceMapping, rOutUseColumns, rOutFirstCellAsLabel, rOutHasCategories );
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
ASSERT_EXCEPTION( ex );
}
}
bool DialogModel::allArgumentsForRectRangeDetected() const
{
return DataSourceHelper::allArgumentsForRectRangeDetected( m_xChartDocument );
}
void DialogModel::startControllerLockTimer()
{
m_aTimerTriggeredControllerLock.startTimer();
}
bool DialogModel::setData(
const Sequence< beans::PropertyValue > & rArguments )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
m_aTimerTriggeredControllerLock.startTimer();
ControllerLockGuardUNO aLockedControllers( Reference< frame::XModel >( m_xChartDocument, uno::UNO_QUERY ) );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
Reference< data::XDataProvider > xDataProvider( getDataProvider());
if( ! xDataProvider.is() ||
! m_xTemplate.is() )
{
OSL_FAIL( "Model objects missing" );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
return false;
}
try
{
Reference< chart2::data::XDataSource > xDataSource(
xDataProvider->createDataSource( rArguments ) );
Reference< chart2::XDataInterpreter > xInterpreter(
m_xTemplate->getDataInterpreter());
if( xInterpreter.is())
{
Reference< chart2::XDiagram > xDiagram( m_xChartDocument->getFirstDiagram() );
ThreeDLookScheme e3DScheme = ThreeDHelper::detectScheme( xDiagram );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
::std::vector< Reference< XDataSeries > > aSeriesToReUse(
DiagramHelper::getDataSeriesFromDiagram( xDiagram ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
applyInterpretedData(
xInterpreter->interpretDataSource(
xDataSource, rArguments,
ContainerToSequence( aSeriesToReUse )),
aSeriesToReUse,
true /* bSetStyles */);
ThreeDHelper::setScheme( xDiagram, e3DScheme );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
ASSERT_EXCEPTION( ex );
return false;
}
return true;
}
void DialogModel::setTimeBasedRange( bool bTimeBased, sal_Int32 nStart, sal_Int32 nEnd) const
{
maTimeBasedInfo.nStart = nStart;
maTimeBasedInfo.nEnd = nEnd;
maTimeBasedInfo.bTimeBased = bTimeBased;
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
OUString DialogModel::ConvertRoleFromInternalToUI( const OUString & rRoleString )
{
return lcl_ConvertRole( rRoleString, true );
}
OUString DialogModel::GetRoleDataLabel()
{
return ::chart::SchResId(STR_OBJECT_DATALABELS).toString();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
sal_Int32 DialogModel::GetRoleIndexForSorting( const OUString & rInternalRoleString )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
static lcl_tRoleIndexMap aRoleIndexMap;
if( aRoleIndexMap.empty())
lcl_createRoleIndexMap( aRoleIndexMap );
lcl_tRoleIndexMap::const_iterator aIt( aRoleIndexMap.find( rInternalRoleString ));
if( aIt != aRoleIndexMap.end())
return aIt->second;
return 0;
}
// private methods
void DialogModel::applyInterpretedData(
const InterpretedData & rNewData,
const ::std::vector< Reference< XDataSeries > > & rSeriesToReUse,
bool bSetStyles )
{
if( ! m_xChartDocument.is())
return;
m_aTimerTriggeredControllerLock.startTimer();
Reference< XDiagram > xDiagram( m_xChartDocument->getFirstDiagram());
if( xDiagram.is())
{
// styles
if( bSetStyles && m_xTemplate.is() )
{
sal_Int32 nGroup = 0;
sal_Int32 nSeriesCounter = 0;
sal_Int32 nNewSeriesIndex = static_cast< sal_Int32 >( rSeriesToReUse.size());
const sal_Int32 nOuterSize=rNewData.Series.getLength();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
for(; nGroup < nOuterSize; ++nGroup)
{
Sequence< Reference< XDataSeries > > aSeries( rNewData.Series[ nGroup ] );
const sal_Int32 nSeriesInGroup = aSeries.getLength();
for( sal_Int32 nSeries=0; nSeries<nSeriesInGroup; ++nSeries, ++nSeriesCounter )
{
if( ::std::find( rSeriesToReUse.begin(), rSeriesToReUse.end(), aSeries[nSeries] )
== rSeriesToReUse.end())
{
Reference< beans::XPropertySet > xSeriesProp( aSeries[nSeries], uno::UNO_QUERY );
if( xSeriesProp.is())
{
// @deprecated: correct default color should be found by view
// without setting it as hard attribute
Reference< XColorScheme > xColorScheme( xDiagram->getDefaultColorScheme());
if( xColorScheme.is())
xSeriesProp->setPropertyValue( "Color" ,
uno::makeAny( xColorScheme->getColorByIndex( nSeriesCounter )));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
}
m_xTemplate->applyStyle( aSeries[nSeries], nGroup, nNewSeriesIndex++, nSeriesInGroup );
}
}
}
}
// data series
::std::vector< Reference< XDataSeriesContainer > > aSeriesCnt( getAllDataSeriesContainers());
::std::vector< Sequence< Reference< XDataSeries > > > aNewSeries(
SequenceToVector( rNewData.Series ));
OSL_ASSERT( aSeriesCnt.size() == aNewSeries.size());
::std::vector< Sequence< Reference< XDataSeries > > >::const_iterator aSrcIt( aNewSeries.begin());
::std::vector< Reference< XDataSeriesContainer > >::iterator aDestIt( aSeriesCnt.begin());
for(; aSrcIt != aNewSeries.end() && aDestIt != aSeriesCnt.end();
++aSrcIt, ++aDestIt )
{
try
{
OSL_ASSERT( (*aDestIt).is());
(*aDestIt)->setDataSeries( *aSrcIt );
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
{
ASSERT_EXCEPTION( ex );
}
}
DialogModel::setCategories(rNewData.Categories);
}
}
sal_Int32 DialogModel::countSeries() const
{
::std::vector< Reference< XDataSeriesContainer > > aCnt( getAllDataSeriesContainers());
return ::std::accumulate( aCnt.begin(), aCnt.end(), 0, lcl_addSeriesNumber());
}
ChartModel& DialogModel::getModel() const
{
uno::Reference< frame::XModel > xModel = getChartModel();
ChartModel* pModel = dynamic_cast<ChartModel*>(xModel.get());
return *pModel;
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/03/02 15:43:38 bm 1.1.2.41: use correct color for new series 2007/02/28 13:22:41 bm 1.1.2.40: #i71233# isSeriesValid returns true when only one mandatory role exists. Until we re-think the whole mandatory stuff again. 2007/02/27 16:27:59 bm 1.1.2.39: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/09 17:29:17 bm 1.1.2.38: XChartDocument::createInternalDataProvider() works like expected now 2007/02/09 12:24:50 bm 1.1.2.37: #i72841# move deleteSeries functionality to tools/DataSeriesHelper 2007/02/08 21:25:32 iha 1.1.2.36: resync m195 -> m202 2006/12/13 14:38:18 bm 1.1.2.35: correct order of roles data dialog 2006/12/12 18:04:10 bm 1.1.2.34: #i71666# show categories also for scatter charts, as data labels 2006/12/11 16:29:58 bm 1.1.2.33: STR_DATA_NEW_SERIES removed 2006/12/05 23:43:13 iha 1.1.2.32: #i71675# enable set data label range for xy charts 2006/11/10 21:03:05 iha 1.1.2.31: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 11:26:51 bm 1.1.2.30: allow to add a categories range when there were no categories before 2006/10/25 11:24:10 bm 1.1.2.29: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:52:47 bm 1.1.2.28: DataSourceHelper::detectRangeSegmentation supports no unused data 2006/07/26 14:46:18 bm 1.1.2.27: allow insertion of data series into empty chart 2006/07/19 15:55:23 bm 1.1.2.26: #i64824# improvement of the data editor for internal data. Especially the handling of flexible data and series with more than one role 2006/04/22 11:11:54 iha 1.1.2.25: park unused categories in scale with AxisType not being CATEGORY 2006/03/17 13:25:26 bm 1.1.2.24: +allArgumentsForRectRangeDetected 2005/12/21 21:29:06 iha 1.1.2.23: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/14 17:56:46 iha 1.1.2.22: removed superfluous method restore - undo is done outside of the dialog 2005/11/11 18:45:21 iha 1.1.2.21: move only compatible series 2005/11/11 17:59:01 iha 1.1.2.20: don't set categories to scatter charts 2005/11/11 13:57:16 iha 1.1.2.19: remove direct view update call 2005/11/11 13:45:40 iha 1.1.2.18: guard DataRange Dialog against to many view updates 2005/11/08 14:57:32 iha 1.1.2.17: set and remove categories also to and from secondary scales 2005/10/27 17:46:21 iha 1.1.2.16: support SequenceMapping 2005/10/13 17:38:44 iha 1.1.2.15: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/11 09:20:05 bm 1.1.2.14: license header change 2005/09/16 16:50:03 iha 1.1.2.13: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/18 15:20:40 bm 1.1.2.12: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/04 12:08:44 bm 1.1.2.11: assertion removed: xy-charts have no categories, this is no error 2005/08/03 16:36:15 bm 1.1.2.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/08/02 13:46:27 bm 1.1.2.9: data_type is not standard. use mapped_type instead 2005/07/29 14:54:00 bm 1.1.2.8: include unused data for calculation of data range 2005/07/28 09:34:49 bm 1.1.2.7: usage of color schemes and the VaryColorsByPoint property to have correct pie colors and legend entries 2005/07/26 12:07:35 bm 1.1.2.6: use configuration colors in ColorProvider 2005/07/14 14:49:49 bm 1.1.2.5: create dummy categories if there are none but the charttype needs them 2005/05/12 13:56:39 bm 1.1.2.4: API change XDataProvider 2005/05/09 09:50:54 bm 1.1.2.3: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.2: fixing the data source/range chooser dialogs 2005/04/15 14:47:12 bm 1.1.2.1: helpers for data source dialogs
2007-05-22 16:28:10 +00:00
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */