Files
libreoffice/chart2/source/tools/DataSeriesHelper.cxx

910 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 .
*/
#include "DataSeriesHelper.hxx"
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
#include "DiagramHelper.hxx"
#include "DataSource.hxx"
#include "macros.hxx"
#include "ContainerHelper.hxx"
#include <unonames.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
#include <com/sun/star/chart2/DataPointLabel.hpp>
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
#include <com/sun/star/chart2/data/XTextualDataSequence.hpp>
#include <com/sun/star/chart2/StackingDirection.hpp>
#include <com/sun/star/chart2/data/LabelOrigin.hpp>
#include <com/sun/star/chart2/AxisType.hpp>
#include <com/sun/star/chart2/SymbolStyle.hpp>
#include <com/sun/star/chart2/Symbol.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
#include <com/sun/star/chart2/XCoordinateSystemContainer.hpp>
#include <com/sun/star/chart2/XChartTypeContainer.hpp>
#include <com/sun/star/chart2/XDataSeriesContainer.hpp>
#include <rtl/ustrbuf.hxx>
#include <functional>
#include <algorithm>
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
#include <iterator>
#include <vector>
#include <set>
using namespace ::com::sun::star;
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
using namespace ::com::sun::star::chart2;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
namespace
{
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
class lcl_MatchesRole : public ::std::unary_function< Reference< chart2::data::XLabeledDataSequence >, bool >
{
public:
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
explicit lcl_MatchesRole( const OUString & aRole, bool bMatchPrefix ) :
m_aRole( aRole ),
m_bMatchPrefix( bMatchPrefix )
{}
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
bool operator () ( const Reference< chart2::data::XLabeledDataSequence > & xSeq ) const
{
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
if(!xSeq.is())
return false;
Reference< beans::XPropertySet > xProp( xSeq->getValues(), uno::UNO_QUERY );
OUString aRole;
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
if( m_bMatchPrefix )
return ( xProp.is() &&
(xProp->getPropertyValue( "Role" ) >>= aRole ) &&
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
aRole.match( m_aRole ));
return ( xProp.is() &&
(xProp->getPropertyValue( "Role" ) >>= aRole ) &&
m_aRole.equals( aRole ));
}
private:
OUString m_aRole;
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
bool m_bMatchPrefix;
};
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
Reference< chart2::data::XLabeledDataSequence > lcl_findLSequenceWithOnlyLabel(
const Reference< chart2::data::XDataSource > & xDataSource )
{
Reference< chart2::data::XLabeledDataSequence > xResult;
Sequence< Reference< chart2::data::XLabeledDataSequence > > aSequences( xDataSource->getDataSequences());
for( sal_Int32 i=0; i<aSequences.getLength(); ++i )
{
OSL_ENSURE( aSequences[i].is(), "empty LabeledDataSequence" );
// no values are set but a label exists
if( aSequences[i].is() &&
( ! aSequences[i]->getValues().is() &&
aSequences[i]->getLabel().is()))
{
xResult.set( aSequences[i] );
break;
}
}
return xResult;
}
void lcl_getCooSysAndChartTypeOfSeries(
const Reference< chart2::XDataSeries > & xSeries,
const Reference< chart2::XDiagram > & xDiagram,
Reference< chart2::XCoordinateSystem > & xOutCooSys,
Reference< chart2::XChartType > & xOutChartType )
{
Reference< chart2::XCoordinateSystemContainer > xCooSysCnt( xDiagram, uno::UNO_QUERY );
if( xCooSysCnt.is())
{
Sequence< Reference< chart2::XCoordinateSystem > > aCooSysSeq( xCooSysCnt->getCoordinateSystems());
for( sal_Int32 nCooSysIdx=0; nCooSysIdx<aCooSysSeq.getLength(); ++nCooSysIdx )
{
Reference< chart2::XChartTypeContainer > xCTCnt( aCooSysSeq[nCooSysIdx], uno::UNO_QUERY_THROW );
Sequence< Reference< chart2::XChartType > > aChartTypes( xCTCnt->getChartTypes());
for( sal_Int32 nCTIdx=0; nCTIdx<aChartTypes.getLength(); ++nCTIdx )
{
Reference< chart2::XDataSeriesContainer > xSeriesCnt( aChartTypes[nCTIdx], uno::UNO_QUERY );
if( xSeriesCnt.is())
{
Sequence< Reference< chart2::XDataSeries > > aSeries( xSeriesCnt->getDataSeries());
for( sal_Int32 nSeriesIdx=0; nSeriesIdx<aSeries.getLength(); ++nSeriesIdx )
{
if( aSeries[nSeriesIdx] == xSeries )
{
xOutCooSys.set( aCooSysSeq[nCooSysIdx] );
xOutChartType.set( aChartTypes[nCTIdx] );
}
}
}
}
}
}
}
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
void lcl_insertOrDeleteDataLabelsToSeriesAndAllPoints( const Reference< chart2::XDataSeries >& xSeries, bool bInsert )
{
try
{
Reference< beans::XPropertySet > xSeriesProperties( xSeries, uno::UNO_QUERY );
if( xSeriesProperties.is() )
{
DataPointLabel aLabelAtSeries;
xSeriesProperties->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabelAtSeries;
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
aLabelAtSeries.ShowNumber = bInsert;
if( !bInsert )
{
aLabelAtSeries.ShowNumberInPercent = false;
aLabelAtSeries.ShowCategoryName = false;
}
xSeriesProperties->setPropertyValue(CHART_UNONAME_LABEL, uno::makeAny(aLabelAtSeries));
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
if( xSeriesProperties->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList )
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
{
for(sal_Int32 nN=aAttributedDataPointIndexList.getLength();nN--;)
{
Reference< beans::XPropertySet > xPointProp( xSeries->getDataPointByIndex(aAttributedDataPointIndexList[nN]) );
if( xPointProp.is() )
{
DataPointLabel aLabel;
xPointProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel;
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
aLabel.ShowNumber = bInsert;
if( !bInsert )
{
aLabel.ShowNumberInPercent = false;
aLabel.ShowCategoryName = false;
}
xPointProp->setPropertyValue(CHART_UNONAME_LABEL, uno::makeAny(aLabel));
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
}
}
}
}
}
2011-11-29 02:06:57 +09:00
catch(const uno::Exception &e)
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
{
ASSERT_EXCEPTION( e );
}
}
} // anonymous namespace
namespace chart
{
namespace DataSeriesHelper
{
OUString getRole( const uno::Reference< chart2::data::XLabeledDataSequence >& xLabeledDataSequence )
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
{
OUString aRet;
if( xLabeledDataSequence.is() )
{
Reference< beans::XPropertySet > xProp( xLabeledDataSequence->getValues(), uno::UNO_QUERY );
if( xProp.is() )
xProp->getPropertyValue( "Role" ) >>= aRet;
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
return aRet;
}
Reference< chart2::data::XLabeledDataSequence >
getDataSequenceByRole(
const Reference< chart2::data::XDataSource > & xSource,
const OUString& aRole,
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
bool bMatchPrefix /* = false */ )
{
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
Reference< chart2::data::XLabeledDataSequence > aNoResult;
if( ! xSource.is())
return aNoResult;
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
Sequence< Reference< chart2::data::XLabeledDataSequence > > aLabeledSeq( xSource->getDataSequences());
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
const Reference< chart2::data::XLabeledDataSequence > * pBegin = aLabeledSeq.getConstArray();
const Reference< chart2::data::XLabeledDataSequence > * pEnd = pBegin + aLabeledSeq.getLength();
const Reference< chart2::data::XLabeledDataSequence > * pMatch =
::std::find_if( pBegin, pEnd, lcl_MatchesRole( aRole, bMatchPrefix ));
if( pMatch != pEnd )
return *pMatch;
return aNoResult;
}
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
::std::vector< Reference< chart2::data::XLabeledDataSequence > >
getAllDataSequencesByRole( const Sequence< Reference< chart2::data::XLabeledDataSequence > > & aDataSequences,
const OUString& aRole, bool bMatchPrefix /* = false */ )
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
{
::std::vector< Reference< chart2::data::XLabeledDataSequence > > aResultVec;
::std::remove_copy_if( aDataSequences.getConstArray(), aDataSequences.getConstArray() + aDataSequences.getLength(),
::std::back_inserter( aResultVec ),
::std::not1( lcl_MatchesRole( aRole, bMatchPrefix )));
return aResultVec;
}
std::vector<Reference<css::chart2::data::XLabeledDataSequence> >
getAllDataSequences( const uno::Sequence<uno::Reference<chart2::XDataSeries> >& aSeries )
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
{
::std::vector< Reference< chart2::data::XLabeledDataSequence > > aSeqVec;
for( sal_Int32 i = 0; i < aSeries.getLength(); ++i )
{
Reference< chart2::data::XDataSource > xSource( aSeries[ i ], uno::UNO_QUERY );
if( xSource.is())
{
Sequence< Reference< chart2::data::XLabeledDataSequence > > aSeq( xSource->getDataSequences());
::std::copy( aSeq.getConstArray(), aSeq.getConstArray() + aSeq.getLength(),
::std::back_inserter( aSeqVec ));
}
}
return aSeqVec;
}
Reference< chart2::data::XDataSource >
getDataSource( const Sequence< Reference< chart2::XDataSeries > > & aSeries )
{
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
return Reference< chart2::data::XDataSource >(
new DataSource(ContainerHelper::ContainerToSequence(getAllDataSequences(aSeries))));
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
namespace
{
OUString lcl_getDataSequenceLabel( const Reference< chart2::data::XDataSequence > & xSequence )
{
OUString aResult;
Reference< chart2::data::XTextualDataSequence > xTextSeq( xSequence, uno::UNO_QUERY );
if( xTextSeq.is())
{
Sequence< OUString > aSeq( xTextSeq->getTextualData());
const sal_Int32 nMax = aSeq.getLength() - 1;
OUStringBuffer aBuf;
for( sal_Int32 i = 0; i <= nMax; ++i )
{
aBuf.append( aSeq[i] );
if( i < nMax )
aBuf.append( ' ');
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
aResult = aBuf.makeStringAndClear();
}
else if( xSequence.is())
{
Sequence< uno::Any > aSeq( xSequence->getData());
const sal_Int32 nMax = aSeq.getLength() - 1;
OUString aVal;
OUStringBuffer aBuf;
double fNum = 0;
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
for( sal_Int32 i = 0; i <= nMax; ++i )
{
if( aSeq[i] >>= aVal )
{
aBuf.append( aVal );
if( i < nMax )
aBuf.append( ' ');
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
else if( aSeq[ i ] >>= fNum )
{
aBuf.append( fNum );
if( i < nMax )
aBuf.append( ' ');
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
}
aResult = aBuf.makeStringAndClear();
}
return aResult;
}
}
OUString getLabelForLabeledDataSequence(
const Reference< chart2::data::XLabeledDataSequence > & xLabeledSeq )
{
OUString aResult;
if( xLabeledSeq.is())
{
Reference< chart2::data::XDataSequence > xSeq( xLabeledSeq->getLabel());
if( xSeq.is() )
aResult = lcl_getDataSequenceLabel( xSeq );
if( !xSeq.is() || aResult.isEmpty() )
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
{
// no label set or label content is empty -> use auto-generated one
Reference< chart2::data::XDataSequence > xValueSeq( xLabeledSeq->getValues() );
if( xValueSeq.is() )
{
Sequence< OUString > aLabels( xValueSeq->generateLabel(
chart2::data::LabelOrigin_SHORT_SIDE ) );
// no labels returned is interpreted as: auto-generation not
// supported by sequence
if( aLabels.getLength() )
aResult=aLabels[0];
else
{
//todo?: maybe use the index of the series as name
//but as the index may change it would be better to have such a name persistent
//what is not possible at the moment
//--> maybe use the identifier as part of the name ...
aResult = lcl_getDataSequenceLabel( xValueSeq );
}
}
}
}
return aResult;
}
OUString getDataSeriesLabel(
const Reference< chart2::XDataSeries > & xSeries,
const OUString & rLabelSequenceRole )
{
OUString aResult;
Reference< chart2::data::XDataSource > xSource( xSeries, uno::UNO_QUERY );
if( xSource.is())
{
Reference< chart2::data::XLabeledDataSequence > xLabeledSeq(
::chart::DataSeriesHelper::getDataSequenceByRole( xSource, rLabelSequenceRole ));
if( xLabeledSeq.is())
aResult = getLabelForLabeledDataSequence( xLabeledSeq );
else
{
// special case: labeled data series with only a label and no values may
// serve as label
xLabeledSeq.set( lcl_findLSequenceWithOnlyLabel( xSource ));
if( xLabeledSeq.is())
{
Reference< chart2::data::XDataSequence > xSeq( xLabeledSeq->getLabel());
if( xSeq.is())
aResult = lcl_getDataSequenceLabel( xSeq );
}
}
}
return aResult;
}
void setStackModeAtSeries(
const Sequence< Reference< chart2::XDataSeries > > & aSeries,
const Reference< chart2::XCoordinateSystem > & xCorrespondingCoordinateSystem,
StackMode eStackMode )
{
if( eStackMode == StackMode_AMBIGUOUS )
return;
const OUString aPropName( "StackingDirection" );
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
const uno::Any aPropValue = uno::makeAny(
( (eStackMode == StackMode_Y_STACKED) ||
(eStackMode == StackMode_Y_STACKED_PERCENT) )
? chart2::StackingDirection_Y_STACKING
: (eStackMode == StackMode_Z_STACKED )
? chart2::StackingDirection_Z_STACKING
: chart2::StackingDirection_NO_STACKING );
std::set< sal_Int32 > aAxisIndexSet;
for( sal_Int32 i=0; i<aSeries.getLength(); ++i )
{
try
{
Reference< beans::XPropertySet > xProp( aSeries[i], uno::UNO_QUERY );
if( xProp.is() )
{
xProp->setPropertyValue( aPropName, aPropValue );
sal_Int32 nAxisIndex;
xProp->getPropertyValue( "AttachedAxisIndex" ) >>= nAxisIndex;
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
aAxisIndexSet.insert(nAxisIndex);
}
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
{
ASSERT_EXCEPTION( ex );
}
}
if( xCorrespondingCoordinateSystem.is() &&
1 < xCorrespondingCoordinateSystem->getDimension() )
{
sal_Int32 nAxisIndexCount = aAxisIndexSet.size();
if( !nAxisIndexCount )
{
aAxisIndexSet.insert(0);
nAxisIndexCount = aAxisIndexSet.size();
}
for( ::std::set< sal_Int32 >::const_iterator aIt = aAxisIndexSet.begin();
aIt != aAxisIndexSet.end(); ++aIt )
{
sal_Int32 nAxisIndex = *aIt;
Reference< chart2::XAxis > xAxis(
xCorrespondingCoordinateSystem->getAxisByDimension( 1, nAxisIndex ));
if( xAxis.is())
{
bool bPercent = (eStackMode == StackMode_Y_STACKED_PERCENT);
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
chart2::ScaleData aScaleData = xAxis->getScaleData();
if( bPercent != (aScaleData.AxisType==chart2::AxisType::PERCENT) )
{
if( bPercent )
aScaleData.AxisType = chart2::AxisType::PERCENT;
else
aScaleData.AxisType = chart2::AxisType::REALNUMBER;
xAxis->setScaleData( aScaleData );
}
}
}
}
}
sal_Int32 getAttachedAxisIndex( const Reference< chart2::XDataSeries > & xSeries )
{
sal_Int32 nRet = 0;
try
{
Reference< beans::XPropertySet > xProp( xSeries, uno::UNO_QUERY );
if( xProp.is() )
{
xProp->getPropertyValue( "AttachedAxisIndex" ) >>= nRet;
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
{
ASSERT_EXCEPTION( ex );
}
return nRet;
}
sal_Int32 getNumberFormatKeyFromAxis(
const Reference< chart2::XDataSeries > & xSeries,
const Reference< chart2::XCoordinateSystem > & xCorrespondingCoordinateSystem,
sal_Int32 nDimensionIndex,
sal_Int32 nAxisIndex /* = -1 */ )
{
sal_Int32 nResult = 0;
if( nAxisIndex == -1 )
nAxisIndex = getAttachedAxisIndex( xSeries );
try
{
Reference< beans::XPropertySet > xAxisProp(
xCorrespondingCoordinateSystem->getAxisByDimension( nDimensionIndex, nAxisIndex ), uno::UNO_QUERY );
if( xAxisProp.is())
xAxisProp->getPropertyValue(CHART_UNONAME_NUMFMT) >>= nResult;
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
return nResult;
}
Reference< chart2::XCoordinateSystem > getCoordinateSystemOfSeries(
const Reference< chart2::XDataSeries > & xSeries,
const Reference< chart2::XDiagram > & xDiagram )
{
Reference< chart2::XCoordinateSystem > xResult;
Reference< chart2::XChartType > xDummy;
lcl_getCooSysAndChartTypeOfSeries( xSeries, xDiagram, xResult, xDummy );
return xResult;
}
Reference< chart2::XChartType > getChartTypeOfSeries(
const Reference< chart2::XDataSeries > & xSeries,
const Reference< chart2::XDiagram > & xDiagram )
{
Reference< chart2::XChartType > xResult;
Reference< chart2::XCoordinateSystem > xDummy;
lcl_getCooSysAndChartTypeOfSeries( xSeries, xDiagram, xDummy, xResult );
return xResult;
}
void deleteSeries(
const Reference< chart2::XDataSeries > & xSeries,
const Reference< chart2::XChartType > & xChartType )
{
try
{
Reference< chart2::XDataSeriesContainer > xSeriesCnt( xChartType, uno::UNO_QUERY_THROW );
::std::vector< Reference< chart2::XDataSeries > > aSeries(
ContainerHelper::SequenceToVector( xSeriesCnt->getDataSeries()));
::std::vector< Reference< chart2::XDataSeries > >::iterator aIt =
::std::find( aSeries.begin(), aSeries.end(), xSeries );
if( aIt != aSeries.end())
{
aSeries.erase( aIt );
xSeriesCnt->setDataSeries( ContainerHelper::ContainerToSequence( aSeries ));
}
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
{
ASSERT_EXCEPTION( ex );
}
}
void switchSymbolsOnOrOff( const Reference< beans::XPropertySet > & xSeriesProperties,
bool bSymbolsOn, sal_Int32 nSeriesIndex )
{
if( !xSeriesProperties.is() )
return;
chart2::Symbol aSymbProp;
if( (xSeriesProperties->getPropertyValue( "Symbol") >>= aSymbProp ) )
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
{
if( !bSymbolsOn )
aSymbProp.Style = chart2::SymbolStyle_NONE;
else if( aSymbProp.Style == chart2::SymbolStyle_NONE )
{
aSymbProp.Style = chart2::SymbolStyle_STANDARD;
aSymbProp.StandardSymbol = nSeriesIndex;
}
xSeriesProperties->setPropertyValue( "Symbol", uno::makeAny( aSymbProp ));
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
//todo: check attributed data points
}
void switchLinesOnOrOff( const Reference< beans::XPropertySet > & xSeriesProperties, bool bLinesOn )
{
if( !xSeriesProperties.is() )
return;
if( bLinesOn )
{
// keep line-styles that are not NONE
drawing::LineStyle eLineStyle;
if( (xSeriesProperties->getPropertyValue( "LineStyle") >>= eLineStyle ) &&
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
eLineStyle == drawing::LineStyle_NONE )
{
xSeriesProperties->setPropertyValue( "LineStyle", uno::makeAny( drawing::LineStyle_SOLID ) );
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
}
else
xSeriesProperties->setPropertyValue( "LineStyle", uno::makeAny( drawing::LineStyle_NONE ) );
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
}
void makeLinesThickOrThin( const Reference< beans::XPropertySet > & xSeriesProperties, bool bThick )
{
if( !xSeriesProperties.is() )
return;
sal_Int32 nNewValue = bThick ? 80 : 0;
sal_Int32 nOldValue = 0;
if( (xSeriesProperties->getPropertyValue( "LineWidth") >>= nOldValue ) &&
nOldValue != nNewValue )
{
if( !(bThick && nOldValue>0))
xSeriesProperties->setPropertyValue( "LineWidth", uno::makeAny( nNewValue ) );
}
}
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
void setPropertyAlsoToAllAttributedDataPoints( const Reference< chart2::XDataSeries >& xSeries,
const OUString& rPropertyName, const uno::Any& rPropertyValue )
{
Reference< beans::XPropertySet > xSeriesProperties( xSeries, uno::UNO_QUERY );
if( !xSeriesProperties.is() )
return;
xSeriesProperties->setPropertyValue( rPropertyName, rPropertyValue );
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
if( xSeriesProperties->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList )
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
{
for(sal_Int32 nN=aAttributedDataPointIndexList.getLength();nN--;)
{
Reference< beans::XPropertySet > xPointProp( xSeries->getDataPointByIndex(aAttributedDataPointIndexList[nN]) );
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
if(!xPointProp.is())
continue;
xPointProp->setPropertyValue( rPropertyName, rPropertyValue );
}
}
}
bool hasAttributedDataPointDifferentValue( const Reference< chart2::XDataSeries >& xSeries,
const OUString& rPropertyName, const uno::Any& rPropertyValue )
{
Reference< beans::XPropertySet > xSeriesProperties( xSeries, uno::UNO_QUERY );
if( !xSeriesProperties.is() )
return false;
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
if( xSeriesProperties->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList )
{
for(sal_Int32 nN=aAttributedDataPointIndexList.getLength();nN--;)
{
Reference< beans::XPropertySet > xPointProp( xSeries->getDataPointByIndex(aAttributedDataPointIndexList[nN]) );
if(!xPointProp.is())
continue;
uno::Any aPointValue( xPointProp->getPropertyValue( rPropertyName ) );
if( !( rPropertyValue==aPointValue ) )
return true;
}
}
return false;
}
INTEGRATION: CWS chart2mst3 (1.1.4); FILE MERGED 2007/03/06 14:09:24 bm 1.1.4.34: lcl_findLSequenceWithOnlyLabel: make more safe if labeled sequence is empty 2007/02/24 10:38:28 iha 1.1.4.33: #i74648# also change attributed data points 2007/02/23 18:07:52 iha 1.1.4.32: #i74655# symbols lost when switching smooth lines 2007/02/09 12:39:03 bm 1.1.4.31: #i72841# temporary did not work on Linux 2007/02/09 12:29:58 bm 1.1.4.30: #i72841# move deleteSeries functionality here from source/controller/dialog/DialogModel.cxx 2006/12/11 17:31:54 bm 1.1.4.29: #i72308# allow to set the label before the values of a series 2006/10/18 17:16:03 bm 1.1.4.28: RESYNC: (1.2-1.3); FILE MERGED 2006/08/02 11:16:27 bm 1.1.4.27: #i27352# implement quick help 2006/07/25 16:46:03 bm 1.1.4.26: #i64824# handle number formats in the data browser 2006/07/19 08:46:04 bm 1.1.4.25: getLabelForLabeledDataSequence: some comments added 2006/04/11 10:53:38 bm 1.1.4.24: getAttachedAxisIndex: return a value 2006/04/10 12:25:15 iha 1.1.4.23: api restructure axis, grids, scales and increments 2006/03/10 12:45:34 bm 1.1.4.22: #i63011# explicit qualification in declaration, function names were qualified with namespace (was a class in the past) 2005/12/21 21:29:26 iha 1.1.4.21: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/02 19:19:16 iha 1.1.4.20: added helping method SetRole() 2005/11/01 13:08:08 iha 1.1.4.19: support sequence mapping 2005/10/29 18:50:11 iha 1.1.4.18: make more failsave 2005/10/27 17:43:54 iha 1.1.4.17: support autogenerated label 2005/10/25 16:28:30 iha 1.1.4.16: corrected getDataSeriesLabel 2005/10/24 11:06:55 iha 1.1.4.15: coordinate system restructure 2005/10/13 17:39:08 iha 1.1.4.14: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/07 12:07:38 bm 1.1.4.13: RESYNC: (1.1-1.2); FILE MERGED 2005/09/16 16:50:15 iha 1.1.4.12: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/09/08 18:17:42 iha 1.1.4.11: use generated labels for series names 2005/08/03 16:36:27 bm 1.1.4.10: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 13:01:22 bm 1.1.4.9: data namespace forgotten 2005/05/09 09:51:32 bm 1.1.4.8: moved parts of API to data namespace 2004/09/17 10:52:50 bm 1.1.4.7: API simplification 2004/09/15 11:48:26 bm 1.1.4.6: API simplification 2004/05/07 15:36:50 bm 1.1.4.5: legend-entries: use TextualDataSequence if available 2004/04/27 13:42:02 bm 1.1.4.4: +createUniqueSeriesId that calculates a yet unused id +getDataSeriesIdentifier convenience to get the Identifier property of a series 2004/03/19 14:33:01 bm 1.1.4.3: XDataSource now contains XLabeledDataSources 2004/02/16 09:03:06 bm 1.1.4.2: operator lcl_MatchesRole needs const operator() 2004/02/13 16:51:50 bm 1.1.4.1: join from changes on branch bm_post_chart01
2007-05-22 17:57:32 +00:00
2008-12-12 12:17:17 +00:00
bool areAllSeriesAttachedToSameAxis( const uno::Reference< chart2::XChartType >& xChartType, sal_Int32 & rOutAxisIndex )
{
try
{
uno::Reference< chart2::XDataSeriesContainer > xDataSeriesContainer( xChartType, uno::UNO_QUERY_THROW );
uno::Sequence< uno::Reference< chart2::XDataSeries > > aSeriesSeq( xDataSeriesContainer->getDataSeries());
const sal_Int32 nSeriesCount( aSeriesSeq.getLength());
// AxisIndex can only be 0 or 1
sal_Int32 nSeriesAtFirstAxis = 0;
sal_Int32 nSeriesAtSecondAxis = 0;
for( sal_Int32 nI = 0; nI < nSeriesCount; ++nI )
{
uno::Reference< chart2::XDataSeries > xSeries( aSeriesSeq[nI], uno::UNO_QUERY );
sal_Int32 nAxisIndex = DataSeriesHelper::getAttachedAxisIndex( xSeries );
if( nAxisIndex == 0 )
++nSeriesAtFirstAxis;
else if( nAxisIndex == 1 )
++nSeriesAtSecondAxis;
}
OSL_ENSURE( nSeriesAtFirstAxis + nSeriesAtSecondAxis == nSeriesCount, "Invalid axis index found" );
if( nSeriesAtFirstAxis == nSeriesCount )
rOutAxisIndex = 0;
else if( nSeriesAtSecondAxis == nSeriesCount )
rOutAxisIndex = 1;
return ( nSeriesAtFirstAxis == nSeriesCount ||
nSeriesAtSecondAxis == nSeriesCount );
}
catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
return false;
}
}
CWS-TOOLING: integrate CWS koheichart01 2009-05-15 06:32:38 +0200 hde r271925 : header fixed 2009-04-14 16:23:35 +0200 hde r270792 : #100231# 2009-04-14 16:13:48 +0200 hde r270790 : #100231# 2009-04-14 15:56:14 +0200 hde r270787 : #100231# 2009-04-14 14:28:40 +0200 hde r270767 : #100231# 2009-04-14 14:27:30 +0200 hde r270766 : #100231# 2009-04-14 09:43:07 +0200 hde r270749 : #100231# 2009-04-14 09:25:52 +0200 hde r270748 : #100231# 2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning 2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment. 2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's hidden state. 2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled elsewhere. 2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more). 2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is false. Also avoid adding data cache when the cell is hidden. 2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync. 2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync. 2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44) 2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx 2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable 2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording 2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description 2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code 2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo 2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider 2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of problem during rebase. 2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste 2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case. 2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value. This fixes the broken missing value treatment. 2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore 2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting 2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer 2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes 2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file 2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member 2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods 2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy 2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo 2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells 2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts 2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells 2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values. 2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates. 2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38) 2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on modified lines and removal of unnecessary 'using' statements. 2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells' options it false! I'm glad I caught this. 2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function. 2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach. Instead of using the original data point index in the object name, leave that index alone, and remove hidden data in the tooltip text value lookup code. 2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account the hidden data points (if any). 2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37) 2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578. 2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning. 2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning. 2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped. 2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true. 2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box. 2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion. 2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short. 2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup. 2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types. 2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions. 2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page. 2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be zero even when the document has charts. 2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener that listens on cells show/hide state for the chart's data areas. 2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied. 2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
namespace
{
bool lcl_SequenceHasUnhiddenData( const uno::Reference< chart2::data::XDataSequence >& xDataSequence )
{
if( !xDataSequence.is() )
return false;
uno::Reference< beans::XPropertySet > xProp( xDataSequence, uno::UNO_QUERY );
if( xProp.is() )
{
uno::Sequence< sal_Int32 > aHiddenValues;
try
{
xProp->getPropertyValue( "HiddenValues" ) >>= aHiddenValues;
CWS-TOOLING: integrate CWS koheichart01 2009-05-15 06:32:38 +0200 hde r271925 : header fixed 2009-04-14 16:23:35 +0200 hde r270792 : #100231# 2009-04-14 16:13:48 +0200 hde r270790 : #100231# 2009-04-14 15:56:14 +0200 hde r270787 : #100231# 2009-04-14 14:28:40 +0200 hde r270767 : #100231# 2009-04-14 14:27:30 +0200 hde r270766 : #100231# 2009-04-14 09:43:07 +0200 hde r270749 : #100231# 2009-04-14 09:25:52 +0200 hde r270748 : #100231# 2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning 2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment. 2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's hidden state. 2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled elsewhere. 2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more). 2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is false. Also avoid adding data cache when the cell is hidden. 2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync. 2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync. 2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44) 2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx 2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable 2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording 2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description 2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code 2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo 2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider 2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of problem during rebase. 2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste 2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case. 2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value. This fixes the broken missing value treatment. 2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore 2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting 2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer 2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes 2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file 2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member 2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods 2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy 2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo 2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells 2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts 2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells 2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values. 2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates. 2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38) 2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on modified lines and removal of unnecessary 'using' statements. 2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells' options it false! I'm glad I caught this. 2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function. 2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach. Instead of using the original data point index in the object name, leave that index alone, and remove hidden data in the tooltip text value lookup code. 2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account the hidden data points (if any). 2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37) 2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578. 2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning. 2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning. 2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped. 2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true. 2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box. 2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion. 2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short. 2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup. 2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types. 2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions. 2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page. 2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be zero even when the document has charts. 2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener that listens on cells show/hide state for the chart's data areas. 2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied. 2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
if( !aHiddenValues.getLength() )
return true;
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception& )
CWS-TOOLING: integrate CWS koheichart01 2009-05-15 06:32:38 +0200 hde r271925 : header fixed 2009-04-14 16:23:35 +0200 hde r270792 : #100231# 2009-04-14 16:13:48 +0200 hde r270790 : #100231# 2009-04-14 15:56:14 +0200 hde r270787 : #100231# 2009-04-14 14:28:40 +0200 hde r270767 : #100231# 2009-04-14 14:27:30 +0200 hde r270766 : #100231# 2009-04-14 09:43:07 +0200 hde r270749 : #100231# 2009-04-14 09:25:52 +0200 hde r270748 : #100231# 2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning 2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment. 2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's hidden state. 2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled elsewhere. 2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more). 2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is false. Also avoid adding data cache when the cell is hidden. 2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync. 2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync. 2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44) 2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx 2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable 2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording 2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description 2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code 2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo 2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider 2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of problem during rebase. 2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste 2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case. 2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value. This fixes the broken missing value treatment. 2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore 2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting 2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer 2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes 2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file 2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member 2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods 2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy 2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo 2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells 2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts 2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells 2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values. 2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates. 2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38) 2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on modified lines and removal of unnecessary 'using' statements. 2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells' options it false! I'm glad I caught this. 2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function. 2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach. Instead of using the original data point index in the object name, leave that index alone, and remove hidden data in the tooltip text value lookup code. 2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account the hidden data points (if any). 2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37) 2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578. 2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning. 2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning. 2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped. 2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true. 2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box. 2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion. 2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short. 2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup. 2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types. 2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions. 2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page. 2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be zero even when the document has charts. 2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener that listens on cells show/hide state for the chart's data areas. 2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied. 2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
{
return true;
}
}
if( xDataSequence->getData().getLength() )
return true;
return false;
}
}
bool hasUnhiddenData( const uno::Reference< chart2::XDataSeries >& xSeries )
{
uno::Reference< chart2::data::XDataSource > xDataSource =
uno::Reference< chart2::data::XDataSource >( xSeries, uno::UNO_QUERY );
uno::Sequence< uno::Reference< chart2::data::XLabeledDataSequence > > aDataSequences = xDataSource->getDataSequences();
for(sal_Int32 nN = aDataSequences.getLength();nN--;)
{
if( !aDataSequences[nN].is() )
continue;
if( lcl_SequenceHasUnhiddenData( aDataSequences[nN]->getValues() ) )
return true;
if( lcl_SequenceHasUnhiddenData( aDataSequences[nN]->getLabel() ) )
return true;
}
return false;
}
struct lcl_LessIndex
{
2010-11-25 10:48:29 +00:00
inline bool operator() ( const sal_Int32& first, const sal_Int32& second ) const
CWS-TOOLING: integrate CWS koheichart01 2009-05-15 06:32:38 +0200 hde r271925 : header fixed 2009-04-14 16:23:35 +0200 hde r270792 : #100231# 2009-04-14 16:13:48 +0200 hde r270790 : #100231# 2009-04-14 15:56:14 +0200 hde r270787 : #100231# 2009-04-14 14:28:40 +0200 hde r270767 : #100231# 2009-04-14 14:27:30 +0200 hde r270766 : #100231# 2009-04-14 09:43:07 +0200 hde r270749 : #100231# 2009-04-14 09:25:52 +0200 hde r270748 : #100231# 2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning 2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment. 2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's hidden state. 2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled elsewhere. 2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more). 2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is false. Also avoid adding data cache when the cell is hidden. 2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync. 2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync. 2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44) 2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx 2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable 2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording 2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description 2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code 2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo 2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider 2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of problem during rebase. 2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste 2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case. 2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value. This fixes the broken missing value treatment. 2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore 2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting 2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer 2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes 2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file 2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member 2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods 2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy 2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo 2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells 2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts 2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells 2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values. 2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates. 2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38) 2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on modified lines and removal of unnecessary 'using' statements. 2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells' options it false! I'm glad I caught this. 2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function. 2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach. Instead of using the original data point index in the object name, leave that index alone, and remove hidden data in the tooltip text value lookup code. 2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account the hidden data points (if any). 2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37) 2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578. 2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning. 2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning. 2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped. 2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true. 2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box. 2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion. 2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short. 2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup. 2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types. 2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions. 2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page. 2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be zero even when the document has charts. 2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener that listens on cells show/hide state for the chart's data areas. 2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied. 2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
{
return ( first < second );
}
};
sal_Int32 translateIndexFromHiddenToFullSequence( sal_Int32 nIndex, const Reference< chart2::data::XDataSequence >& xDataSequence, bool bTranslate )
{
if( !bTranslate )
return nIndex;
try
{
uno::Reference<beans::XPropertySet> xProp( xDataSequence, uno::UNO_QUERY );
if( xProp.is())
{
Sequence<sal_Int32> aHiddenIndicesSeq;
xProp->getPropertyValue( "HiddenValues" ) >>= aHiddenIndicesSeq;
CWS-TOOLING: integrate CWS koheichart01 2009-05-15 06:32:38 +0200 hde r271925 : header fixed 2009-04-14 16:23:35 +0200 hde r270792 : #100231# 2009-04-14 16:13:48 +0200 hde r270790 : #100231# 2009-04-14 15:56:14 +0200 hde r270787 : #100231# 2009-04-14 14:28:40 +0200 hde r270767 : #100231# 2009-04-14 14:27:30 +0200 hde r270766 : #100231# 2009-04-14 09:43:07 +0200 hde r270749 : #100231# 2009-04-14 09:25:52 +0200 hde r270748 : #100231# 2009-03-25 16:18:26 +0100 iha r270034 : #i91578# removed compiler warning 2009-03-25 03:20:36 +0100 kohei r269992 : fixed a silly typo in in-line comment. 2009-03-24 17:03:57 +0100 kohei r269977 : Let's use row and column's hidden flags, instead of width/height, to determine cell's hidden state. 2009-03-24 16:53:10 +0100 kohei r269973 : The chart positioner no longer needs to skip hidden cells, as hidden cells are handled elsewhere. 2009-03-24 16:50:12 +0100 kohei r269971 : the index should be 0-based (although chart2 doesn't appear to make use of this data any more). 2009-03-24 16:47:56 +0100 kohei r269969 : Skip hidden cells during cache (re-)build, when the include hidden cells flag is false. Also avoid adding data cache when the cell is hidden. 2009-03-24 06:05:53 +0100 kohei r269909 : fixed the build breakage after the resync. 2009-03-24 06:05:34 +0100 kohei r269908 : fixed the build breakage after the resync. 2009-03-23 23:38:36 +0100 kohei r269900 : CWS-TOOLING: rebase CWS koheichart01 to trunk@269781 (milestone: DEV300:m44) 2009-03-17 13:11:40 +0100 iha r269597 : #i91578# import IncludeHiddenCells from xlsx 2009-03-17 12:56:09 +0100 iha r269594 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-17 12:49:13 +0100 iha r269592 : #i91578# import IncludeHiddenCells from xls correctly 2009-03-16 17:03:55 +0100 iha r269561 : #i91578# remove unused variable 2009-03-16 10:22:30 +0100 iha r269509 : #i91578# changed wording 2009-03-04 17:07:16 +0100 iha r268846 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:04:22 +0100 iha r268845 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 17:03:43 +0100 iha r268844 : #i91578# display of hidden cells - remove unused property 'IsHidden' 2009-03-04 16:24:30 +0100 iha r268843 : #i91578# display of hidden cells - added missing property description 2009-03-04 15:13:04 +0100 iha r268835 : #i91578# display of hidden cells - remove unused code 2009-03-04 14:38:44 +0100 iha r268832 : #i91578# display of hidden cells - reset state corretly when doing undo/redo 2009-03-04 13:42:10 +0100 iha r268822 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:40:10 +0100 iha r268821 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-04 13:37:05 +0100 iha r268820 : #i81209# #i91578# display of hidden cells - don't show hidden cells per default but keep the hidden ranges 2009-03-03 11:18:39 +0100 iha r268713 : #i91578# display of hidden cells - hide control if the functionality is not offered by the data provider 2009-03-02 17:41:37 +0100 kohei r268684 : removed unintended change from DEV300_m38, which was probably introduced due to some sort of problem during rebase. 2009-02-27 18:51:34 +0100 iha r268613 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:45:48 +0100 iha r268612 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:44:17 +0100 iha r268611 : #i91578# display of hidden cells - interface redesign: data provider+sequences are now controlled by the chart via a new parameter 'IncludeHiddenCells' thus unwanted values can be removed early in the communication 2009-02-27 18:35:09 +0100 iha r268610 : #i91578# display of hidden cells - copy-paste-scenario: export hidden flag per column on copy for migration to locale table during import upon paste 2009-02-19 06:47:56 +0100 kohei r268257 : also, set the default value of a cached cell to NaN just in case. 2009-02-19 06:42:08 +0100 kohei r268256 : Set the IsValue flag to false by default so that an empty cell is properly flaged as non-value. This fixes the broken missing value treatment. 2009-02-18 20:16:30 +0100 iha r268255 : #i91578# display of hidden cells - radio button 'leave gap' was not clickable anymore 2009-02-17 17:57:24 +0100 iha r268185 : #i91578# display of hidden cells - corrected range highlighting 2009-02-17 15:39:52 +0100 iha r268174 : #i91578# display of hidden cells - still display data point value in tip help of data points in writer 2009-02-17 11:21:00 +0100 iha r267861 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-17 11:15:14 +0100 iha r267853 : #i91578# display of hidden cells - do not show a space nor a legend entry for hidden series 2009-02-16 16:48:10 +0100 iha r267826 : #i91578# display of hidden cells - group related ids and minimize changes 2009-02-16 14:32:11 +0100 iha r267813 : #i91578# display of hidden cells - don't share resource identifier as this easily produces conflicts -> move IDs for series options page into a separate file 2009-02-16 13:21:44 +0100 iha r267795 : #i91578# display of hidden cells - remove unused member 2009-02-16 13:13:40 +0100 iha r267794 : #i91578# display of hidden cells - remove unused methods 2009-02-16 13:00:10 +0100 iha r267792 : #i91578# display of hidden - avoid unnecessary data copy 2009-02-16 11:40:41 +0100 iha r267785 : #i91578# display of hidden - corrected typo 2009-02-16 11:28:39 +0100 iha r267783 : #i91578# display of hidden - set correct dirty state in method setIncludeHiddenCells 2009-02-13 17:04:50 +0100 iha r267734 : #i91578# corrected position and visibility of the controls for display of hidden cells in case of stock charts 2009-02-13 15:30:17 +0100 iha r267724 : #i91578# charts without category range and charts with data from writer table were broken causes by features changes for display of hidden cells 2009-01-14 19:47:28 +0100 kohei r266330 : #i91578# Fixed the issue with incorrect tooltip category values. 2009-01-05 22:27:03 +0100 kohei r265887 : fixed a regression where the x-axis failed to display values when they were numeric or dates. 2008-12-24 17:01:15 +0100 kohei r265800 : CWS-TOOLING: rebase CWS koheichart01 to trunk@265758 (milestone: DEV300:m38) 2008-12-24 16:03:08 +0100 kohei r265799 : a little more code cleanup, mostly on tab to whitespace conversion on modified lines and removal of unnecessary 'using' statements. 2008-12-24 15:52:00 +0100 kohei r265798 : removed unnecessary header inclusion & remove hidden data *only when* the 'include hidden cells' options it false! I'm glad I caught this. 2008-12-24 07:41:23 +0100 kohei r265796 : replaced duplicated local functions with a single template function. 2008-12-24 06:37:15 +0100 kohei r265795 : reverted my last commit, because it was not the right approach. Instead of using the original data point index in the object name, leave that index alone, and remove hidden data in the tooltip text value lookup code. 2008-12-23 23:10:42 +0100 kohei r265793 : fixed the tooltips so that they would display correct values, taking into account the hidden data points (if any). 2008-12-20 05:26:07 +0100 kohei r265739 : CWS-TOOLING: rebase CWS koheichart01 to trunk@264807 (milestone: DEV300:m37) 2008-12-18 15:49:59 +0100 kohei r265696 : removed markRangeDirty() for now, since that method is still a bit controvertial per Niklas's comment in i#91578. 2008-12-05 20:27:24 +0100 kohei r264918 : removed a compiler warning. 2008-12-05 20:24:02 +0100 kohei r264917 : removed a compilar warning. 2008-12-03 17:06:22 +0100 kohei r264800 : recovered the original keyword file before it was stripped. 2008-12-01 22:00:24 +0100 kohei r264640 : by default, "include hidden cells" attribute is true. 2008-12-01 19:03:07 +0100 kohei r264628 : added accelerator for the plot hidden values check box. 2008-12-01 18:32:02 +0100 kohei r264626 : changed wording per Ingrid's suggestion. 2008-11-26 08:09:36 +0100 kohei r264341 : the 'Starnding angle' fixed line was 6 pixel short. 2008-11-26 08:02:47 +0100 kohei r264340 : added include-hidden-cells check box for the pie chart type too & some code cleanup. 2008-11-26 07:41:45 +0100 kohei r264339 : relocate the controls correctly for line chart types. 2008-11-26 07:14:26 +0100 kohei r264337 : #i95714# fixed typos that caused incorrect scaling of the y-axis under some conditions. 2008-11-26 07:11:54 +0100 kohei r264336 : added "Include hidden cells" check box in the data series options tab page. 2008-11-25 21:04:58 +0100 kohei r264333 : don't check for the number of charts; when importing from xls, the count may be zero even when the document has charts. 2008-11-25 19:55:50 +0100 kohei r264332 : patch from ooo-build applied. This implements chart listener that listens on cells show/hide state for the chart's data areas. 2008-11-25 19:52:38 +0100 kohei r264331 : patch from ooo-build applied. 2008-11-25 19:29:54 +0100 kohei r264329 : new xml token for include-hidden-cells attribute.
2009-05-18 16:46:40 +00:00
if( aHiddenIndicesSeq.getLength() )
{
::std::vector< sal_Int32 > aHiddenIndices( ContainerHelper::SequenceToVector( aHiddenIndicesSeq ) );
::std::sort( aHiddenIndices.begin(), aHiddenIndices.end(), lcl_LessIndex() );
sal_Int32 nHiddenCount = static_cast<sal_Int32>(aHiddenIndices.size());
for( sal_Int32 nN = 0; nN < nHiddenCount; ++nN)
{
if( aHiddenIndices[nN] <= nIndex )
nIndex += 1;
else
break;
}
}
}
}
catch (const beans::UnknownPropertyException&)
{
}
return nIndex;
}
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
bool hasDataLabelsAtSeries( const Reference< chart2::XDataSeries >& xSeries )
{
bool bRet = false;
try
{
Reference< beans::XPropertySet > xProp( xSeries, uno::UNO_QUERY );
if( xProp.is() )
{
DataPointLabel aLabel;
if( (xProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel) )
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
bRet = aLabel.ShowNumber || aLabel.ShowNumberInPercent || aLabel.ShowCategoryName;
}
}
2011-11-29 02:06:57 +09:00
catch(const uno::Exception &e)
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
{
ASSERT_EXCEPTION( e );
}
return bRet;
}
bool hasDataLabelsAtPoints( const Reference< chart2::XDataSeries >& xSeries )
{
bool bRet = false;
try
{
Reference< beans::XPropertySet > xSeriesProperties( xSeries, uno::UNO_QUERY );
if( xSeriesProperties.is() )
{
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
if( xSeriesProperties->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList )
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
{
for(sal_Int32 nN=aAttributedDataPointIndexList.getLength();nN--;)
{
Reference< beans::XPropertySet > xPointProp( xSeries->getDataPointByIndex(aAttributedDataPointIndexList[nN]) );
if( xPointProp.is() )
{
DataPointLabel aLabel;
if( (xPointProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel) )
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
bRet = aLabel.ShowNumber || aLabel.ShowNumberInPercent || aLabel.ShowCategoryName;
if( bRet )
break;
}
}
}
}
}
2011-11-29 02:06:57 +09:00
catch(const uno::Exception &e)
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
{
ASSERT_EXCEPTION( e );
}
return bRet;
}
bool hasDataLabelAtPoint( const Reference< chart2::XDataSeries >& xSeries, sal_Int32 nPointIndex )
{
bool bRet = false;
try
{
Reference< beans::XPropertySet > xProp;
Reference< beans::XPropertySet > xSeriesProperties( xSeries, uno::UNO_QUERY );
if( xSeriesProperties.is() )
{
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
if( xSeriesProperties->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList )
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
{
::std::vector< sal_Int32 > aIndices( ContainerHelper::SequenceToVector( aAttributedDataPointIndexList ) );
::std::vector< sal_Int32 >::iterator aIt = ::std::find( aIndices.begin(), aIndices.end(), nPointIndex );
if( aIt != aIndices.end())
xProp = xSeries->getDataPointByIndex(nPointIndex);
else
xProp = xSeriesProperties;
}
if( xProp.is() )
{
DataPointLabel aLabel;
if( (xProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel) )
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
bRet = aLabel.ShowNumber || aLabel.ShowNumberInPercent || aLabel.ShowCategoryName;
}
}
}
2011-11-29 02:06:57 +09:00
catch(const uno::Exception &e)
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
{
ASSERT_EXCEPTION( e );
}
return bRet;
}
void insertDataLabelsToSeriesAndAllPoints( const Reference< chart2::XDataSeries >& xSeries )
{
lcl_insertOrDeleteDataLabelsToSeriesAndAllPoints( xSeries, true /*bInsert*/ );
}
void deleteDataLabelsFromSeriesAndAllPoints( const Reference< chart2::XDataSeries >& xSeries )
{
lcl_insertOrDeleteDataLabelsToSeriesAndAllPoints( xSeries, false /*bInsert*/ );
}
void insertDataLabelToPoint( const Reference< beans::XPropertySet >& xPointProp )
{
try
{
if( xPointProp.is() )
{
DataPointLabel aLabel;
xPointProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel;
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
aLabel.ShowNumber = true;
xPointProp->setPropertyValue(CHART_UNONAME_LABEL, uno::makeAny(aLabel));
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
}
}
2011-11-29 02:06:57 +09:00
catch(const uno::Exception &e)
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
{
ASSERT_EXCEPTION( e );
}
}
void deleteDataLabelsFromPoint( const Reference< beans::XPropertySet >& xPointProp )
{
try
{
if( xPointProp.is() )
{
DataPointLabel aLabel;
xPointProp->getPropertyValue(CHART_UNONAME_LABEL) >>= aLabel;
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
aLabel.ShowNumber = false;
aLabel.ShowNumberInPercent = false;
aLabel.ShowCategoryName = false;
xPointProp->setPropertyValue(CHART_UNONAME_LABEL, uno::makeAny(aLabel));
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
}
}
2011-11-29 02:06:57 +09:00
catch(const uno::Exception &e)
CWS-TOOLING: integrate CWS chartuseability01 2009-09-07 17:26:44 +0200 iha r275906 : CWS-TOOLING: rebase CWS chartuseability01 to trunk@275801 (milestone: DEV300:m57) 2009-08-27 13:48:16 +0200 iha r275481 : #7049# listbox to select chart elements 2009-08-27 11:54:53 +0200 iha r275464 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-26 16:49:58 +0200 iha r275435 : #i102820# added missing case 'floor' 2009-08-26 15:33:51 +0200 iha r275427 : #i102820# make 'insert legend' work properly 2009-08-25 16:35:00 +0200 ufi r275369 : i104087 2009-08-25 15:12:17 +0200 iha r275360 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:31 +0200 iha r275359 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 15:11:15 +0200 iha r275358 : #i104087# 'Object Properties' -> 'Format Selection' 2009-08-25 11:57:43 +0200 iha r275344 : #i104087# changed behavior of insert menu 2009-08-18 12:53:54 +0200 oc r275093 : #i104082,104086,104089# multiple changes because of changed chartUI 2009-08-10 16:46:17 +0200 ufi r274824 : i104083 i104087 i104090 2009-08-07 14:04:34 +0200 iha r274763 : #7049# listbox to select chart elements 2009-08-07 13:06:05 +0200 iha r274760 : #7049# listbox to select chart elements 2009-08-07 13:05:06 +0200 iha r274759 : #7049# listbox to select chart elements 2009-08-07 12:32:31 +0200 iha r274756 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-07 12:31:54 +0200 iha r274755 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 19:00:48 +0200 iha r274742 : #i103593# make insert menu behavior selection dependent 2009-08-06 19:00:14 +0200 iha r274741 : #i103593# make insert menu behavior selection dependent 2009-08-06 15:34:01 +0200 iha r274731 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-06 14:39:20 +0200 iha r274728 : #i86146# ease adding R-squared value with an equation 2009-08-06 14:37:02 +0200 iha r274727 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:54 +0200 iha r274724 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:37:15 +0200 iha r274723 : #i86146# ease adding R-squared value with an equation 2009-08-06 13:04:27 +0200 iha r274722 : #i103593# make insert menu behavior selection dependent 2009-08-06 13:03:35 +0200 iha r274721 : #i103593# make insert menu behavior selection dependent 2009-08-05 18:26:31 +0200 iha r274693 : #i104033# inconsistent wording 'error indicator' <-> 'error bar' 2009-08-05 16:51:45 +0200 iha r274688 : #i104028# rename font tabpage 'Characters'->'Font' 2009-08-05 16:30:21 +0200 iha r274685 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:34:11 +0200 iha r274680 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:32:43 +0200 iha r274679 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:31:26 +0200 iha r274678 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:17:51 +0200 iha r274676 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 15:16:22 +0200 iha r274675 : #i58163# #i69422# #i102820# enhance chart context menu 2009-08-05 14:58:59 +0200 iha r274674 : #7049# listbox to select chart elements 2009-08-05 14:33:54 +0200 iha r274669 : #7049# listbox to select chart elements 2009-08-05 14:22:17 +0200 iha r274665 : #7049# listbox to select chart elements 2009-08-05 13:21:05 +0200 iha r274656 : #i102820# offer insertion of several elements in context menu also if nothing is selected 2009-08-05 11:56:06 +0200 iha r274647 : #7049# listbox to select chart elements 2009-08-05 11:43:40 +0200 iha r274645 : #7049# listbox to select chart elements 2009-07-24 19:46:50 +0200 iha r274318 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:23:13 +0200 iha r274313 : #i58163# #i69422# #i102820# enhance chart context menu 2009-07-24 16:13:22 +0200 iha r274311 : #i58163# #i69422# #i102820# enhance chart context menu
2009-09-11 16:06:18 +00:00
{
ASSERT_EXCEPTION( e );
}
}
} // namespace DataSeriesHelper
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */