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

1000 lines
33 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
#include "tp_DataSource.hxx"
#include "Strings.hrc"
#include "ResId.hxx"
#include "chartview/ChartSfxItemIds.hxx"
#include "macros.hxx"
#include "ChartTypeTemplateProvider.hxx"
#include "RangeSelectionHelper.hxx"
#include "DataSeriesHelper.hxx"
#include "tp_DataSourceControls.hxx"
#include "ControllerLockGuard.hxx"
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
#include "DataSourceHelper.hxx"
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
#include <com/sun/star/sheet/XRangeSelection.hpp>
#include <com/sun/star/table/XCellRange.hpp>
#include <com/sun/star/chart2/XChartType.hpp>
#include <com/sun/star/chart2/XChartTypeTemplate.hpp>
#include <com/sun/star/util/XModifiable.hpp>
#include <com/sun/star/chart2/data/XDataSink.hpp>
#include <vcl/msgbox.hxx>
#include <rtl/ustrbuf.hxx>
#include <functional>
#include <algorithm>
#include <map>
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart2;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
namespace
{
const OUString lcl_aLabelRole( "label" );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
OUString lcl_GetRoleLBEntry(
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
const OUString & rRole, const OUString & rRange )
{
OUStringBuffer aEntry( rRole );
aEntry.append( "\t" );
aEntry.append( OUString(
::chart::DialogModel::ConvertRoleFromInternalToUI( rRole )) );
aEntry.append( "\t" );
aEntry.append(OUString( rRange ));
OUString sFoo = aEntry.makeStringAndClear();
return sFoo;
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
void lcl_UpdateCurrentRange(
SvTabListBox & rOutListBox,
const OUString & rRole, const OUString & rRange )
{
SvTreeListEntry * pEntry = rOutListBox.FirstSelected();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pEntry )
rOutListBox.SetEntryText( lcl_GetRoleLBEntry( rRole, rRange ), pEntry );
}
bool lcl_UpdateCurrentSeriesName(
SvTreeListBox & rOutListBox )
{
bool bResult = false;
::chart::SeriesEntry * pEntry = dynamic_cast< ::chart::SeriesEntry * >( rOutListBox.FirstSelected());
if( pEntry &&
pEntry->m_xDataSeries.is() &&
pEntry->m_xChartType.is())
{
OUString aLabel( ::chart::DataSeriesHelper::getDataSeriesLabel(
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
pEntry->m_xDataSeries,
pEntry->m_xChartType->getRoleOfSequenceForSeriesLabel()));
if( !aLabel.isEmpty())
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
rOutListBox.SetEntryText( pEntry, aLabel );
bResult = true;
}
}
return bResult;
}
OUString lcl_GetSelectedRole( const SvTabListBox & rRoleListBox, bool bUITranslated = false )
{
OUString aResult;
SvTreeListEntry * pEntry = rRoleListBox.FirstSelected();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pEntry )
aResult = OUString( SvTabListBox::GetEntryText( pEntry,
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bUITranslated ? 1 : 0 ));
return aResult;
}
OUString lcl_GetSelectedRolesRange( const SvTabListBox & rRoleListBox )
{
OUString aResult;
SvTreeListEntry * pEntry = rRoleListBox.FirstSelected();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pEntry )
aResult = OUString( SvTabListBox::GetEntryText( pEntry, 2 ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
return aResult;
}
OUString lcl_GetSequenceNameForLabel( ::chart::SeriesEntry * pEntry )
{
OUString aResult( "values-y" );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pEntry &&
pEntry->m_xChartType.is())
{
aResult = pEntry->m_xChartType->getRoleOfSequenceForSeriesLabel();
}
return aResult;
}
static long lcl_pRoleListBoxTabs[] =
{ 3, // Number of Tabs
0, 0, 75
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
};
void lcl_enableRangeChoosing( bool bEnable, Dialog * pDialog )
{
if( pDialog )
{
pDialog->Show( bEnable ? false : true );
pDialog->SetModalInputMode( bEnable ? false : true );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
}
void lcl_addLSequenceToDataSource(
const Reference< chart2::data::XLabeledDataSequence > & xLSequence,
const Reference< chart2::data::XDataSource > & xSource )
{
Reference< data::XDataSink > xSink( xSource, uno::UNO_QUERY );
if( xSink.is())
{
Sequence< Reference< chart2::data::XLabeledDataSequence > > aData( xSource->getDataSequences());
aData.realloc( aData.getLength() + 1 );
aData[ aData.getLength() - 1 ] = xLSequence;
xSink->setData( aData );
}
}
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 )
{
// no values are set but a label exists
if( ! aSequences[i]->getValues().is() &&
aSequences[i]->getLabel().is())
{
xResult.set( aSequences[i] );
break;
}
}
return xResult;
}
} // anonymous namespace
namespace chart
{
DataSourceTabPage::DataSourceTabPage(
vcl::Window * pParent,
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
DialogModel & rDialogModel,
ChartTypeTemplateProvider* pTemplateProvider,
Dialog * pParentDialog,
bool bHideDescription /* = false */ ) :
::svt::OWizardPage( pParent
,"tp_DataSource"
,"modules/schart/ui/tp_DataSource.ui"),
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_pTemplateProvider( pTemplateProvider ),
m_rDialogModel( rDialogModel ),
m_pCurrentRangeChoosingField( 0 ),
m_bIsDirty( false ),
m_pParentDialog( pParentDialog ),
m_pTabPageNotifiable( dynamic_cast< TabPageNotifiable * >( pParentDialog ))
{
get(m_pFT_CAPTION ,"FT_CAPTION_FOR_WIZARD");
get(m_pFT_SERIES ,"FT_SERIES");
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
get(m_pLB_SERIES ,"LB_SERIES");
get(m_pBTN_ADD ,"BTN_ADD");
get(m_pBTN_REMOVE ,"BTN_REMOVE");
get(m_pBTN_UP ,"BTN_UP");
get(m_pBTN_DOWN ,"BTN_DOWN");
get(m_pFT_ROLE ,"FT_ROLE");
get(m_pLB_ROLE ,"LB_ROLE");
get(m_pFT_RANGE ,"FT_RANGE");
get(m_pEDT_RANGE ,"EDT_RANGE");
get(m_pIMB_RANGE_MAIN ,"IMB_RANGE_MAIN");
get(m_pFT_CATEGORIES ,"FT_CATEGORIES");
get(m_pFT_DATALABELS ,"FT_DATALABELS");
get(m_pEDT_CATEGORIES ,"EDT_CATEGORIES");
get(m_pIMB_RANGE_CAT ,"IMB_RANGE_CAT");
m_pFT_CAPTION->Show(!bHideDescription);
m_aFixedTextRange = OUString( m_pFT_RANGE->GetText() );
this->SetText( SCH_RESSTR( STR_OBJECT_DATASERIES_PLURAL ) );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// set handlers
m_pLB_SERIES->SetSelectHdl( LINK( this, DataSourceTabPage, SeriesSelectionChangedHdl ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_pLB_ROLE->SetSelectHdl( LINK( this, DataSourceTabPage, RoleSelectionChangedHdl ));
m_pIMB_RANGE_MAIN->SetClickHdl( LINK( this, DataSourceTabPage, MainRangeButtonClickedHdl ));
m_pIMB_RANGE_CAT->SetClickHdl( LINK( this, DataSourceTabPage, CategoriesRangeButtonClickedHdl ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_pBTN_ADD->SetClickHdl( LINK( this, DataSourceTabPage, AddButtonClickedHdl ));
m_pBTN_REMOVE->SetClickHdl( LINK( this, DataSourceTabPage, RemoveButtonClickedHdl ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_pBTN_UP->SetClickHdl( LINK( this, DataSourceTabPage, UpButtonClickedHdl ));
m_pBTN_DOWN->SetClickHdl( LINK( this, DataSourceTabPage, DownButtonClickedHdl ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_pEDT_RANGE->SetModifyHdl( LINK( this, DataSourceTabPage, RangeModifiedHdl ));
m_pEDT_CATEGORIES->SetModifyHdl( LINK( this, DataSourceTabPage, RangeModifiedHdl ));
m_pEDT_RANGE->SetUpdateDataHdl( LINK( this, DataSourceTabPage, RangeUpdateDataHdl ));
m_pEDT_CATEGORIES->SetUpdateDataHdl( LINK( this, DataSourceTabPage, RangeUpdateDataHdl ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// #i75179# enable setting the background to a different color
m_pEDT_RANGE->SetStyle( m_pEDT_RANGE->GetStyle() | WB_FORCECTRLBACKGROUND );
m_pEDT_CATEGORIES->SetStyle( m_pEDT_CATEGORIES->GetStyle() | WB_FORCECTRLBACKGROUND );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// set symbol font for arrows
// note: StarSymbol is substituted to OpenSymbol for OOo
vcl::Font aSymbolFont( m_pBTN_UP->GetFont());
aSymbolFont.SetName( "StarSymbol" );
m_pBTN_UP->SetControlFont( aSymbolFont );
m_pBTN_DOWN->SetControlFont( aSymbolFont );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// set button text
sal_Unicode cBlackUpPointingTriangle( 0x25b2 );
sal_Unicode cBlackDownPointingTriangle( 0x25bc );
m_pBTN_UP->SetText( OUString( cBlackUpPointingTriangle ));
m_pBTN_DOWN->SetText( OUString( cBlackDownPointingTriangle ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// init controls
m_pLB_ROLE->SetTabs( lcl_pRoleListBoxTabs, MAP_APPFONT );
m_pLB_ROLE->Show();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
updateControlsFromDialogModel();
// select first series
if( m_pLB_SERIES->First())
m_pLB_SERIES->Select( m_pLB_SERIES->First());
m_pLB_SERIES->GrabFocus();
m_pBTN_UP->SetAccessibleName(SCH_RESSTR(STR_BUTTON_UP));
m_pBTN_DOWN->SetAccessibleName(SCH_RESSTR(STR_BUTTON_DOWN));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
DataSourceTabPage::~DataSourceTabPage()
{}
void DataSourceTabPage::ActivatePage()
{
OWizardPage::ActivatePage();
updateControlsFromDialogModel();
}
void DataSourceTabPage::initializePage()
{
}
void DataSourceTabPage::DeactivatePage()
{
commitPage();
svt::OWizardPage::DeactivatePage();
}
void DataSourceTabPage::commitPage()
{
commitPage(::svt::WizardTypes::eFinish);
}
bool DataSourceTabPage::commitPage( ::svt::WizardTypes::CommitPageReason /*eReason*/ )
{
//ranges may have been edited in the meanwhile (dirty is true in that case here)
if( isValid() )
{
updateModelFromControl( 0 /*update all*/ );
return true; //return false if this page should not be left
}
else
return false;
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bool DataSourceTabPage::isRangeFieldContentValid( Edit & rEdit )
{
OUString aRange( rEdit.GetText());
bool bIsValid = ( aRange.isEmpty() ) ||
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_rDialogModel.getRangeSelectionHelper()->verifyCellRange( aRange );
if( bIsValid )
{
rEdit.SetControlForeground();
rEdit.SetControlBackground();
}
else
{
rEdit.SetControlBackground( RANGE_SELECTION_INVALID_RANGE_BACKGROUND_COLOR );
rEdit.SetControlForeground( RANGE_SELECTION_INVALID_RANGE_FOREGROUND_COLOR );
}
return bIsValid;
}
bool DataSourceTabPage::isValid()
{
bool bRoleRangeValid = true;
bool bCategoriesRangeValid = true;
bool bHasSelectedEntry = (m_pLB_SERIES->FirstSelected() != 0);
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( bHasSelectedEntry )
bRoleRangeValid = isRangeFieldContentValid( *m_pEDT_RANGE );
if( m_pEDT_CATEGORIES->IsEnabled() )
bCategoriesRangeValid = isRangeFieldContentValid( *m_pEDT_CATEGORIES );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bool bValid = ( bRoleRangeValid && bCategoriesRangeValid );
if( m_pTabPageNotifiable )
{
if( bValid )
m_pTabPageNotifiable->setValidPage( this );
else
m_pTabPageNotifiable->setInvalidPage( this );
}
return bValid;
}
void DataSourceTabPage::setDirty()
{
m_bIsDirty = true;
}
void DataSourceTabPage::updateControlsFromDialogModel()
{
// series
fillSeriesListBox();
SeriesSelectionChangedHdl( 0 );
// categories
m_pEDT_CATEGORIES->SetText( m_rDialogModel.getCategoriesRange() );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
updateControlState();
}
void DataSourceTabPage::fillSeriesListBox()
{
m_pLB_SERIES->SetUpdateMode( false );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
Reference< XDataSeries > xSelected;
SeriesEntry * pEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->FirstSelected());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pEntry )
xSelected.set( pEntry->m_xDataSeries );
bool bHasSelectedEntry = (pEntry != 0);
SvTreeListEntry * pSelectedEntry = 0;
m_pLB_SERIES->Clear();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
::std::vector< DialogModel::tSeriesWithChartTypeByName > aSeries(
m_rDialogModel.getAllDataSeriesWithLabel() );
sal_Int32 nUnnamedSeriesIndex = 1;
for( ::std::vector< DialogModel::tSeriesWithChartTypeByName >::const_iterator aIt = aSeries.begin();
aIt != aSeries.end(); ++aIt )
{
OUString aLabel( (*aIt).first );
if( aLabel.isEmpty())
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
if( nUnnamedSeriesIndex > 1 )
{
OUString aResString(::chart::SchResId( STR_DATA_UNNAMED_SERIES_WITH_INDEX ).toString());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// replace index of unnamed series
const OUString aReplacementStr( "%NUMBER" );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
sal_Int32 nIndex = aResString.indexOf( aReplacementStr );
if( nIndex != -1 )
aLabel = OUString( aResString.replaceAt(
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
nIndex, aReplacementStr.getLength(),
OUString::number(nUnnamedSeriesIndex)));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
if( aLabel.isEmpty() )
aLabel = ::chart::SchResId( STR_DATA_UNNAMED_SERIES ).toString();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
++nUnnamedSeriesIndex;
}
pEntry = dynamic_cast< SeriesEntry * >(
m_pLB_SERIES->InsertEntry( aLabel ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pEntry )
{
pEntry->m_xDataSeries.set( (*aIt).second.first );
pEntry->m_xChartType.set( (*aIt).second.second );
if( bHasSelectedEntry && ((*aIt).second.first == xSelected))
pSelectedEntry = pEntry;
}
}
if( bHasSelectedEntry && pSelectedEntry )
m_pLB_SERIES->Select( pSelectedEntry );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_pLB_SERIES->SetUpdateMode( true );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
void DataSourceTabPage::fillRoleListBox()
{
SeriesEntry * pSeriesEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->FirstSelected());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bool bHasSelectedEntry = (pSeriesEntry != 0);
SvTreeListEntry * pRoleEntry = m_pLB_ROLE->FirstSelected();
sal_uLong nRoleIndex = SAL_MAX_UINT32;
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pRoleEntry )
nRoleIndex = m_pLB_ROLE->GetModel()->GetAbsPos( pRoleEntry );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( bHasSelectedEntry )
{
DialogModel::tRolesWithRanges aRoles(
DialogModel::getRolesWithRanges(
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
pSeriesEntry->m_xDataSeries,
lcl_GetSequenceNameForLabel( pSeriesEntry ),
pSeriesEntry->m_xChartType ));
// fill role list
m_pLB_ROLE->SetUpdateMode( false );
m_pLB_ROLE->Clear();
m_pLB_ROLE->RemoveSelection();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
for( DialogModel::tRolesWithRanges::const_iterator aIt( aRoles.begin());
aIt != aRoles.end(); ++ aIt )
{
m_pLB_ROLE->InsertEntry( lcl_GetRoleLBEntry( aIt->first, aIt->second ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
// series may contain no roles, check listbox size before selecting entries
if( m_pLB_ROLE->GetEntryCount() > 0 )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
if( nRoleIndex >= m_pLB_ROLE->GetEntryCount())
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
nRoleIndex = 0;
m_pLB_ROLE->Select( m_pLB_ROLE->GetEntry( nRoleIndex ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
m_pLB_ROLE->SetUpdateMode( true );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
}
void DataSourceTabPage::updateControlState()
{
SvTreeListEntry * pSeriesEntry = m_pLB_SERIES->FirstSelected();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bool bHasSelectedSeries = (pSeriesEntry != 0);
bool bHasValidRole = false;
bool bHasRangeChooser = m_rDialogModel.getRangeSelectionHelper()->hasRangeSelection();
if( bHasSelectedSeries )
{
SvTreeListEntry * pRoleEntry = m_pLB_ROLE->FirstSelected();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bHasValidRole = (pRoleEntry != 0);
}
m_pBTN_ADD->Enable( true );
m_pBTN_REMOVE->Enable( bHasSelectedSeries );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_pBTN_UP->Enable( bHasSelectedSeries && (pSeriesEntry != m_pLB_SERIES->First()));
m_pBTN_DOWN->Enable( bHasSelectedSeries && (pSeriesEntry != m_pLB_SERIES->Last()));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bool bHasCategories = m_rDialogModel.isCategoryDiagram();
m_pFT_DATALABELS->Show(!bHasCategories);
m_pFT_CATEGORIES->Show( bHasCategories);
bool bShowIB = bHasRangeChooser;
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_pIMB_RANGE_CAT->Show(bShowIB);
m_pFT_SERIES->Enable();
m_pLB_SERIES->Enable();
m_pFT_ROLE->Enable( bHasSelectedSeries );
m_pLB_ROLE->Enable( bHasSelectedSeries );
m_pFT_RANGE->Enable( bHasValidRole );
m_pEDT_RANGE->Enable( bHasValidRole );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_pIMB_RANGE_MAIN->Show(bShowIB);
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
isValid();
}
IMPL_LINK_NOARG(DataSourceTabPage, SeriesSelectionChangedHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
m_rDialogModel.startControllerLockTimer();
if( m_pLB_SERIES->FirstSelected())
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
fillRoleListBox();
RoleSelectionChangedHdl( 0 );
}
updateControlState();
return 0;
}
IMPL_LINK_NOARG(DataSourceTabPage, RoleSelectionChangedHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
m_rDialogModel.startControllerLockTimer();
SvTreeListEntry * pEntry = m_pLB_ROLE->FirstSelected();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pEntry )
{
OUString aSelectedRoleUI = lcl_GetSelectedRole( *m_pLB_ROLE, true );
OUString aSelectedRange = lcl_GetSelectedRolesRange( *m_pLB_ROLE );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// replace role in fixed text label
const OUString aReplacementStr( "%VALUETYPE" );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
sal_Int32 nIndex = m_aFixedTextRange.indexOf( aReplacementStr );
if( nIndex != -1 )
{
m_pFT_RANGE->SetText(
m_aFixedTextRange.replaceAt(
nIndex, aReplacementStr.getLength(), aSelectedRoleUI ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
m_pEDT_RANGE->SetText( aSelectedRange );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
isValid();
}
return 0;
}
IMPL_LINK_NOARG(DataSourceTabPage, MainRangeButtonClickedHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
OSL_ASSERT( m_pCurrentRangeChoosingField == 0 );
m_pCurrentRangeChoosingField = m_pEDT_RANGE;
if( !m_pEDT_RANGE->GetText().isEmpty() &&
! updateModelFromControl( m_pCurrentRangeChoosingField ))
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
return 0;
SeriesEntry * pEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->FirstSelected());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bool bHasSelectedEntry = (pEntry != 0);
OUString aSelectedRolesRange = lcl_GetSelectedRolesRange( *m_pLB_ROLE );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( bHasSelectedEntry && (m_pLB_ROLE->FirstSelected() != 0))
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
OUString aUIStr(SCH_RESSTR(STR_DATA_SELECT_RANGE_FOR_SERIES));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// replace role
OUString aReplacement( "%VALUETYPE" );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
sal_Int32 nIndex = aUIStr.indexOf( aReplacement );
if( nIndex != -1 )
{
aUIStr = aUIStr.replaceAt( nIndex, aReplacement.getLength(),
lcl_GetSelectedRole( *m_pLB_ROLE, true ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
// replace series name
aReplacement = "%SERIESNAME";
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
nIndex = aUIStr.indexOf( aReplacement );
if( nIndex != -1 )
{
aUIStr = aUIStr.replaceAt( nIndex, aReplacement.getLength(),
OUString( m_pLB_SERIES->GetEntryText( pEntry )));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
lcl_enableRangeChoosing( true, m_pParentDialog );
m_rDialogModel.getRangeSelectionHelper()->chooseRange( aSelectedRolesRange, aUIStr, *this );
}
else
m_pCurrentRangeChoosingField = 0;
return 0;
}
IMPL_LINK_NOARG(DataSourceTabPage, CategoriesRangeButtonClickedHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
OSL_ASSERT( m_pCurrentRangeChoosingField == 0 );
m_pCurrentRangeChoosingField = m_pEDT_CATEGORIES;
if( !m_pEDT_CATEGORIES->GetText().isEmpty() &&
! updateModelFromControl( m_pCurrentRangeChoosingField ))
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
return 0;
OUString aStr( SCH_RESSTR( m_pFT_CATEGORIES->IsVisible() ? STR_DATA_SELECT_RANGE_FOR_CATEGORIES : STR_DATA_SELECT_RANGE_FOR_DATALABELS ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
lcl_enableRangeChoosing( true, m_pParentDialog );
m_rDialogModel.getRangeSelectionHelper()->chooseRange(
m_rDialogModel.getCategoriesRange(), aStr, *this );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
return 0;
}
IMPL_LINK_NOARG(DataSourceTabPage, AddButtonClickedHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
m_rDialogModel.startControllerLockTimer();
SeriesEntry * pEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->FirstSelected());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
Reference< XDataSeries > xSeriesToInsertAfter;
Reference< XChartType > xChartTypeForNewSeries;
if( m_pTemplateProvider )
m_rDialogModel.setTemplate( m_pTemplateProvider->getCurrentTemplate());
if( pEntry )
{
xSeriesToInsertAfter.set( pEntry->m_xDataSeries );
xChartTypeForNewSeries.set( pEntry->m_xChartType );
}
else
{
::std::vector< Reference< XDataSeriesContainer > > aCntVec(
m_rDialogModel.getAllDataSeriesContainers());
if( ! aCntVec.empty())
xChartTypeForNewSeries.set( aCntVec.front(), uno::UNO_QUERY );
}
OSL_ENSURE( xChartTypeForNewSeries.is(), "Cannot insert new series" );
m_rDialogModel.insertSeriesAfter( xSeriesToInsertAfter, xChartTypeForNewSeries );
setDirty();
fillSeriesListBox();
// note the box was cleared and refilled, so pEntry is invalid now
SvTreeListEntry * pSelEntry = m_pLB_SERIES->FirstSelected();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pSelEntry )
{
SvTreeListEntry * pNextEntry = m_pLB_SERIES->Next( pSelEntry );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pNextEntry )
m_pLB_SERIES->Select( pNextEntry );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
SeriesSelectionChangedHdl( 0 );
return 0;
}
IMPL_LINK_NOARG(DataSourceTabPage, RemoveButtonClickedHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
m_rDialogModel.startControllerLockTimer();
SeriesEntry * pEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->FirstSelected());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pEntry )
{
Reference< XDataSeries > xNewSelSeries;
SeriesEntry * pNewSelEntry = dynamic_cast< SeriesEntry * >(m_pLB_SERIES->Next( pEntry ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pNewSelEntry )
xNewSelSeries.set( pNewSelEntry->m_xDataSeries );
else
{
pNewSelEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->Prev( pEntry ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( pNewSelEntry )
xNewSelSeries.set( pNewSelEntry->m_xDataSeries );
}
m_rDialogModel.deleteSeries( pEntry->m_xDataSeries, pEntry->m_xChartType );
setDirty();
m_pLB_SERIES->RemoveSelection();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
fillSeriesListBox();
// select previous or next series
//@improve: see methods GetModel()->GetAbsPos()/GetEntry() for absolute list positions
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( xNewSelSeries.is())
{
pEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->First());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
while( pEntry )
{
if( pEntry->m_xDataSeries == xNewSelSeries )
{
m_pLB_SERIES->Select( pEntry );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
break;
}
pEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->Next( pEntry ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
}
SeriesSelectionChangedHdl( 0 );
}
return 0;
}
IMPL_LINK_NOARG(DataSourceTabPage, UpButtonClickedHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
m_rDialogModel.startControllerLockTimer();
SeriesEntry * pEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->FirstSelected());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bool bHasSelectedEntry = (pEntry != 0);
if( bHasSelectedEntry )
{
m_rDialogModel.moveSeries( pEntry->m_xDataSeries, DialogModel::MOVE_UP );
setDirty();
fillSeriesListBox();
SeriesSelectionChangedHdl(0);
}
return 0;
}
IMPL_LINK_NOARG(DataSourceTabPage, DownButtonClickedHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
m_rDialogModel.startControllerLockTimer();
SeriesEntry * pEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->FirstSelected());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bool bHasSelectedEntry = (pEntry != 0);
if( bHasSelectedEntry )
{
m_rDialogModel.moveSeries( pEntry->m_xDataSeries, DialogModel::MOVE_DOWN );
setDirty();
fillSeriesListBox();
SeriesSelectionChangedHdl(0);
}
return 0;
}
IMPL_LINK( DataSourceTabPage, RangeModifiedHdl, Edit*, pEdit )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
// note: isValid sets the color of the edit field
if( isRangeFieldContentValid( *pEdit ))
{
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
setDirty();
updateModelFromControl( pEdit );
if( pEdit == m_pEDT_RANGE )
{
if( ! lcl_UpdateCurrentSeriesName( *m_pLB_SERIES ))
fillSeriesListBox();
}
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// enable/disable OK button
isValid();
return 0;
}
IMPL_LINK( DataSourceTabPage, RangeUpdateDataHdl, Edit*, pEdit )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
// note: isValid sets the color of the edit field
if( isRangeFieldContentValid( *pEdit ))
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
setDirty();
updateModelFromControl( pEdit );
if( pEdit == m_pEDT_RANGE )
{
if( ! lcl_UpdateCurrentSeriesName( *m_pLB_SERIES ))
fillSeriesListBox();
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
// enable/disable OK button
isValid();
return 0;
}
void DataSourceTabPage::listeningFinished(
const OUString & rNewRange )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
// rNewRange becomes invalid after removing the listener
OUString aRange( rNewRange );
m_rDialogModel.startControllerLockTimer();
// stop listening
m_rDialogModel.getRangeSelectionHelper()->stopRangeListening();
// change edit field
ToTop();
GrabFocus();
if( m_pCurrentRangeChoosingField )
{
m_pCurrentRangeChoosingField->SetText( aRange );
m_pCurrentRangeChoosingField->GrabFocus();
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( m_pCurrentRangeChoosingField == m_pEDT_RANGE )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
m_pEDT_RANGE->SetText( aRange );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
setDirty();
}
else if( m_pCurrentRangeChoosingField == m_pEDT_CATEGORIES )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
m_pEDT_CATEGORIES->SetText( aRange );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
setDirty();
}
updateModelFromControl( m_pCurrentRangeChoosingField );
if( ! lcl_UpdateCurrentSeriesName( *m_pLB_SERIES ))
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
fillSeriesListBox();
m_pCurrentRangeChoosingField = 0;
updateControlState();
lcl_enableRangeChoosing( false, m_pParentDialog );
}
void DataSourceTabPage::disposingRangeSelection()
{
m_rDialogModel.getRangeSelectionHelper()->stopRangeListening( false );
}
bool DataSourceTabPage::updateModelFromControl( Edit * pField )
{
if( !m_bIsDirty )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
return true;
ControllerLockGuardUNO aLockedControllers( m_rDialogModel.getChartModel() );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
// @todo: validity check of field content
bool bResult = true;
bool bAll = (pField == 0);
Reference< data::XDataProvider > xDataProvider( m_rDialogModel.getDataProvider());
if( bAll || (pField == m_pEDT_CATEGORIES) )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
Reference< data::XLabeledDataSequence > xLabeledSeq( m_rDialogModel.getCategories() );
if( xDataProvider.is())
{
OUString aRange( m_pEDT_CATEGORIES->GetText());
if( !aRange.isEmpty())
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
// create or change categories
if( !xLabeledSeq.is())
{
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
xLabeledSeq.set( DataSourceHelper::createLabeledDataSequence( Reference< uno::XComponentContext >(0)));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
m_rDialogModel.setCategories( xLabeledSeq );
}
try
{
xLabeledSeq->setValues( xDataProvider->createDataSequenceByRangeRepresentation( aRange ));
}
catch( const uno::Exception & ex )
{
// should work as validation should have happened before
ASSERT_EXCEPTION( ex );
}
}
else if( xLabeledSeq.is())
{
// clear existing categories
xLabeledSeq.set(0);
m_rDialogModel.setCategories( xLabeledSeq );
}
}
}
SeriesEntry * pSeriesEntry = dynamic_cast< SeriesEntry * >( m_pLB_SERIES->FirstSelected());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
bool bHasSelectedEntry = (pSeriesEntry != 0);
if( bHasSelectedEntry )
{
if( bAll || (pField == m_pEDT_RANGE) )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
try
{
OUString aSelectedRole = lcl_GetSelectedRole( *m_pLB_ROLE );
OUString aRange( m_pEDT_RANGE->GetText());
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
OUString aSequenceRole( aSelectedRole );
bool bIsLabel = (aSequenceRole == lcl_aLabelRole );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
OUString aSequenceNameForLabel( lcl_GetSequenceNameForLabel( pSeriesEntry ));
if( bIsLabel )
aSequenceRole = aSequenceNameForLabel;
Reference< data::XDataSource > xSource( pSeriesEntry->m_xDataSeries, uno::UNO_QUERY_THROW );
Reference< data::XLabeledDataSequence > xLabeledSeq(
DataSeriesHelper::getDataSequenceByRole( xSource, aSequenceRole ));
if( xDataProvider.is())
{
if( bIsLabel )
{
if( ! xLabeledSeq.is())
{
// check if there is already an "orphan" label sequence
xLabeledSeq.set( lcl_findLSequenceWithOnlyLabel( xSource ));
if( ! xLabeledSeq.is())
{
// no corresponding labeled data sequence for label found
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
xLabeledSeq.set( DataSourceHelper::createLabeledDataSequence( Reference< uno::XComponentContext >(0)));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
lcl_addLSequenceToDataSource( xLabeledSeq, xSource );
}
}
if( xLabeledSeq.is())
{
if( !aRange.isEmpty())
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
Reference< data::XDataSequence > xNewSeq;
try
{
xNewSeq.set( xDataProvider->createDataSequenceByRangeRepresentation( aRange ));
}
catch( const uno::Exception & ex )
{
// should work as validation should have happened before
ASSERT_EXCEPTION( ex );
}
if( xNewSeq.is())
{
// update range name by the full string provided
// by the data provider. E.g. "a1" might become
// "$Sheet1.$A$1"
aRange = xNewSeq->getSourceRangeRepresentation();
Reference< beans::XPropertySet > xProp( xNewSeq, uno::UNO_QUERY_THROW );
xProp->setPropertyValue( "Role" , uno::makeAny( lcl_aLabelRole ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
xLabeledSeq->setLabel( xNewSeq );
}
}
else
{
xLabeledSeq->setLabel( Reference< data::XDataSequence >());
}
}
}
else
{
if( !aRange.isEmpty())
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
Reference< data::XDataSequence > xNewSeq;
try
{
xNewSeq.set( xDataProvider->createDataSequenceByRangeRepresentation( aRange ));
}
catch( const uno::Exception & ex )
{
// should work as validation should have happened before
ASSERT_EXCEPTION( ex );
}
if( xNewSeq.is())
{
// update range name by the full string provided
// by the data provider. E.g. "a1:e1" might become
// "$Sheet1.$A$1:$E$1"
aRange = xNewSeq->getSourceRangeRepresentation();
Reference< beans::XPropertySet > xProp( xNewSeq, uno::UNO_QUERY_THROW );
xProp->setPropertyValue( "Role" , uno::makeAny( aSelectedRole ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
if( !xLabeledSeq.is())
{
if( aSelectedRole == aSequenceNameForLabel )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
xLabeledSeq.set( lcl_findLSequenceWithOnlyLabel( xSource ));
if( ! xLabeledSeq.is())
{
CWS-TOOLING: integrate CWS chart37 2009-05-22 09:10:36 +0200 iha r272170 : #i102130# color of pies is not loaded correctly 2009-04-27 17:16:20 +0200 iha r271294 : #i24203# compiler problem 2009-04-27 16:43:21 +0200 iha r271292 : #i101281# missing API documentation for secondary axis title properties 2009-04-27 15:26:05 +0200 hde r271276 : #i100987 2009-04-27 15:24:42 +0200 hde r271273 : #i100987 2009-04-24 15:08:33 +0200 iha r271214 : #i100995# crash with some logarithmic scalings 2009-04-22 18:50:56 +0200 dr r271134 : #i82177# write out deleted point labels 2009-04-22 18:40:48 +0200 iha r271133 : #i101281# missing API documentation for secondary axis title properties 2009-04-22 16:39:42 +0200 dr r271128 : #i82177# extensions for bubble charts 2009-04-22 14:37:00 +0200 dr r271114 : #i82177# import/export data label type and separator 2009-04-22 14:36:24 +0200 dr r271113 : #i82177# import/export data label type and separator 2009-04-21 15:25:26 +0200 dr r271038 : #i82177# import data label type and separator from BIFF8 CHFR records 2009-04-21 14:37:16 +0200 dr r271037 : #i82177# dump BIFF8 chart future records 2009-04-20 17:44:27 +0200 iha r271002 : #i96898# reduce library exports 2009-04-20 13:01:13 +0200 iha r270975 : #i24203# rotate data labels - help ids 2009-04-20 11:40:33 +0200 dr r270969 : #i96600# export of axis scaling/positioning properties 2009-04-16 16:02:31 +0200 dr r270892 : #i69599# keep Y axis left in 3d charts 2009-04-15 18:16:46 +0200 dr r270859 : #i69599# import of axis position settings 2009-04-15 18:16:01 +0200 dr r270858 : #i69599# correct handling of logarithmic crossing axes 2009-04-14 16:27:48 +0200 dr r270794 : #i96599# handle auto axis position on logarithmic axes 2009-04-09 19:59:51 +0200 dr r270722 : #i96599# import axis crossing settings, fix import of logarithmic scaling settings 2009-04-09 18:26:00 +0200 iha r270720 : #i96898# reduce library exports 2009-04-09 15:17:04 +0200 iha r270710 : #i96898# reduce library exports 2009-04-09 10:50:14 +0200 dr r270682 : #i24203# import/export of data label rotation, fixed some other broken stuff too 2009-04-08 16:54:54 +0200 dr r270657 : #i24203# import rotation for data point labels 2009-04-06 18:19:17 +0200 iha r270571 : #i100876# Axis scaling settings dialog wrong after API usage (anys different from double type) 2009-04-06 15:57:05 +0200 iha r270567 : #i100105# #i58585# leftover -> 2009-04-06 15:55:48 +0200 iha r270564 : #i58585# leftover -> 2009-04-02 16:41:07 +0200 iha r270422 : #i99721# remove unused code 2009-04-02 14:29:03 +0200 iha r270407 : #i99721# remove unused code 2009-03-26 10:58:23 +0100 iha r270059 : #i96898# reduce library exports 2009-03-26 10:13:49 +0100 iha r270055 : #i96898# reduce library exports 2009-03-25 09:39:13 +0100 iha r269998 : CWS-TOOLING: rebase CWS chart37 to trunk@269781 (milestone: DEV300:m44) 2009-03-24 17:56:56 +0100 iha r269986 : #i96898# reduce library exports 2009-03-24 16:56:44 +0100 iha r269974 : #i99721# remove unused code 2009-03-24 16:48:48 +0100 iha r269970 : #i89731# remove unused string 2009-03-24 15:44:04 +0100 iha r269961 : remove unused code 2009-03-24 15:22:45 +0100 iha r269959 : remove unused code 2009-03-24 15:17:17 +0100 iha r269957 : remove unused code 2009-03-24 11:14:53 +0100 iha r269923 : #i24203# rotate data labels 2009-03-09 12:10:25 +0100 hde r269076 : #i99300# 2009-03-06 15:56:26 +0100 iha r269011 : #i93953# Source Format for secondary axis without data 2009-02-17 15:59:05 +0100 iha r268177 : avoid warning during build 2009-02-17 15:01:59 +0100 iha r268173 : avoid warning during build 2009-02-13 09:39:03 +0100 ufi r267693 : i96999 2009-02-11 15:12:35 +0100 iha r267604 : removed unused string 2009-02-11 14:00:29 +0100 iha r267600 : #i96999# Corrected wording from 'correlation coefficient' to 'coefficient of determination' 2009-02-11 10:56:45 +0100 iha r267584 : #i89731# typo in resource string 2009-02-11 10:01:29 +0100 iha r267582 : #i89031# compile error on asian windows systems 2009-02-10 16:15:16 +0100 iha r267552 : #i24203# rotate data labels 2009-02-04 18:00:33 +0100 iha r267395 : #i98893# don't export defaults to file 2009-02-04 15:48:15 +0100 iha r267390 : #i92128# asian typography for chart elements 2009-02-04 15:17:41 +0100 iha r267386 : #i92128# asian typography for chart elements 2009-01-30 14:41:10 +0100 iha r267197 : CWS-TOOLING: rebase CWS chart37 to trunk@267171 (milestone: DEV300:m41)
2009-06-04 09:41:18 +00:00
xLabeledSeq.set( DataSourceHelper::createLabeledDataSequence( Reference< uno::XComponentContext >(0)));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
lcl_addLSequenceToDataSource( xLabeledSeq, xSource );
}
}
xLabeledSeq->setValues( xNewSeq );
}
}
}
}
lcl_UpdateCurrentRange( *m_pLB_ROLE, aSelectedRole, aRange );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
bResult = false;
ASSERT_EXCEPTION( ex );
}
}
}
// update View
// @todo remove this when automatic view updates from calc, writer and own data sequences are available
if( bResult )
{
try
{
Reference< util::XModifiable > xModifiable( m_rDialogModel.getChartModel(), uno::UNO_QUERY );
if( xModifiable.is() )
xModifiable->setModified( sal_True );
const DialogModelTimeBasedInfo& rInfo = m_rDialogModel.getTimeBasedInfo();
if(rInfo.bTimeBased)
{
m_rDialogModel.setTimeBasedRange(rInfo.bTimeBased, rInfo.nStart, rInfo.nEnd);
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
}
2011-11-29 02:06:57 +09:00
catch( const uno::Exception & ex )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.56: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/19 15:18:41 bm 1.1.2.55: #i75297# allow empty data series 2007/03/07 13:15:44 bm 1.1.2.54: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/03/02 13:59:44 bm 1.1.2.53: #i75058# catch exceptions when createDataSequenceByRangeRepresentation fails 2007/03/01 13:15:08 bm 1.1.2.52: #i71233# check for validity when other role has been selected 2007/02/27 16:27:59 bm 1.1.2.51: #i71233# disable dialog commit when there are invalid ranges or series with missing mandatory roles 2007/02/27 13:45:31 bm 1.1.2.50: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:44 bm 1.1.2.49: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.48: implement adaptions for different look in wizard and stand-alone source data dialog, according to spec FlexibleSourceRangeSelection 2007/02/08 21:25:35 iha 1.1.2.47: resync m195 -> m202 2007/01/10 10:24:39 bm 1.1.2.46: #i72241# When you enter a label range without corresponding values, a new sequence is created. If the range of the label sequence is changed use this sequemce again instead of creating another sequence. Also: adapt a sloppy input into a correct range string in the role listbox (like a1 -> Sheet1.$A$1) 2006/12/11 17:49:25 bm 1.1.2.45: #i72308# allow to set the label before the values of a series 2006/12/11 17:31:54 bm 1.1.2.44: #i72308# allow to set the label before the values of a series 2006/12/11 16:30:42 bm 1.1.2.43: Unnamed series get an index from the second one on 2006/12/11 14:56:02 bm 1.1.2.42: #i72308# show "Unnamed series" instead of an empty string for series with no label (and no generatable label, e.g. a new series) 2006/12/05 23:46:01 iha 1.1.2.41: #i71675# enable set data label range for xy charts 2006/11/10 21:03:06 iha 1.1.2.40: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/11/02 12:26:17 bm 1.1.2.39: enable range chooser buttons for xy-chart 2006/11/01 15:36:56 iha 1.1.2.38: cleanup resources + changed variable names according to style guide 2006/10/27 14:40:49 bm 1.1.2.37: allow deleting the range for a label but not for values 2006/10/27 12:24:25 bm 1.1.2.36: remove categories when an empty string was entered 2006/10/27 11:26:51 bm 1.1.2.35: allow to add a categories range when there were no categories before 2006/10/25 11:24:11 bm 1.1.2.34: allow setting previously unset sequences, e.g. labels at data series with external data provider 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:32 bm 1.1.2.32: hide range chooser buttons if no range chooser is available (instead of just disabling) 2006/10/09 16:01:49 bm 1.1.2.31: only enable range chooser buttons if a range chooser component is available 2006/06/28 11:18:32 dr 1.1.2.30: clean up tab order of controls 2006/04/22 11:11:17 iha 1.1.2.29: park unused categories in scale with AxisType not being CATEGORY 2006/02/20 14:45:45 iha 1.1.2.28: move SchItemPool from controller to view lib -> ChartItemPool 2005/11/14 17:54:52 iha 1.1.2.27: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/11 18:45:22 iha 1.1.2.26: move only compatible series 2005/11/11 14:41:52 iha 1.1.2.25: replace direct view update call with model->setModified call 2005/11/11 13:55:14 iha 1.1.2.24: guard DataRange Dialog against to many view updates 2005/11/10 09:27:52 dr 1.1.2.23: #i3997# crash when series does not contain any role 2005/10/11 09:20:15 bm 1.1.2.22: license header change 2005/08/29 14:46:56 bm 1.1.2.21: enable live preview again 2005/08/03 16:36:15 bm 1.1.2.20: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/05/09 09:50:56 bm 1.1.2.19: moved parts of API to data namespace 2005/04/19 14:34:40 bm 1.1.2.18: fixing the data source/range chooser dialogs 2005/04/15 14:48:08 bm 1.1.2.17: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.16: implement api redesign 2004/07/05 11:35:41 iha 1.1.2.15: correct update cycle 2004/06/30 16:14:16 bm 1.1.2.14: some fixes 2004/06/29 15:43:54 bm 1.1.2.13: internal strings converted to ressource strings 2004/06/29 12:21:53 bm 1.1.2.12: shared data for range chooser and data source tab pages 2004/06/17 13:05:11 bm 1.1.2.11: some minor preliminary fixes 2004/06/17 10:03:24 bm 1.1.2.10: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/10 11:31:11 iha 1.1.2.9: restore version 1.1.2.7 because hiding leads to more problems on linux 2004/06/09 21:57:29 iha 1.1.2.8: hide dialog instead of disabling 2004/06/08 22:18:10 iha 1.1.2.7: set data to dirty if ranges of sequences changes 2004/06/08 19:27:55 iha 1.1.2.6: changed title 2004/05/27 17:30:42 bm 1.1.2.5: use new getChartTypeForNewSeries method at template when adding series 2004/05/27 15:54:30 iha 1.1.2.4: #i20344# provide charttype template 2004/05/26 13:18:40 bm 1.1.2.3: dialog behaviour improvements 2004/05/25 11:49:01 bm 1.1.2.2: title string changed 2004/05/24 17:37:49 bm 1.1.2.1: Flexible Source Range Dialog became a tab page now
2007-05-22 16:44:53 +00:00
{
ASSERT_EXCEPTION( ex );
}
}
return bResult;
}
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */