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

358 lines
12 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.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
#include "tp_RangeChooser.hxx"
#include "Strings.hrc"
#include "ResId.hxx"
#include "macros.hxx"
#include "DataSourceHelper.hxx"
#include "DiagramHelper.hxx"
#include "ChartTypeTemplateProvider.hxx"
#include "DialogModel.hxx"
#include "RangeSelectionHelper.hxx"
#include <com/sun/star/awt/XTopWindow.hpp>
#include <com/sun/star/embed/EmbedStates.hpp>
#include <com/sun/star/embed/XComponentSupplier.hpp>
namespace
{
void lcl_ShowChooserButton(
PushButton& rChooserButton,
bool bShow)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
{
if( rChooserButton.IsVisible() != bShow )
{
rChooserButton.Show( bShow );
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
}
void lcl_enableRangeChoosing( bool bEnable, Dialog * pDialog )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
{
if( pDialog )
{
pDialog->Show( bEnable ? sal_False : sal_True );
pDialog->SetModalInputMode( bEnable ? sal_False : sal_True );
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
} // anonymous namespace
namespace chart
{
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart2;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
RangeChooserTabPage::RangeChooserTabPage( Window* pParent
, DialogModel & rDialogModel
, ChartTypeTemplateProvider* pTemplateProvider
, Dialog * pParentDialog
, bool bHideDescription /* = false */ )
: OWizardPage( pParent
,"tp_RangeChooser"
,"modules/schart/ui/tp_RangeChooser.ui")
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
, m_nChangingControlCalls(0)
, m_bIsDirty(false)
, m_xDataProvider( 0 )
, m_aLastValidRangeString()
, m_xCurrentChartTypeTemplate(0)
, m_pTemplateProvider(pTemplateProvider)
, m_rDialogModel( rDialogModel )
, m_pParentDialog( pParentDialog )
, m_pTabPageNotifiable( dynamic_cast< TabPageNotifiable * >( pParentDialog ))
{
get(m_pFT_Caption, "FT_CAPTION_FOR_WIZARD");
get(m_pFT_Range, "FT_RANGE");
get(m_pED_Range, "ED_RANGE");
get(m_pIB_Range, "IB_RANGE");
get(m_pRB_Rows, "RB_DATAROWS");
get(m_pRB_Columns, "RB_DATACOLS");
get(m_pCB_FirstRowAsLabel, "CB_FIRST_ROW_ASLABELS");
get(m_pCB_FirstColumnAsLabel, "CB_FIRST_COLUMN_ASLABELS");
get(m_pFTTitle, "STR_PAGE_DATA_RANGE");// OH:remove later with dialog title
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
m_pFT_Caption->Show(!bHideDescription);
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
this->SetText( m_pFTTitle->GetText());// OH:remove later with dialog
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
// set defaults as long as DetectArguments does not work
m_pRB_Columns->Check();
m_pCB_FirstColumnAsLabel->Check();
m_pCB_FirstRowAsLabel->Check();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
// BM: Note, that the range selection is not available, if there is no view.
// This happens for charts having their own embedded spreadsheet. If you
// force to get the range selection here, this would mean when entering this
// page the calc view would be created in this case. So, I enable the
// button here, and in the worst case nothing happens when it is pressed.
// Not nice, but I see no better solution for the moment.
m_pIB_Range->SetClickHdl( LINK( this, RangeChooserTabPage, ChooseRangeHdl ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
// #i75179# enable setting the background to a different color
m_pED_Range->SetStyle( m_pED_Range->GetStyle() | WB_FORCECTRLBACKGROUND );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
m_pED_Range->SetUpdateDataHdl( LINK( this, RangeChooserTabPage, ControlChangedHdl ));
m_pED_Range->SetModifyHdl( LINK( this, RangeChooserTabPage, ControlEditedHdl ));
m_pRB_Rows->SetToggleHdl( LINK( this, RangeChooserTabPage, ControlChangedHdl ) );
m_pCB_FirstRowAsLabel->SetToggleHdl( LINK( this, RangeChooserTabPage, ControlChangedHdl ) );
m_pCB_FirstColumnAsLabel->SetToggleHdl( LINK( this, RangeChooserTabPage, ControlChangedHdl ) );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
}
RangeChooserTabPage::~RangeChooserTabPage()
{
}
void RangeChooserTabPage::ActivatePage()
{
OWizardPage::ActivatePage();
initControlsFromModel();
}
void RangeChooserTabPage::initControlsFromModel()
{
m_nChangingControlCalls++;
if(m_pTemplateProvider)
m_xCurrentChartTypeTemplate = m_pTemplateProvider->getCurrentTemplate();
bool bUseColumns = ! m_pRB_Rows->IsChecked();
bool bFirstCellAsLabel = bUseColumns ? m_pCB_FirstRowAsLabel->IsChecked() : m_pCB_FirstColumnAsLabel->IsChecked();
bool bHasCategories = bUseColumns ? m_pCB_FirstColumnAsLabel->IsChecked() : m_pCB_FirstRowAsLabel->IsChecked();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
bool bIsValid = m_rDialogModel.allArgumentsForRectRangeDetected();
if( bIsValid )
m_rDialogModel.detectArguments(m_aLastValidRangeString, bUseColumns, bFirstCellAsLabel, bHasCategories );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
else
m_aLastValidRangeString = "";
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
m_pED_Range->SetText( m_aLastValidRangeString );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
m_pRB_Rows->Check( !bUseColumns );
m_pRB_Columns->Check( bUseColumns );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
m_pCB_FirstRowAsLabel->Check( m_pRB_Rows->IsChecked()?bHasCategories:bFirstCellAsLabel );
m_pCB_FirstColumnAsLabel->Check( m_pRB_Columns->IsChecked()?bHasCategories:bFirstCellAsLabel );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
isValid();
m_nChangingControlCalls--;
}
void RangeChooserTabPage::DeactivatePage()
{
commitPage();
svt::OWizardPage::DeactivatePage();
}
void RangeChooserTabPage::commitPage()
{
commitPage(::svt::WizardTypes::eFinish);
}
sal_Bool RangeChooserTabPage::commitPage( ::svt::WizardTypes::CommitPageReason /*eReason*/ )
{
//ranges may have been edited in the meanwhile (dirty is true in that case here)
if( isValid() )
{
changeDialogModelAccordingToControls();
return sal_True;//return false if this page should not be left
}
else
return sal_False;
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
void RangeChooserTabPage::changeDialogModelAccordingToControls()
{
if(m_nChangingControlCalls>0)
return;
if( !m_xCurrentChartTypeTemplate.is() )
{
if(m_pTemplateProvider)
m_xCurrentChartTypeTemplate.set( m_pTemplateProvider->getCurrentTemplate());
if( !m_xCurrentChartTypeTemplate.is())
{
OSL_FAIL( "Need a template to change data source" );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
return;
}
}
if( m_bIsDirty )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
{
sal_Bool bFirstCellAsLabel = ( m_pCB_FirstColumnAsLabel->IsChecked() && !m_pRB_Columns->IsChecked() )
|| ( m_pCB_FirstRowAsLabel->IsChecked() && !m_pRB_Rows->IsChecked() );
sal_Bool bHasCategories = ( m_pCB_FirstColumnAsLabel->IsChecked() && m_pRB_Columns->IsChecked() )
|| ( m_pCB_FirstRowAsLabel->IsChecked() && m_pRB_Rows->IsChecked() );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
Sequence< beans::PropertyValue > aArguments(
DataSourceHelper::createArguments(
m_pRB_Columns->IsChecked(), bFirstCellAsLabel, bHasCategories ) );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
// only if range is valid
if( m_aLastValidRangeString.equals(m_pED_Range->GetText()))
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
{
m_rDialogModel.setTemplate( m_xCurrentChartTypeTemplate );
aArguments.realloc( aArguments.getLength() + 1 );
aArguments[aArguments.getLength() - 1] =
beans::PropertyValue( "CellRangeRepresentation" , -1,
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
uno::makeAny( m_aLastValidRangeString ),
beans::PropertyState_DIRECT_VALUE );
m_rDialogModel.setData( aArguments );
m_bIsDirty = false;
}
//@todo warn user that the selected range is not valid
//@todo better: disable OK-Button if range is invalid
}
}
bool RangeChooserTabPage::isValid()
{
OUString aRange( m_pED_Range->GetText());
sal_Bool bFirstCellAsLabel = ( m_pCB_FirstColumnAsLabel->IsChecked() && !m_pRB_Columns->IsChecked() )
|| ( m_pCB_FirstRowAsLabel->IsChecked() && !m_pRB_Rows->IsChecked() );
sal_Bool bHasCategories = ( m_pCB_FirstColumnAsLabel->IsChecked() && m_pRB_Columns->IsChecked() )
|| ( m_pCB_FirstRowAsLabel->IsChecked() && m_pRB_Rows->IsChecked() );
bool bIsValid = ( aRange.isEmpty() ) ||
m_rDialogModel.getRangeSelectionHelper()->verifyArguments(
DataSourceHelper::createArguments(
aRange, Sequence< sal_Int32 >(), m_pRB_Columns->IsChecked(), bFirstCellAsLabel, bHasCategories ));
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
if( bIsValid )
{
m_pED_Range->SetControlForeground();
m_pED_Range->SetControlBackground();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
if( m_pTabPageNotifiable )
m_pTabPageNotifiable->setValidPage( this );
m_aLastValidRangeString = aRange;
}
else
{
m_pED_Range->SetControlBackground( RANGE_SELECTION_INVALID_RANGE_BACKGROUND_COLOR );
m_pED_Range->SetControlForeground( RANGE_SELECTION_INVALID_RANGE_FOREGROUND_COLOR );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
if( m_pTabPageNotifiable )
m_pTabPageNotifiable->setInvalidPage( this );
}
// enable/disable controls
// #i79531# if the range is valid but an action of one of these buttons
// would render it invalid, the button should be disabled
if( bIsValid )
{
bool bDataInColumns = m_pRB_Columns->IsChecked();
bool bIsSwappedRangeValid = m_rDialogModel.getRangeSelectionHelper()->verifyArguments(
DataSourceHelper::createArguments(
aRange, Sequence< sal_Int32 >(), ! bDataInColumns, bHasCategories, bFirstCellAsLabel ));
m_pRB_Rows->Enable( bIsSwappedRangeValid );
m_pRB_Columns->Enable( bIsSwappedRangeValid );
m_pCB_FirstRowAsLabel->Enable(
m_rDialogModel.getRangeSelectionHelper()->verifyArguments(
DataSourceHelper::createArguments(
aRange, Sequence< sal_Int32 >(), m_pRB_Columns->IsChecked(),
bDataInColumns ? ! bFirstCellAsLabel : bFirstCellAsLabel,
bDataInColumns ? bHasCategories : ! bHasCategories )));
m_pCB_FirstColumnAsLabel->Enable(
m_rDialogModel.getRangeSelectionHelper()->verifyArguments(
DataSourceHelper::createArguments(
aRange, Sequence< sal_Int32 >(), m_pRB_Columns->IsChecked(),
bDataInColumns ? bFirstCellAsLabel : ! bFirstCellAsLabel,
bDataInColumns ? ! bHasCategories : bHasCategories )));
}
else
{
m_pRB_Rows->Enable( bIsValid );
m_pRB_Columns->Enable( bIsValid );
m_pCB_FirstRowAsLabel->Enable( bIsValid );
m_pCB_FirstColumnAsLabel->Enable( bIsValid );
}
bool bShowIB = m_rDialogModel.getRangeSelectionHelper()->hasRangeSelection();
lcl_ShowChooserButton( *m_pIB_Range, bShowIB );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
return bIsValid;
}
IMPL_LINK_NOARG(RangeChooserTabPage, ControlEditedHdl)
{
setDirty();
isValid();
return 0;
}
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
IMPL_LINK_NOARG(RangeChooserTabPage, ControlChangedHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
{
setDirty();
if( isValid())
changeDialogModelAccordingToControls();
return 0;
}
IMPL_LINK_NOARG(RangeChooserTabPage, ChooseRangeHdl)
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
{
OUString aRange = m_pED_Range->GetText();
// using assignment for broken gcc 3.3
OUString aTitle = m_pFTTitle->GetText();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
lcl_enableRangeChoosing( true, m_pParentDialog );
m_rDialogModel.getRangeSelectionHelper()->chooseRange( aRange, aTitle, *this );
return 0;
}
void RangeChooserTabPage::listeningFinished( const OUString & rNewRange )
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
{
//user has selected a new range
OUString aRange( rNewRange );
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
m_rDialogModel.startControllerLockTimer();
// stop listening
m_rDialogModel.getRangeSelectionHelper()->stopRangeListening();
//update dialog state
ToTop();
GrabFocus();
m_pED_Range->SetText( aRange );
m_pED_Range->GrabFocus();
INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED 2007/05/18 16:12:16 bm 1.1.2.42: #i74635# ResMgr cleanup ResId -> SchResId 2007/03/07 15:19:17 bm 1.1.2.41: #i75204# set m_aLastValidRangeString correctly in isValid() 2007/03/07 13:15:02 bm 1.1.2.40: #i75179# enable WB_FORCECTRLBACKGROUND bit to allow setting red background of controls 2007/02/27 13:45:31 bm 1.1.2.39: Disable controls and tabs when invalid ranges were entered 2007/02/26 13:10:56 bm 1.1.2.38: use different foreground and background for invalid ranges, like in Firefox. 2007/02/09 12:31:18 bm 1.1.2.37: 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.36: resync m195 -> m202 2006/11/10 21:03:06 iha 1.1.2.35: prevent immidiate redraw in wizard and according dialogs (important for charts with many data) 2006/10/27 14:59:20 iha 1.1.2.34: name consolidation 2006/10/24 11:55:16 bm 1.1.2.33: enable range chooser in Calc 2006/10/09 17:18:33 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/05/29 17:55:17 iha 1.1.2.30: replaced STR_OBJECT_SOURCE_DATA by STR_OBJECT_DATA_RANGE 2006/03/17 13:27:26 bm 1.1.2.29: disable radio-buttons and check-boxes if the range is invalid or complex 2005/11/14 17:55:41 iha 1.1.2.28: don't update model again at end of execute as this was done already - undo is done outside of the dialog 2005/11/14 15:20:37 iha 1.1.2.27: removed superfluous include 2005/11/11 13:56:16 iha 1.1.2.26: remove direct view update call 2005/11/09 12:35:21 bm 1.1.2.25: setDirty only if changes do not come from initControlsFromModel 2005/10/11 09:20:17 bm 1.1.2.24: license header change 2005/09/02 11:43:28 bm 1.1.2.23: initControlsFromModel: checkboxes were set the other way round 2005/05/20 13:31:57 bm 1.1.2.22: string construction with resid problem 2005/05/12 13:56:39 bm 1.1.2.21: API change XDataProvider 2005/04/19 14:34:41 bm 1.1.2.20: fixing the data source/range chooser dialogs 2005/04/15 14:48:09 bm 1.1.2.19: data source and range choose dialog rework 2004/09/15 15:39:01 iha 1.1.2.18: implement api redesign 2004/07/05 11:35:42 iha 1.1.2.17: correct update cycle 2004/06/30 16:14:17 bm 1.1.2.16: some fixes 2004/06/29 12:21:54 bm 1.1.2.15: shared data for range chooser and data source tab pages 2004/06/23 13:03:06 bm 1.1.2.14: change defaults for arguments that are not yet automatically detected 2004/06/17 13:05:11 bm 1.1.2.13: some minor preliminary fixes 2004/06/17 12:46:54 bm 1.1.2.12: oops, checked in a test 2004/06/17 10:03:25 bm 1.1.2.11: data source dialog is a tab dialog now using the same tabpages as the wizard 2004/06/09 18:43:47 iha 1.1.2.10: minor resource changes 2004/06/08 19:28:13 iha 1.1.2.9: changed title 2004/05/27 15:55:21 iha 1.1.2.8: #i20344# provide charttype template; added parameter bDoLiveUpdate 2004/05/26 13:18:40 bm 1.1.2.7: dialog behaviour improvements 2004/05/17 17:33:52 iha 1.1.2.6: provide object naming; resource cleanup 2004/05/10 17:07:42 iha 1.1.2.5: swapped FirstCellAsLabel and HasCategories 2004/05/10 15:42:48 iha 1.1.2.4: catch invalid range exception 2004/05/07 16:36:54 iha 1.1.2.3: #i20344# init controls from model and apply changes from controls to model 2004/05/05 20:57:02 iha 1.1.2.2: #i20344# start getting to work; added FixedLine; added title 2004/04/07 21:25:56 iha 1.1.2.1: i20344 new
2007-05-22 16:47:43 +00:00
setDirty();
if( isValid())
changeDialogModelAccordingToControls();
lcl_enableRangeChoosing( false, m_pParentDialog );
}
void RangeChooserTabPage::disposingRangeSelection()
{
m_rDialogModel.getRangeSelectionHelper()->stopRangeListening( false );
}
void RangeChooserTabPage::setDirty()
{
if( m_nChangingControlCalls == 0 )
m_bIsDirty = true;
}
} //namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */