Files
libreoffice/xmloff/source/chart/SchXMLPlotAreaContext.cxx

2007 lines
84 KiB
C++
Raw Normal View History

2000-09-18 16:07:07 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 16:07:07 +00:00
*
* Copyright 2008 by Sun Microsystems, Inc.
2000-09-18 16:07:07 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 16:07:07 +00:00
*
* $RCSfile: SchXMLPlotAreaContext.cxx,v $
2008-10-01 07:35:04 +00:00
* $Revision: 1.47.38.1 $
2000-09-18 16:07:07 +00:00
*
* This file is part of OpenOffice.org.
2000-09-18 16:07:07 +00:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-09-18 16:07:07 +00:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-09-18 16:07:07 +00:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-09-18 16:07:07 +00:00
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_xmloff.hxx"
2000-09-18 16:07:07 +00:00
#include "SchXMLPlotAreaContext.hxx"
#include "SchXMLImport.hxx"
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
#include "SchXMLSeries2Context.hxx"
#include "SchXMLTools.hxx"
2000-09-18 16:07:07 +00:00
#include <tools/debug.hxx>
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
#ifdef DBG_UTIL
#include <tools/string.hxx>
#endif
2000-09-18 16:07:07 +00:00
#include <comphelper/processfactory.hxx>
2000-09-18 16:07:07 +00:00
#include "xmlnmspe.hxx"
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmlement.hxx>
#include <xmloff/nmspmap.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/prstylei.hxx>
#include <xmloff/xmlstyle.hxx>
2000-12-22 10:57:05 +00:00
#include "xexptran.hxx"
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
#include <cppuhelper/implbase1.hxx>
2008-12-12 12:17:17 +00:00
#include <com/sun/star/awt/Point.hpp>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/chart/ChartAxisLabelPosition.hpp>
#include <com/sun/star/chart/ChartAxisMarkPosition.hpp>
#include <com/sun/star/chart/ChartAxisPosition.hpp>
2000-09-18 16:07:07 +00:00
#include <com/sun/star/chart/XTwoAxisXSupplier.hpp>
#include <com/sun/star/chart/XTwoAxisYSupplier.hpp>
#include <com/sun/star/chart/XAxisZSupplier.hpp>
2008-12-12 12:17:17 +00:00
#include <com/sun/star/chart/XSecondAxisTitleSupplier.hpp>
2000-09-18 16:07:07 +00:00
#include <com/sun/star/chart/ChartDataRowSource.hpp>
2001-01-15 07:58:30 +00:00
#include <com/sun/star/chart/X3DDisplay.hpp>
#include <com/sun/star/chart/XStatisticDisplay.hpp>
2008-12-12 12:17:17 +00:00
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/chart2/XCoordinateSystemContainer.hpp>
#include <com/sun/star/chart2/data/XRangeXMLConversion.hpp>
#include <com/sun/star/chart2/XChartTypeContainer.hpp>
#include <com/sun/star/chart2/XDataSeriesContainer.hpp>
#include <com/sun/star/chart2/AxisType.hpp>
#include <com/sun/star/chart2/RelativePosition.hpp>
2008-12-12 12:17:17 +00:00
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
#include <com/sun/star/drawing/CameraGeometry.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
2008-12-12 12:17:17 +00:00
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/util/XStringMapping.hpp>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
2000-09-18 16:07:07 +00:00
using namespace com::sun::star;
using namespace ::xmloff::token;
2000-09-18 16:07:07 +00:00
using ::rtl::OUString;
2008-12-12 12:17:17 +00:00
using com::sun::star::uno::Reference;
2000-09-18 16:07:07 +00:00
static __FAR_DATA SvXMLEnumMapEntry aXMLAxisClassMap[] =
{
{ XML_X, SCH_XML_AXIS_X },
{ XML_Y, SCH_XML_AXIS_Y },
{ XML_Z, SCH_XML_AXIS_Z },
{ XML_TOKEN_INVALID, 0 }
2000-09-18 16:07:07 +00:00
};
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
namespace
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
struct lcl_AxisHasCategories : public ::std::unary_function< SchXMLAxis, bool >
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
bool operator() ( const SchXMLAxis & rAxis )
{
return rAxis.bHasCategories;
}
};
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
OUString lcl_ConvertRange( const ::rtl::OUString & rRange, const uno::Reference< chart2::XChartDocument > & xDoc )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
OUString aResult = rRange;
uno::Reference< chart2::data::XRangeXMLConversion > xConversion(
SchXMLImportHelper::GetDataProvider( xDoc ), uno::UNO_QUERY );
if( xConversion.is())
aResult = xConversion->convertRangeFromXML( rRange );
return aResult;
}
2008-12-12 12:17:17 +00:00
Reference< chart2::XAxis > lcl_getAxis( const Reference< chart2::XCoordinateSystem > xCooSys, sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex )
{
Reference< chart2::XAxis > xAxis;
try
{
xAxis = xCooSys->getAxisByDimension( nDimensionIndex, nAxisIndex );
}
catch( uno::Exception & )
{
}
return xAxis;
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
} // anonymous namespace
SchXML3DSceneAttributesHelper::SchXML3DSceneAttributesHelper( SvXMLImport& rImporter )
: SdXML3DSceneAttributesHelper( rImporter )
{
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
void SchXML3DSceneAttributesHelper::getCameraDefaultFromDiagram( const uno::Reference< chart::XDiagram >& xDiagram )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
//different defaults for camera geometry necessary to workaround wrong behaviour in old chart
//in future make this version dependent if we have versioning (metastream) for ole objects
try
{
uno::Reference< beans::XPropertySet > xProp( xDiagram, uno::UNO_QUERY );
if( xProp.is() )
{
drawing::CameraGeometry aCamGeo;
xProp->getPropertyValue( ::rtl::OUString::createFromAscii("D3DCameraGeometry")) >>= aCamGeo;
maVRP.setX( aCamGeo.vrp.PositionX );
maVRP.setY( aCamGeo.vrp.PositionY );
maVRP.setZ( aCamGeo.vrp.PositionZ );
maVPN.setX( aCamGeo.vpn.DirectionX );
maVPN.setY( aCamGeo.vpn.DirectionY );
maVPN.setZ( aCamGeo.vpn.DirectionZ );
maVUP.setX( aCamGeo.vup.DirectionX );
maVUP.setY( aCamGeo.vup.DirectionY );
maVUP.setZ( aCamGeo.vup.DirectionZ );
}
}
catch( uno::Exception & rEx )
{
#ifdef DBG_UTIL
String aStr( rEx.Message );
ByteString aBStr( aStr, RTL_TEXTENCODING_ASCII_US );
DBG_ERROR1( "Exception caught for property NumberOfLines: %s", aBStr.GetBuffer());
#else
(void)rEx; // avoid warning for pro build
#endif
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
SchXML3DSceneAttributesHelper::~SchXML3DSceneAttributesHelper()
{
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
SchXMLPlotAreaContext::SchXMLPlotAreaContext(
SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport, const rtl::OUString& rLocalName,
uno::Sequence< chart::ChartSeriesAddress >& rSeriesAddresses,
::rtl::OUString& rCategoriesAddress,
::rtl::OUString& rChartAddress,
sal_Bool & rHasOwnTable,
sal_Bool & rAllRangeAddressesAvailable,
sal_Bool & rColHasLabels,
sal_Bool & rRowHasLabels,
chart::ChartDataRowSource & rDataRowSource,
SeriesDefaultsAndStyles& rSeriesDefaultsAndStyles,
const ::rtl::OUString& aChartTypeServiceName,
tSchXMLLSequencesPerIndex & rLSequencesPerIndex,
const awt::Size & rChartSize ) :
2000-09-18 16:07:07 +00:00
SvXMLImportContext( rImport, XML_NAMESPACE_CHART, rLocalName ),
mrImportHelper( rImpHelper ),
mrSeriesAddresses( rSeriesAddresses ),
mrCategoriesAddress( rCategoriesAddress ),
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mrSeriesDefaultsAndStyles( rSeriesDefaultsAndStyles ),
mnNumOfLinesProp( 0 ),
mnNumOfLinesReadBySeries( 0 ),
mbStockHasVolume( sal_False ),
mnSeries( 0 ),
2001-03-28 10:51:12 +00:00
mnMaxSeriesLength( 0 ),
maSceneImportHelper( rImport ),
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mbHasSize(false),
mbHasPosition(false),
mbPercentStacked(false),
2008-12-12 12:17:17 +00:00
m_bAxisPositionAttributeImported(false),
mrChartAddress( rChartAddress ),
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mrHasOwnTable( rHasOwnTable ),
mrAllRangeAddressesAvailable( rAllRangeAddressesAvailable ),
mrColHasLabels( rColHasLabels ),
mrRowHasLabels( rRowHasLabels ),
mrDataRowSource( rDataRowSource ),
mnFirstFirstDomainIndex( -1 ),
maChartTypeServiceName( aChartTypeServiceName ),
mrLSequencesPerIndex( rLSequencesPerIndex ),
mnCurrentDataIndex( 0 ),
mbGlobalChartTypeUsedBySeries( false ),
maChartSize( rChartSize )
2000-09-18 16:07:07 +00:00
{
// get Diagram
uno::Reference< chart::XChartDocument > xDoc( rImpHelper.GetChartDocument(), uno::UNO_QUERY );
if( xDoc.is())
{
mxDiagram = xDoc->getDiagram();
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mxNewDoc.set( xDoc, uno::UNO_QUERY );
maSceneImportHelper.getCameraDefaultFromDiagram( mxDiagram );
2000-09-18 16:07:07 +00:00
}
DBG_ASSERT( mxDiagram.is(), "Couldn't get XDiagram" );
// turn off all axes initially
uno::Any aFalseBool;
aFalseBool <<= (sal_Bool)(sal_False);
uno::Reference< lang::XServiceInfo > xInfo( mxDiagram, uno::UNO_QUERY );
uno::Reference< beans::XPropertySet > xProp( mxDiagram, uno::UNO_QUERY );
if( xInfo.is() &&
xProp.is())
{
try
{
if( xInfo->supportsService( rtl::OUString::createFromAscii( "com.sun.star.chart.ChartAxisXSupplier" )))
{
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasXAxis" ), aFalseBool );
2000-11-29 12:57:56 +00:00
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasXAxisGrid" ), aFalseBool );
2000-09-18 16:07:07 +00:00
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasXAxisDescription" ), aFalseBool );
}
if( xInfo->supportsService( rtl::OUString::createFromAscii( "com.sun.star.chart.ChartTwoAxisXSupplier" )))
{
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasSecondaryXAxis" ), aFalseBool );
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasSecondaryXAxisDescription" ), aFalseBool );
}
if( xInfo->supportsService( rtl::OUString::createFromAscii( "com.sun.star.chart.ChartAxisYSupplier" )))
{
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasYAxis" ), aFalseBool );
2000-11-29 12:57:56 +00:00
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasYAxisGrid" ), aFalseBool );
2000-09-18 16:07:07 +00:00
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasYAxisDescription" ), aFalseBool );
}
if( xInfo->supportsService( rtl::OUString::createFromAscii( "com.sun.star.chart.ChartTwoAxisYSupplier" )))
{
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasSecondaryYAxis" ), aFalseBool );
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasSecondaryYAxisDescription" ), aFalseBool );
}
if( xInfo->supportsService( rtl::OUString::createFromAscii( "com.sun.star.chart.ChartAxisZSupplier" )))
{
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasZAxis" ), aFalseBool );
xProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasZAxisDescription" ), aFalseBool );
}
uno::Any aAny;
chart::ChartDataRowSource eSource = chart::ChartDataRowSource_COLUMNS;
aAny <<= eSource;
xProp->setPropertyValue( rtl::OUString::createFromAscii( "DataRowSource" ), aAny );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
catch( beans::UnknownPropertyException & )
2000-09-18 16:07:07 +00:00
{
DBG_ERROR( "Property required by service not supported" );
}
}
}
SchXMLPlotAreaContext::~SchXMLPlotAreaContext()
{}
void SchXMLPlotAreaContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
2000-12-22 10:57:05 +00:00
uno::Any aTransMatrixAny;
// initialize size and position
uno::Reference< drawing::XShape > xDiaShape( mxDiagram, uno::UNO_QUERY );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
bool bHasSizeWidth = false;
bool bHasSizeHeight = false;
bool bHasPositionX = false;
bool bHasPositionY = false;
2000-09-18 16:07:07 +00:00
// parse attributes
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
const SvXMLTokenMap& rAttrTokenMap = mrImportHelper.GetPlotAreaAttrTokenMap();
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
uno::Reference< chart2::XChartDocument > xNewDoc( GetImport().GetModel(), uno::UNO_QUERY );
2000-09-18 16:07:07 +00:00
for( sal_Int16 i = 0; i < nAttrCount; i++ )
{
rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
2000-09-18 16:07:07 +00:00
rtl::OUString aLocalName;
rtl::OUString aValue = xAttrList->getValueByIndex( i );
USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
switch( rAttrTokenMap.Get( nPrefix, aLocalName ))
{
case XML_TOK_PA_X:
GetImport().GetMM100UnitConverter().convertMeasure( maPosition.X, aValue );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
bHasPositionX = true;
break;
2000-09-18 16:07:07 +00:00
case XML_TOK_PA_Y:
GetImport().GetMM100UnitConverter().convertMeasure( maPosition.Y, aValue );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
bHasPositionY = true;
break;
2000-09-18 16:07:07 +00:00
case XML_TOK_PA_WIDTH:
GetImport().GetMM100UnitConverter().convertMeasure( maSize.Width, aValue );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
bHasSizeWidth = true;
break;
2000-09-18 16:07:07 +00:00
case XML_TOK_PA_HEIGHT:
GetImport().GetMM100UnitConverter().convertMeasure( maSize.Height, aValue );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
bHasSizeHeight = true;
2000-09-18 16:07:07 +00:00
break;
case XML_TOK_PA_STYLE_NAME:
msAutoStyleName = aValue;
break;
case XML_TOK_PA_CHART_ADDRESS:
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mrChartAddress = lcl_ConvertRange( aValue, xNewDoc );
// indicator for getting data from the outside
mrHasOwnTable = sal_False;
2001-05-17 14:48:47 +00:00
break;
case XML_TOK_PA_DS_HAS_LABELS:
{
if( aValue.equals( ::xmloff::token::GetXMLToken( ::xmloff::token::XML_BOTH )))
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mrColHasLabels = mrRowHasLabels = sal_True;
else if( aValue.equals( ::xmloff::token::GetXMLToken( ::xmloff::token::XML_ROW )))
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mrRowHasLabels = sal_True;
else if( aValue.equals( ::xmloff::token::GetXMLToken( ::xmloff::token::XML_COLUMN )))
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mrColHasLabels = sal_True;
}
break;
case XML_TOK_PA_TRANSFORM:
case XML_TOK_PA_VRP:
case XML_TOK_PA_VPN:
case XML_TOK_PA_VUP:
case XML_TOK_PA_PROJECTION:
case XML_TOK_PA_DISTANCE:
case XML_TOK_PA_FOCAL_LENGTH:
case XML_TOK_PA_SHADOW_SLANT:
case XML_TOK_PA_SHADE_MODE:
case XML_TOK_PA_AMBIENT_COLOR:
case XML_TOK_PA_LIGHTING_MODE:
maSceneImportHelper.processSceneAttribute( nPrefix, aLocalName, aValue );
2000-09-18 16:07:07 +00:00
break;
2000-12-22 10:57:05 +00:00
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mbHasSize = bHasSizeWidth && bHasSizeHeight;
mbHasPosition = bHasPositionX && bHasPositionY;
if( ! mxNewDoc.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
uno::Reference< beans::XPropertySet > xDocProp( mrImportHelper.GetChartDocument(), uno::UNO_QUERY );
if( xDocProp.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
try
{
uno::Any aAny;
aAny <<= (sal_Bool)(mrColHasLabels);
xDocProp->setPropertyValue(
::rtl::OUString::createFromAscii( "DataSourceLabelsInFirstColumn" ),
aAny );
aAny <<= (sal_Bool)(mrRowHasLabels);
xDocProp->setPropertyValue(
::rtl::OUString::createFromAscii( "DataSourceLabelsInFirstRow" ),
aAny );
}
catch( beans::UnknownPropertyException & )
{
DBG_ERRORFILE( "Properties missing" );
}
}
}
2000-12-22 10:57:05 +00:00
// set properties
2000-12-22 10:57:05 +00:00
uno::Reference< beans::XPropertySet > xProp( mxDiagram, uno::UNO_QUERY );
if( msAutoStyleName.getLength())
{
if( xProp.is())
{
const SvXMLStylesContext* pStylesCtxt = mrImportHelper.GetAutoStylesContext();
if( pStylesCtxt )
{
const SvXMLStyleContext* pStyle = pStylesCtxt->FindStyleChildContext(
mrImportHelper.GetChartFamilyID(), msAutoStyleName );
XMLPropStyleContext* pPropStyleContext =
const_cast< XMLPropStyleContext * >(
dynamic_cast< const XMLPropStyleContext * >( pStyle ) );
if( pPropStyleContext )
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
{
pPropStyleContext->FillPropertySet( xProp );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
// get the data row source that was set without having data
xProp->getPropertyValue( ::rtl::OUString::createFromAscii("DataRowSource"))
>>= mrDataRowSource;
//lines on/off
//this old property is not supported fully anymore with the new chart, so we need to get the information a little bit different from similar properties
mrSeriesDefaultsAndStyles.maLinesOnProperty = SchXMLTools::getPropertyFromContext(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Lines")), pPropStyleContext, pStylesCtxt );
2008-10-01 07:35:04 +00:00
//handle automatic position and size
bool bAutoSize = false;
bool bAutoPosition = false;
SchXMLTools::getPropertyFromContext(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AutomaticSize")), pPropStyleContext, pStylesCtxt ) >>= bAutoSize;
SchXMLTools::getPropertyFromContext(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AutomaticPosition")), pPropStyleContext, pStylesCtxt ) >>= bAutoPosition;
mbHasSize = mbHasSize && !bAutoSize;
mbHasPosition = mbHasPosition && !bAutoPosition;
//correct default starting angle for old 3D pies
if( SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_0( GetImport().GetModel() ) )
{
bool bIs3d = false;
if( xProp.is() && ( xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Dim3D"))) >>= bIs3d ) &&
bIs3d )
{
if( maChartTypeServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.PieChartType" ))
|| maChartTypeServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.DonutChartType" )) )
{
::rtl::OUString aPropName( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("StartingAngle")) );
uno::Any aAStartingAngle( SchXMLTools::getPropertyFromContext( aPropName, pPropStyleContext, pStylesCtxt ) );
if( !aAStartingAngle.hasValue() )
xProp->setPropertyValue( aPropName, uno::makeAny(sal_Int32(0)) ) ;
}
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
}
}
}
}
//remember default values for dataseries
if(xProp.is())
try
{
mrSeriesDefaultsAndStyles.maSymbolTypeDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SymbolType")));
mrSeriesDefaultsAndStyles.maDataCaptionDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DataCaption")));
mrSeriesDefaultsAndStyles.maErrorIndicatorDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ErrorIndicator")));
mrSeriesDefaultsAndStyles.maErrorCategoryDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ErrorCategory")));
mrSeriesDefaultsAndStyles.maConstantErrorLowDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ConstantErrorLow")));
mrSeriesDefaultsAndStyles.maConstantErrorHighDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ConstantErrorHigh")));
mrSeriesDefaultsAndStyles.maPercentageErrorDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PercentageError")));
mrSeriesDefaultsAndStyles.maErrorMarginDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ErrorMargin")));
mrSeriesDefaultsAndStyles.maMeanValueDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MeanValue")));
mrSeriesDefaultsAndStyles.maRegressionCurvesDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RegressionCurves")));
bool bStacked = false;
mrSeriesDefaultsAndStyles.maStackedDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Stacked")));
mrSeriesDefaultsAndStyles.maStackedDefault >>= bStacked;
mrSeriesDefaultsAndStyles.maPercentDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Percent")));
mrSeriesDefaultsAndStyles.maPercentDefault >>= mbPercentStacked;
mrSeriesDefaultsAndStyles.maStackedBarsConnectedDefault = xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("StackedBarsConnected")));
// deep
uno::Any aDeepProperty( xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Deep"))));
// #124488# old versions store a 3d area and 3D line deep chart with Deep==false => workaround for this
if( ! (bStacked || mbPercentStacked ))
{
if( SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_3( GetImport().GetModel() ) )
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
{
bool bIs3d = false;
if( ( xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Dim3D"))) >>= bIs3d ) &&
bIs3d )
{
if( maChartTypeServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.AreaChartType" )) ||
maChartTypeServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.LineChartType" )) )
{
aDeepProperty <<= uno::makeAny( true );
}
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
}
mrSeriesDefaultsAndStyles.maDeepDefault = aDeepProperty;
xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NumberOfLines"))) >>= mnNumOfLinesProp;
xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Volume"))) >>= mbStockHasVolume;
}
catch( uno::Exception & rEx )
{
#ifdef DBG_UTIL
String aStr( rEx.Message );
ByteString aBStr( aStr, RTL_TEXTENCODING_ASCII_US );
DBG_ERROR1( "PlotAreaContext:EndElement(): Exception caught: %s", aBStr.GetBuffer());
#else
(void)rEx; // avoid warning for pro build
#endif
}
//
if( mrHasOwnTable && mxNewDoc.is())
{
// we have no complete range => we have own data, so switch the data
// provider to internal. Clone is not necessary, as we don't have any
// data yet.
mxNewDoc->createInternalDataProvider( false /* bCloneExistingData */ );
if( xProp.is() && mrDataRowSource!=chart::ChartDataRowSource_COLUMNS )
xProp->setPropertyValue( rtl::OUString::createFromAscii( "DataRowSource" ), uno::makeAny(mrDataRowSource) );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
SvXMLImportContext* SchXMLPlotAreaContext::CreateChildContext(
USHORT nPrefix,
const rtl::OUString& rLocalName,
const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
SvXMLImportContext* pContext = 0;
const SvXMLTokenMap& rTokenMap = mrImportHelper.GetPlotAreaElemTokenMap();
switch( rTokenMap.Get( nPrefix, rLocalName ))
{
case XML_TOK_PA_AXIS:
{
bool bAddMissingXAxisForNetCharts = false;
bool bAdaptWrongPercentScaleValues = false;
if( SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_3( GetImport().GetModel() ) )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
//correct errors from older versions
// for NetCharts there were no xAxis exported to older files
// so we need to add the x axis here for those old NetChart files
if( maChartTypeServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.NetChartType" )) )
bAddMissingXAxisForNetCharts = true;
//Issue 59288
if( mbPercentStacked )
bAdaptWrongPercentScaleValues = true;
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
2008-12-12 12:17:17 +00:00
bool bAdaptXAxisOrientationForOld2DBarCharts = false;
if( SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_4( GetImport().GetModel() ) )
{
//issue74660
if( maChartTypeServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.ColumnChartType" )) )
bAdaptXAxisOrientationForOld2DBarCharts = true;
}
pContext = new SchXMLAxisContext( mrImportHelper, GetImport(), rLocalName, mxDiagram, maAxes, mrCategoriesAddress,
bAddMissingXAxisForNetCharts, bAdaptWrongPercentScaleValues, bAdaptXAxisOrientationForOld2DBarCharts, m_bAxisPositionAttributeImported );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
break;
case XML_TOK_PA_SERIES:
{
if( mxNewDoc.is())
{
pContext = new SchXMLSeries2Context(
mrImportHelper, GetImport(), rLocalName,
mxNewDoc, maAxes,
mrSeriesDefaultsAndStyles.maSeriesStyleList,
mnSeries, mnMaxSeriesLength,
mnNumOfLinesReadBySeries, mbStockHasVolume,
maFirstFirstDomainAddress,
mnFirstFirstDomainIndex,
mrAllRangeAddressesAvailable,
maChartTypeServiceName,
mrLSequencesPerIndex,
mnCurrentDataIndex,
mbGlobalChartTypeUsedBySeries, maChartSize );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
}
mnSeries++;
}
break;
case XML_TOK_PA_WALL:
pContext = new SchXMLWallFloorContext( mrImportHelper, GetImport(), nPrefix, rLocalName, mxDiagram,
SchXMLWallFloorContext::CONTEXT_TYPE_WALL );
break;
case XML_TOK_PA_FLOOR:
pContext = new SchXMLWallFloorContext( mrImportHelper, GetImport(), nPrefix, rLocalName, mxDiagram,
SchXMLWallFloorContext::CONTEXT_TYPE_FLOOR );
break;
case XML_TOK_PA_LIGHT_SOURCE:
pContext = maSceneImportHelper.create3DLightContext( nPrefix, rLocalName, xAttrList );
break;
// elements for stock charts
case XML_TOK_PA_STOCK_GAIN:
pContext = new SchXMLStockContext( mrImportHelper, GetImport(), nPrefix, rLocalName, mxDiagram,
SchXMLStockContext::CONTEXT_TYPE_GAIN );
break;
case XML_TOK_PA_STOCK_LOSS:
pContext = new SchXMLStockContext( mrImportHelper, GetImport(), nPrefix, rLocalName, mxDiagram,
SchXMLStockContext::CONTEXT_TYPE_LOSS );
break;
case XML_TOK_PA_STOCK_RANGE:
pContext = new SchXMLStockContext( mrImportHelper, GetImport(), nPrefix, rLocalName, mxDiagram,
SchXMLStockContext::CONTEXT_TYPE_RANGE );
break;
default:
pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
return pContext;
}
void SchXMLPlotAreaContext::EndElement()
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
// set categories
if( mrCategoriesAddress.getLength() && mxNewDoc.is())
{
uno::Reference< chart2::data::XDataProvider > xDataProvider(
mrImportHelper.GetDataProvider( mxNewDoc ));
// @todo: correct coordinate system index
sal_Int32 nDimension( 0 );
::std::vector< SchXMLAxis >::const_iterator aIt(
::std::find_if( maAxes.begin(), maAxes.end(), lcl_AxisHasCategories()));
if( aIt != maAxes.end())
nDimension = static_cast< sal_Int32 >( (*aIt).eClass );
SchXMLTools::CreateCategories(
xDataProvider, mxNewDoc, mrCategoriesAddress,
0 /* nCooSysIndex */,
nDimension, &mrLSequencesPerIndex );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
uno::Reference< beans::XPropertySet > xDiaProp( mxDiagram, uno::UNO_QUERY );
if( xDiaProp.is())
2000-12-22 10:57:05 +00:00
{
sal_Bool bIsThreeDim = sal_False;
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
uno::Any aAny = xDiaProp->getPropertyValue( ::rtl::OUString::createFromAscii( "Dim3D" ));
aAny >>= bIsThreeDim;
// set 3d scene attributes
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( bIsThreeDim )
{
// set scene attributes at diagram
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
maSceneImportHelper.setSceneAttributes( xDiaProp );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
// if the property NumberOfLines and the number of series containing
// class="chart:line" as attribute are both different from 0 they must
// be equal
OSL_ASSERT( mnNumOfLinesProp == 0 || mnNumOfLinesReadBySeries == 0 ||
mnNumOfLinesProp == mnNumOfLinesReadBySeries );
// set correct number of lines at series
if( ! mrAllRangeAddressesAvailable &&
mnNumOfLinesReadBySeries == 0 &&
mnNumOfLinesProp > 0 &&
maChartTypeServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.ColumnChartType" )))
{
try
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
xDiaProp->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "NumberOfLines" )),
uno::makeAny( mnNumOfLinesProp ));
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
catch( uno::Exception & rEx )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
#ifdef DBG_UTIL
String aStr( rEx.Message );
ByteString aBStr( aStr, RTL_TEXTENCODING_ASCII_US );
DBG_ERROR1( "Exception caught for property NumberOfLines: %s", aBStr.GetBuffer());
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
#else
(void)rEx; // avoid warning for pro build
#endif
}
}
// #i32366# stock has volume
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( ( 0 == mxDiagram->getDiagramType().reverseCompareToAsciiL(
RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart.StockDiagram" ))) &&
mbStockHasVolume )
{
try
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
xDiaProp->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Volume" )),
uno::makeAny( true ));
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
catch( uno::Exception & rEx )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
#ifdef DBG_UTIL
String aStr( rEx.Message );
ByteString aBStr( aStr, RTL_TEXTENCODING_ASCII_US );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
DBG_ERROR1( "Exception caught for property Volume: %s", aBStr.GetBuffer());
#else
(void)rEx; // avoid warning for pro build
#endif
}
}
2000-09-18 16:07:07 +00:00
}
// set changed size and position after properties (esp. 3d)
uno::Reference< drawing::XShape > xDiaShape( mxDiagram, uno::UNO_QUERY );
if( xDiaShape.is())
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( mbHasSize )
xDiaShape->setSize( maSize );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( mbHasPosition )
xDiaShape->setPosition( maPosition );
}
2008-12-12 12:17:17 +00:00
CorrectAxisPositions();
}
void SchXMLPlotAreaContext::CorrectAxisPositions()
{
::rtl::OUString aODFVersionOfFile( GetImport().GetODFVersion() );
if( ( !aODFVersionOfFile.getLength() || aODFVersionOfFile.equalsAscii("1.0")
|| aODFVersionOfFile.equalsAscii("1.1")
|| ( aODFVersionOfFile.equalsAscii("1.2") && !m_bAxisPositionAttributeImported ) ) )
{
uno::Reference< chart2::XChartDocument > xNewDoc( mrImportHelper.GetChartDocument(), uno::UNO_QUERY );
try
{
Reference< chart2::XCoordinateSystemContainer > xCooSysCnt( xNewDoc->getFirstDiagram(), uno::UNO_QUERY_THROW );
uno::Sequence< Reference< chart2::XCoordinateSystem > > aCooSysSeq( xCooSysCnt->getCoordinateSystems());
if( aCooSysSeq.getLength() )
{
Reference< chart2::XCoordinateSystem > xCooSys( aCooSysSeq[0] );
if( xCooSys.is() )
{
Reference< chart2::XAxis > xMainXAxis = lcl_getAxis( xCooSys, 0, 0 );
Reference< chart2::XAxis > xMainYAxis = lcl_getAxis( xCooSys, 1, 0 );
//Reference< chart2::XAxis > xMajorZAxis = lcl_getAxis( xCooSys, 2, 0 );
Reference< chart2::XAxis > xSecondaryXAxis = lcl_getAxis( xCooSys, 0, 1 );
Reference< chart2::XAxis > xSecondaryYAxis = lcl_getAxis( xCooSys, 1, 1 );
uno::Reference< beans::XPropertySet > xMainXAxisProp( xMainXAxis, uno::UNO_QUERY );
uno::Reference< beans::XPropertySet > xMainYAxisProp( xMainYAxis, uno::UNO_QUERY );
uno::Reference< beans::XPropertySet > xSecondaryXAxisProp( xSecondaryXAxis, uno::UNO_QUERY );
uno::Reference< beans::XPropertySet > xSecondaryYAxisProp( xSecondaryYAxis, uno::UNO_QUERY );
if( xMainXAxisProp.is() && xMainYAxisProp.is() )
{
chart2::ScaleData aMainXScale = xMainXAxis->getScaleData();
if( 0 == maChartTypeServiceName.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.ScatterChartType" ) ) )
{
xMainYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_VALUE) );
double fCrossoverValue = 0.0;
aMainXScale.Origin >>= fCrossoverValue;
xMainYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverValue")
, uno::makeAny( fCrossoverValue ) );
if( aMainXScale.Orientation == chart2::AxisOrientation_REVERSE )
{
xMainYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("LabelPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisLabelPosition_OUTSIDE_END) );
xMainYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("MarkPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisMarkPosition_AT_LABELS) );
if( xSecondaryYAxisProp.is() )
xSecondaryYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_START) );
}
else
{
xMainYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("LabelPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisLabelPosition_OUTSIDE_START) );
xMainYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("MarkPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisMarkPosition_AT_LABELS) );
if( xSecondaryYAxisProp.is() )
xSecondaryYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_END) );
}
}
else
{
if( aMainXScale.Orientation == chart2::AxisOrientation_REVERSE )
{
xMainYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_END) );
if( xSecondaryYAxisProp.is() )
xSecondaryYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_START) );
}
else
{
xMainYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_START) );
if( xSecondaryYAxisProp.is() )
xSecondaryYAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_END) );
}
}
chart2::ScaleData aMainYScale = xMainYAxis->getScaleData();
xMainXAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_VALUE) );
double fCrossoverValue = 0.0;
aMainYScale.Origin >>= fCrossoverValue;
xMainXAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverValue")
, uno::makeAny( fCrossoverValue ) );
if( aMainYScale.Orientation == chart2::AxisOrientation_REVERSE )
{
xMainXAxisProp->setPropertyValue( rtl::OUString::createFromAscii("LabelPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisLabelPosition_OUTSIDE_END) );
xMainXAxisProp->setPropertyValue( rtl::OUString::createFromAscii("MarkPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisMarkPosition_AT_LABELS) );
if( xSecondaryXAxisProp.is() )
xSecondaryXAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_START) );
}
else
{
xMainXAxisProp->setPropertyValue( rtl::OUString::createFromAscii("LabelPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisLabelPosition_OUTSIDE_START) );
xMainXAxisProp->setPropertyValue( rtl::OUString::createFromAscii("MarkPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisMarkPosition_AT_LABELS) );
if( xSecondaryXAxisProp.is() )
xSecondaryXAxisProp->setPropertyValue( rtl::OUString::createFromAscii("CrossoverPosition")
, uno::makeAny( ::com::sun::star::chart::ChartAxisPosition_END) );
}
}
}
}
}
catch( uno::Exception & )
{
}
}
}
2000-09-18 16:07:07 +00:00
// ========================================
SchXMLAxisContext::SchXMLAxisContext( SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport, const rtl::OUString& rLocalName,
uno::Reference< chart::XDiagram > xDiagram,
std::vector< SchXMLAxis >& aAxes,
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
::rtl::OUString & rCategoriesAddress,
bool bAddMissingXAxisForNetCharts,
2008-12-12 12:17:17 +00:00
bool bAdaptWrongPercentScaleValues,
bool bAdaptXAxisOrientationForOld2DBarCharts,
bool& rbAxisPositionAttributeImported ) :
2000-09-18 16:07:07 +00:00
SvXMLImportContext( rImport, XML_NAMESPACE_CHART, rLocalName ),
mrImportHelper( rImpHelper ),
mxDiagram( xDiagram ),
maAxes( aAxes ),
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
mrCategoriesAddress( rCategoriesAddress ),
mbAddMissingXAxisForNetCharts( bAddMissingXAxisForNetCharts ),
2008-12-12 12:17:17 +00:00
mbAdaptWrongPercentScaleValues( bAdaptWrongPercentScaleValues ),
mbAdaptXAxisOrientationForOld2DBarCharts( bAdaptXAxisOrientationForOld2DBarCharts ),
m_rbAxisPositionAttributeImported( rbAxisPositionAttributeImported )
2000-09-18 16:07:07 +00:00
{
}
SchXMLAxisContext::~SchXMLAxisContext()
{}
/* returns a shape for the current axis's title. The property
"Has...AxisTitle" is set to "True" to get the shape
*/
uno::Reference< drawing::XShape > SchXMLAxisContext::getTitleShape()
{
uno::Reference< drawing::XShape > xResult;
uno::Any aTrueBool;
aTrueBool <<= (sal_Bool)(sal_True);
uno::Reference< beans::XPropertySet > xDiaProp( mxDiagram, uno::UNO_QUERY );
switch( maCurrentAxis.eClass )
{
case SCH_XML_AXIS_X:
if( maCurrentAxis.nIndexInCategory == 0 )
{
uno::Reference< chart::XAxisXSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is())
{
if( xDiaProp.is())
xDiaProp->setPropertyValue( rtl::OUString::createFromAscii( "HasXAxisTitle" ), aTrueBool );
xResult = uno::Reference< drawing::XShape >( xSuppl->getXAxisTitle(), uno::UNO_QUERY );
}
}
else
{
uno::Reference< chart::XSecondAxisTitleSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is() )
{
if( xDiaProp.is() )
xDiaProp->setPropertyValue( rtl::OUString::createFromAscii( "HasSecondaryXAxisTitle" ), aTrueBool );
xResult = uno::Reference< drawing::XShape >( xSuppl->getSecondXAxisTitle(), uno::UNO_QUERY );
}
}
break;
case SCH_XML_AXIS_Y:
if( maCurrentAxis.nIndexInCategory == 0 )
{
uno::Reference< chart::XAxisYSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is())
{
if( xDiaProp.is())
xDiaProp->setPropertyValue( rtl::OUString::createFromAscii( "HasYAxisTitle" ), aTrueBool );
xResult = uno::Reference< drawing::XShape >( xSuppl->getYAxisTitle(), uno::UNO_QUERY );
}
}
else
{
uno::Reference< chart::XSecondAxisTitleSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is() )
{
if( xDiaProp.is() )
xDiaProp->setPropertyValue( rtl::OUString::createFromAscii( "HasSecondaryYAxisTitle" ), aTrueBool );
xResult = uno::Reference< drawing::XShape >( xSuppl->getSecondYAxisTitle(), uno::UNO_QUERY );
}
}
break;
case SCH_XML_AXIS_Z:
{
uno::Reference< chart::XAxisZSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is())
{
if( xDiaProp.is())
xDiaProp->setPropertyValue( rtl::OUString::createFromAscii( "HasZAxisTitle" ), aTrueBool );
xResult = uno::Reference< drawing::XShape >( xSuppl->getZAxisTitle(), uno::UNO_QUERY );
}
break;
}
case SCH_XML_AXIS_UNDEF:
DBG_ERROR( "Invalid axis" );
break;
}
return xResult;
}
2000-11-29 12:57:56 +00:00
void SchXMLAxisContext::CreateGrid( ::rtl::OUString sAutoStyleName,
sal_Bool bIsMajor )
{
uno::Reference< chart::XDiagram > xDia = mrImportHelper.GetChartDocument()->getDiagram();
uno::Reference< beans::XPropertySet > xGridProp;
::rtl::OUString sPropertyName;
DBG_ASSERT( xDia.is(), "diagram object is invalid!" );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
uno::Reference< beans::XPropertySet > xDiaProp( xDia, uno::UNO_QUERY );
uno::Any aTrueBool( uno::makeAny( true ));
2000-11-29 12:57:56 +00:00
switch( maCurrentAxis.eClass )
{
case SCH_XML_AXIS_X:
2000-11-29 12:57:56 +00:00
{
uno::Reference< chart::XAxisXSupplier > xSuppl( xDia, uno::UNO_QUERY );
if( xSuppl.is())
{
if( bIsMajor )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( xDiaProp.is())
xDiaProp->setPropertyValue( ::rtl::OUString::createFromAscii("HasXAxisGrid"), aTrueBool );
2000-11-29 12:57:56 +00:00
xGridProp = xSuppl->getXMainGrid();
}
else
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( xDiaProp.is())
xDiaProp->setPropertyValue( ::rtl::OUString::createFromAscii("HasXAxisHelpGrid"), aTrueBool );
2000-11-29 12:57:56 +00:00
xGridProp = xSuppl->getXHelpGrid();
}
}
}
break;
case SCH_XML_AXIS_Y:
2000-11-29 12:57:56 +00:00
{
uno::Reference< chart::XAxisYSupplier > xSuppl( xDia, uno::UNO_QUERY );
if( xSuppl.is())
{
if( bIsMajor )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( xDiaProp.is())
xDiaProp->setPropertyValue( ::rtl::OUString::createFromAscii("HasYAxisGrid"), aTrueBool );
2000-11-29 12:57:56 +00:00
xGridProp = xSuppl->getYMainGrid();
}
else
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( xDiaProp.is())
xDiaProp->setPropertyValue( ::rtl::OUString::createFromAscii("HasYAxisHelpGrid"), aTrueBool );
2000-11-29 12:57:56 +00:00
xGridProp = xSuppl->getYHelpGrid();
}
}
}
break;
case SCH_XML_AXIS_Z:
2000-11-29 12:57:56 +00:00
{
uno::Reference< chart::XAxisZSupplier > xSuppl( xDia, uno::UNO_QUERY );
if( xSuppl.is())
{
if( bIsMajor )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( xDiaProp.is())
xDiaProp->setPropertyValue( ::rtl::OUString::createFromAscii("HasZAxisGrid"), aTrueBool );
2000-11-29 12:57:56 +00:00
xGridProp = xSuppl->getZMainGrid();
}
else
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( xDiaProp.is())
xDiaProp->setPropertyValue( ::rtl::OUString::createFromAscii("HasZAxisHelpGrid"), aTrueBool );
2000-11-29 12:57:56 +00:00
xGridProp = xSuppl->getZHelpGrid();
}
}
}
break;
case SCH_XML_AXIS_UNDEF:
DBG_ERROR( "Invalid axis" );
break;
2000-11-29 12:57:56 +00:00
}
// set properties
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( xGridProp.is())
2000-11-29 12:57:56 +00:00
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
// the line color is black as default, in the model it is a light gray
xGridProp->setPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LineColor" )),
uno::makeAny( COL_BLACK ));
if( sAutoStyleName.getLength())
2000-11-29 12:57:56 +00:00
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
const SvXMLStylesContext* pStylesCtxt = mrImportHelper.GetAutoStylesContext();
if( pStylesCtxt )
{
const SvXMLStyleContext* pStyle = pStylesCtxt->FindStyleChildContext(
mrImportHelper.GetChartFamilyID(), sAutoStyleName );
2000-11-29 12:57:56 +00:00
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( pStyle && pStyle->ISA( XMLPropStyleContext ))
(( XMLPropStyleContext* )pStyle )->FillPropertySet( xGridProp );
}
2000-11-29 12:57:56 +00:00
}
}
}
2000-09-18 16:07:07 +00:00
void SchXMLAxisContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
// parse attributes
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
SchXMLImport& rImport = ( SchXMLImport& )GetImport();
const SvXMLTokenMap& rAttrTokenMap = mrImportHelper.GetAxisAttrTokenMap();
for( sal_Int16 i = 0; i < nAttrCount; i++ )
{
rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
rtl::OUString aLocalName;
rtl::OUString aValue = xAttrList->getValueByIndex( i );
USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
switch( rAttrTokenMap.Get( nPrefix, aLocalName ))
{
case XML_TOK_AXIS_DIMENSION:
2000-09-18 16:07:07 +00:00
{
USHORT nEnumVal;
if( rImport.GetMM100UnitConverter().convertEnum( nEnumVal, aValue, aXMLAxisClassMap ))
maCurrentAxis.eClass = ( SchXMLAxisClass )nEnumVal;
}
break;
case XML_TOK_AXIS_NAME:
maCurrentAxis.aName = aValue;
break;
case XML_TOK_AXIS_STYLE_NAME:
msAutoStyleName = aValue;
break;
}
}
// check for number of axes with same category
maCurrentAxis.nIndexInCategory = 0;
sal_Int32 nNumOfAxes = maAxes.size();
for( sal_Int32 nCurrent = 0; nCurrent < nNumOfAxes; nCurrent++ )
{
if( maAxes[ nCurrent ].eClass == maCurrentAxis.eClass )
maCurrentAxis.nIndexInCategory++;
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
CreateAxis();
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
namespace
{
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
uno::Reference< chart2::XAxis > lcl_getAxis( const uno::Reference< frame::XModel >& xChartModel,
sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex )
{
uno::Reference< chart2::XAxis > xAxis;
try
{
uno::Reference< chart2::XChartDocument > xChart2Document( xChartModel, uno::UNO_QUERY );
if( xChart2Document.is() )
{
uno::Reference< chart2::XDiagram > xDiagram( xChart2Document->getFirstDiagram());
uno::Reference< chart2::XCoordinateSystemContainer > xCooSysCnt( xDiagram, uno::UNO_QUERY_THROW );
uno::Sequence< uno::Reference< chart2::XCoordinateSystem > >
aCooSysSeq( xCooSysCnt->getCoordinateSystems());
sal_Int32 nCooSysIndex = 0;
if( nCooSysIndex < aCooSysSeq.getLength() )
{
uno::Reference< chart2::XCoordinateSystem > xCooSys( aCooSysSeq[nCooSysIndex] );
if( xCooSys.is() && nDimensionIndex < xCooSys->getDimension() )
{
const sal_Int32 nMaxAxisIndex = xCooSys->getMaximumAxisIndexByDimension(nDimensionIndex);
if( nAxisIndex <= nMaxAxisIndex )
xAxis = xCooSys->getAxisByDimension( nDimensionIndex, nAxisIndex );
}
}
}
}
catch( uno::Exception & )
{
DBG_ERROR( "Couldn't get axis" );
}
return xAxis;
}
bool lcl_divideBy100( uno::Any& rDoubleAny )
{
bool bChanged = false;
double fValue=0.0;
if( (rDoubleAny>>=fValue) && (fValue!=0.0) )
{
fValue/=100.0;
rDoubleAny = uno::makeAny(fValue);
bChanged = true;
}
return bChanged;
}
bool lcl_AdaptWrongPercentScaleValues(chart2::ScaleData& rScaleData)
{
bool bChanged = lcl_divideBy100( rScaleData.Minimum );
bChanged = lcl_divideBy100( rScaleData.Maximum ) || bChanged;
bChanged = lcl_divideBy100( rScaleData.Origin ) || bChanged;
bChanged = lcl_divideBy100( rScaleData.IncrementData.Distance ) || bChanged;
return bChanged;
}
}//end anonymous namespace
void SchXMLAxisContext::CreateAxis()
2000-09-18 16:07:07 +00:00
{
// add new Axis to list
maAxes.push_back( maCurrentAxis );
// set axis at chart
uno::Reference< beans::XPropertySet > xDiaProp( mxDiagram, uno::UNO_QUERY );
uno::Reference< beans::XPropertySet > xProp;
uno::Any aTrueBool;
aTrueBool <<= (sal_Bool)(sal_True);
uno::Any aFalseBool;
aFalseBool <<= (sal_Bool)(sal_False);
uno::Reference< frame::XModel > xDoc( mrImportHelper.GetChartDocument(), uno::UNO_QUERY );
2000-09-18 16:07:07 +00:00
switch( maCurrentAxis.eClass )
{
case SCH_XML_AXIS_X:
2000-09-18 16:07:07 +00:00
if( maCurrentAxis.nIndexInCategory == 0 )
{
try
{
xDiaProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasXAxis" ), aTrueBool );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
catch( beans::UnknownPropertyException & )
2000-09-18 16:07:07 +00:00
{
DBG_ERROR( "Couldn't turn on x axis" );
}
uno::Reference< chart::XAxisXSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is())
xProp = xSuppl->getXAxis();
}
else
{
try
{
xDiaProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasSecondaryXAxis" ), aTrueBool );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
catch( beans::UnknownPropertyException & )
2000-09-18 16:07:07 +00:00
{
DBG_ERROR( "Couldn't turn on second x axis" );
}
uno::Reference< chart::XTwoAxisXSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is())
xProp = xSuppl->getSecondaryXAxis();
}
break;
case SCH_XML_AXIS_Y:
2000-09-18 16:07:07 +00:00
if( maCurrentAxis.nIndexInCategory == 0 )
{
try
{
xDiaProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasYAxis" ), aTrueBool );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
catch( beans::UnknownPropertyException & )
2000-09-18 16:07:07 +00:00
{
DBG_ERROR( "Couldn't turn on y axis" );
}
uno::Reference< chart::XAxisYSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is())
xProp = xSuppl->getYAxis();
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( mbAddMissingXAxisForNetCharts )
{
if( xDiaProp.is() )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
try
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
xDiaProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasXAxis" ), uno::makeAny(sal_True) );
}
catch( beans::UnknownPropertyException & )
{
DBG_ERROR( "Couldn't turn on x axis" );
}
2000-09-18 16:07:07 +00:00
}
}
}
else
{
try
{
xDiaProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasSecondaryYAxis" ), aTrueBool );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
catch( beans::UnknownPropertyException & )
2000-09-18 16:07:07 +00:00
{
DBG_ERROR( "Couldn't turn on second y axis" );
}
uno::Reference< chart::XTwoAxisYSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is())
xProp = xSuppl->getSecondaryYAxis();
}
break;
case SCH_XML_AXIS_Z:
2000-09-18 16:07:07 +00:00
{
try
{
xDiaProp->setPropertyValue(
rtl::OUString::createFromAscii( "HasZAxis" ), aTrueBool );
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
catch( beans::UnknownPropertyException & )
2000-09-18 16:07:07 +00:00
{
DBG_ERROR( "Couldn't turn on z axis" );
}
uno::Reference< chart::XAxisZSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is())
xProp = xSuppl->getZAxis();
}
break;
case SCH_XML_AXIS_UNDEF:
// nothing
break;
2000-09-18 16:07:07 +00:00
}
// set properties
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( xProp.is())
2000-09-18 16:07:07 +00:00
{
xProp->setPropertyValue( rtl::OUString::createFromAscii( "DisplayLabels" ), aFalseBool );
// #88077# AutoOrigin 'on' is default
xProp->setPropertyValue( rtl::OUString::createFromAscii( "AutoOrigin" ), aTrueBool );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( msAutoStyleName.getLength())
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
const SvXMLStylesContext* pStylesCtxt = mrImportHelper.GetAutoStylesContext();
if( pStylesCtxt )
{
const SvXMLStyleContext* pStyle = pStylesCtxt->FindStyleChildContext(
mrImportHelper.GetChartFamilyID(), msAutoStyleName );
if( pStyle && pStyle->ISA( XMLPropStyleContext ))
{
2008-12-12 12:17:17 +00:00
// note: SvXMLStyleContext::FillPropertySet is not const
XMLPropStyleContext * pPropStyleContext = const_cast< XMLPropStyleContext * >( dynamic_cast< const XMLPropStyleContext * >( pStyle ));
if( pPropStyleContext )
pPropStyleContext->FillPropertySet( xProp );
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( mbAdaptWrongPercentScaleValues && maCurrentAxis.eClass==SCH_XML_AXIS_Y )
{
//set scale data of added x axis back to default
uno::Reference< chart2::XAxis > xAxis( lcl_getAxis( GetImport().GetModel(),
1 /*nDimensionIndex*/, maCurrentAxis.nIndexInCategory /*nAxisIndex*/ ) );
if( xAxis.is() )
{
chart2::ScaleData aScaleData( xAxis->getScaleData());
if( lcl_AdaptWrongPercentScaleValues(aScaleData) )
xAxis->setScaleData( aScaleData );
}
}
if( mbAddMissingXAxisForNetCharts )
{
//copy style from y axis to added x axis:
uno::Reference< chart::XAxisXSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is() )
{
uno::Reference< beans::XPropertySet > xXAxisProp( xSuppl->getXAxis() );
(( XMLPropStyleContext* )pStyle )->FillPropertySet( xXAxisProp );
}
//set scale data of added x axis back to default
uno::Reference< chart2::XAxis > xAxis( lcl_getAxis( GetImport().GetModel(),
0 /*nDimensionIndex*/, 0 /*nAxisIndex*/ ) );
if( xAxis.is() )
{
chart2::ScaleData aScaleData;
aScaleData.AxisType = chart2::AxisType::CATEGORY;
aScaleData.Orientation = chart2::AxisOrientation_MATHEMATICAL;
xAxis->setScaleData( aScaleData );
}
//set line style of added x axis to invisible
uno::Reference< beans::XPropertySet > xNewAxisProp( xAxis, uno::UNO_QUERY );
if( xNewAxisProp.is() )
{
xNewAxisProp->setPropertyValue( rtl::OUString::createFromAscii("LineStyle")
, uno::makeAny(drawing::LineStyle_NONE));
}
}
2008-12-12 12:17:17 +00:00
if( mbAdaptXAxisOrientationForOld2DBarCharts && maCurrentAxis.eClass == SCH_XML_AXIS_X )
{
bool bIs3DChart = false;
if( xDiaProp.is() && ( xDiaProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Dim3D"))) >>= bIs3DChart )
&& !bIs3DChart )
{
uno::Reference< chart2::XChartDocument > xChart2Document( GetImport().GetModel(), uno::UNO_QUERY );
if( xChart2Document.is() )
{
uno::Reference< chart2::XCoordinateSystemContainer > xCooSysCnt( xChart2Document->getFirstDiagram(), uno::UNO_QUERY );
if( xCooSysCnt.is() )
{
uno::Sequence< uno::Reference< chart2::XCoordinateSystem > > aCooSysSeq( xCooSysCnt->getCoordinateSystems() );
if( aCooSysSeq.getLength() )
{
bool bSwapXandYAxis = false;
uno::Reference< chart2::XCoordinateSystem > xCooSys( aCooSysSeq[0] );
uno::Reference< beans::XPropertySet > xCooSysProp( xCooSys, uno::UNO_QUERY );
if( xCooSysProp.is() && ( xCooSysProp->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SwapXAndYAxis"))) >>= bSwapXandYAxis )
&& bSwapXandYAxis )
{
uno::Reference< chart2::XAxis > xAxis = xCooSys->getAxisByDimension( 0, maCurrentAxis.nIndexInCategory );
if( xAxis.is() )
{
chart2::ScaleData aScaleData = xAxis->getScaleData();
aScaleData.Orientation = chart2::AxisOrientation_REVERSE;
xAxis->setScaleData( aScaleData );
}
}
}
}
}
}
}
m_rbAxisPositionAttributeImported = m_rbAxisPositionAttributeImported || SchXMLTools::getPropertyFromContext(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CrossoverPosition")), pPropStyleContext, pStylesCtxt ).hasValue();
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
}
}
2000-09-18 16:07:07 +00:00
}
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
void SchXMLAxisContext::SetAxisTitle()
{
// add new Axis to list
maAxes.push_back( maCurrentAxis );
// set axis at chart
sal_Bool bHasTitle = ( maCurrentAxis.aTitle.getLength() > 0 );
uno::Reference< frame::XModel > xDoc( mrImportHelper.GetChartDocument(), uno::UNO_QUERY );
switch( maCurrentAxis.eClass )
{
case SCH_XML_AXIS_X:
if( maCurrentAxis.nIndexInCategory == 0 )
{
uno::Reference< chart::XAxisXSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is() &&
bHasTitle )
{
uno::Reference< beans::XPropertySet > xTitleProp( xSuppl->getXAxisTitle(), uno::UNO_QUERY );
if( xTitleProp.is())
{
try
{
uno::Any aAny;
aAny <<= maCurrentAxis.aTitle;
xTitleProp->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "String" )), aAny );
}
catch( beans::UnknownPropertyException & )
{
DBG_ERROR( "Property String for Title not available" );
}
}
}
}
else
{
uno::Reference< chart::XSecondAxisTitleSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is() &&
bHasTitle )
{
uno::Reference< beans::XPropertySet > xTitleProp( xSuppl->getSecondXAxisTitle(), uno::UNO_QUERY );
if( xTitleProp.is())
{
try
{
uno::Any aAny;
aAny <<= maCurrentAxis.aTitle;
xTitleProp->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "String" )), aAny );
}
catch( beans::UnknownPropertyException & )
{
DBG_ERROR( "Property String for Title not available" );
}
}
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
break;
case SCH_XML_AXIS_Y:
if( maCurrentAxis.nIndexInCategory == 0 )
{
uno::Reference< chart::XAxisYSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is() &&
bHasTitle )
{
uno::Reference< beans::XPropertySet > xTitleProp( xSuppl->getYAxisTitle(), uno::UNO_QUERY );
if( xTitleProp.is())
{
try
{
uno::Any aAny;
aAny <<= maCurrentAxis.aTitle;
xTitleProp->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "String" )), aAny );
}
catch( beans::UnknownPropertyException & )
{
DBG_ERROR( "Property String for Title not available" );
}
}
}
}
else
{
uno::Reference< chart::XSecondAxisTitleSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is() &&
bHasTitle )
{
uno::Reference< beans::XPropertySet > xTitleProp( xSuppl->getSecondYAxisTitle(), uno::UNO_QUERY );
if( xTitleProp.is())
{
try
{
uno::Any aAny;
aAny <<= maCurrentAxis.aTitle;
xTitleProp->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "String" )), aAny );
}
catch( beans::UnknownPropertyException & )
{
DBG_ERROR( "Property String for Title not available" );
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
}
}
break;
case SCH_XML_AXIS_Z:
{
uno::Reference< chart::XAxisZSupplier > xSuppl( mxDiagram, uno::UNO_QUERY );
if( xSuppl.is() &&
bHasTitle )
{
uno::Reference< beans::XPropertySet > xTitleProp( xSuppl->getZAxisTitle(), uno::UNO_QUERY );
if( xTitleProp.is())
{
try
{
uno::Any aAny;
aAny <<= maCurrentAxis.aTitle;
xTitleProp->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "String" )), aAny );
}
catch( beans::UnknownPropertyException & )
{
DBG_ERROR( "Property String for Title not available" );
}
}
}
}
break;
case SCH_XML_AXIS_UNDEF:
// nothing
break;
}
}
2000-09-18 16:07:07 +00:00
SvXMLImportContext* SchXMLAxisContext::CreateChildContext(
USHORT p_nPrefix,
2000-09-18 16:07:07 +00:00
const rtl::OUString& rLocalName,
const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
SvXMLImportContext* pContext = 0;
const SvXMLTokenMap& rTokenMap = mrImportHelper.GetAxisElemTokenMap();
2000-09-18 16:07:07 +00:00
switch( rTokenMap.Get( p_nPrefix, rLocalName ))
2000-09-18 16:07:07 +00:00
{
case XML_TOK_AXIS_TITLE:
2000-09-18 16:07:07 +00:00
{
uno::Reference< drawing::XShape > xTitleShape = getTitleShape();
pContext = new SchXMLTitleContext( mrImportHelper, GetImport(), rLocalName,
maCurrentAxis.aTitle,
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
xTitleShape );
2000-09-18 16:07:07 +00:00
}
break;
case XML_TOK_AXIS_CATEGORIES:
pContext = new SchXMLCategoriesDomainContext( mrImportHelper, GetImport(),
p_nPrefix, rLocalName,
mrCategoriesAddress );
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
maCurrentAxis.bHasCategories = true;
break;
case XML_TOK_AXIS_GRID:
2000-09-18 16:07:07 +00:00
{
2000-11-29 12:57:56 +00:00
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
sal_Bool bIsMajor = sal_True; // default value for class is "major"
rtl::OUString sAutoStyleName;
for( sal_Int16 i = 0; i < nAttrCount; i++ )
{
rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
rtl::OUString aLocalName;
USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
if( nPrefix == XML_NAMESPACE_CHART )
{
if( IsXMLToken( aLocalName, XML_CLASS ) )
2000-11-29 12:57:56 +00:00
{
if( IsXMLToken( xAttrList->getValueByIndex( i ), XML_MINOR ) )
2000-11-29 12:57:56 +00:00
bIsMajor = sal_False;
}
else if( IsXMLToken( aLocalName, XML_STYLE_NAME ) )
2000-11-29 12:57:56 +00:00
sAutoStyleName = xAttrList->getValueByIndex( i );
}
}
CreateGrid( sAutoStyleName, bIsMajor );
// don't create a context => use default context. grid elements are empty
pContext = new SvXMLImportContext( GetImport(), p_nPrefix, rLocalName );
2000-09-18 16:07:07 +00:00
}
break;
2000-09-18 16:07:07 +00:00
default:
pContext = new SvXMLImportContext( GetImport(), p_nPrefix, rLocalName );
break;
}
2000-09-18 16:07:07 +00:00
return pContext;
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
void SchXMLAxisContext::EndElement()
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
SetAxisTitle();
2000-09-18 16:07:07 +00:00
}
// ========================================
SchXMLDataPointContext::SchXMLDataPointContext( SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport, const rtl::OUString& rLocalName,
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
::std::list< DataRowPointStyle >& rStyleList,
const ::com::sun::star::uno::Reference<
::com::sun::star::chart2::XDataSeries >& xSeries,
sal_Int32& rIndex,
bool bSymbolSizeForSeriesIsMissingInFile ) :
2000-09-18 16:07:07 +00:00
SvXMLImportContext( rImport, XML_NAMESPACE_CHART, rLocalName ),
mrImportHelper( rImpHelper ),
mrStyleList( rStyleList ),
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
m_xSeries( xSeries ),
mrIndex( rIndex ),
mbSymbolSizeForSeriesIsMissingInFile( bSymbolSizeForSeriesIsMissingInFile )
2000-09-18 16:07:07 +00:00
{
}
SchXMLDataPointContext::~SchXMLDataPointContext()
{
}
void SchXMLDataPointContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
::rtl::OUString aValue;
::rtl::OUString sAutoStyleName;
sal_Int32 nRepeat = 1;
2000-09-18 16:07:07 +00:00
for( sal_Int16 i = 0; i < nAttrCount; i++ )
{
rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
rtl::OUString aLocalName;
USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
if( nPrefix == XML_NAMESPACE_CHART )
{
if( IsXMLToken( aLocalName, XML_STYLE_NAME ) )
sAutoStyleName = xAttrList->getValueByIndex( i );
else if( IsXMLToken( aLocalName, XML_REPEATED ) )
nRepeat = xAttrList->getValueByIndex( i ).toInt32();
2000-09-18 16:07:07 +00:00
}
}
if( sAutoStyleName.getLength())
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
DataRowPointStyle aStyle(
DataRowPointStyle::DATA_POINT,
m_xSeries, mrIndex, nRepeat, sAutoStyleName );
aStyle.mbSymbolSizeForSeriesIsMissingInFile = mbSymbolSizeForSeriesIsMissingInFile;
mrStyleList.push_back( aStyle );
2000-09-18 16:07:07 +00:00
}
mrIndex += nRepeat;
2000-09-18 16:07:07 +00:00
}
// ========================================
SchXMLCategoriesDomainContext::SchXMLCategoriesDomainContext(
SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
rtl::OUString& rAddress ) :
SvXMLImportContext( rImport, nPrefix, rLocalName ),
mrImportHelper( rImpHelper ),
mrAddress( rAddress )
{
}
SchXMLCategoriesDomainContext::~SchXMLCategoriesDomainContext()
{
}
void SchXMLCategoriesDomainContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
for( sal_Int16 i = 0; i < nAttrCount; i++ )
{
rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
rtl::OUString aLocalName;
USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
if( nPrefix == XML_NAMESPACE_TABLE &&
IsXMLToken( aLocalName, XML_CELL_RANGE_ADDRESS ) )
2000-09-18 16:07:07 +00:00
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
uno::Reference< chart2::XChartDocument > xNewDoc( GetImport().GetModel(), uno::UNO_QUERY );
mrAddress = xAttrList->getValueByIndex( i );
// lcl_ConvertRange( xAttrList->getValueByIndex( i ), xNewDoc );
2000-09-18 16:07:07 +00:00
}
}
}
2001-01-15 07:58:30 +00:00
// ========================================
SchXMLWallFloorContext::SchXMLWallFloorContext(
SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
uno::Reference< chart::XDiagram >& xDiagram,
ContextType eContextType ) :
SvXMLImportContext( rImport, nPrefix, rLocalName ),
mrImportHelper( rImpHelper ),
mxWallFloorSupplier( xDiagram, uno::UNO_QUERY ),
meContextType( eContextType )
{
}
SchXMLWallFloorContext::~SchXMLWallFloorContext()
{
}
void SchXMLWallFloorContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
if( mxWallFloorSupplier.is())
{
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
rtl::OUString sAutoStyleName;
for( sal_Int16 i = 0; i < nAttrCount; i++ )
{
rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
rtl::OUString aLocalName;
USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
if( nPrefix == XML_NAMESPACE_CHART &&
IsXMLToken( aLocalName, XML_STYLE_NAME ) )
2001-01-15 07:58:30 +00:00
{
sAutoStyleName = xAttrList->getValueByIndex( i );
}
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
// set properties
uno::Reference< beans::XPropertySet > xProp( ( meContextType == CONTEXT_TYPE_WALL )
? mxWallFloorSupplier->getWall()
: mxWallFloorSupplier->getFloor(),
uno::UNO_QUERY );
if( xProp.is())
2001-01-15 07:58:30 +00:00
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
if( sAutoStyleName.getLength())
2001-01-15 07:58:30 +00:00
{
const SvXMLStylesContext* pStylesCtxt = mrImportHelper.GetAutoStylesContext();
if( pStylesCtxt )
{
const SvXMLStyleContext* pStyle = pStylesCtxt->FindStyleChildContext(
mrImportHelper.GetChartFamilyID(), sAutoStyleName );
if( pStyle && pStyle->ISA( XMLPropStyleContext ))
(( XMLPropStyleContext* )pStyle )->FillPropertySet( xProp );
}
}
}
}
}
// ========================================
SchXMLStockContext::SchXMLStockContext(
SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
uno::Reference< chart::XDiagram >& xDiagram,
ContextType eContextType ) :
SvXMLImportContext( rImport, nPrefix, rLocalName ),
mrImportHelper( rImpHelper ),
mxStockPropProvider( xDiagram, uno::UNO_QUERY ),
meContextType( eContextType )
{
}
SchXMLStockContext::~SchXMLStockContext()
{
}
void SchXMLStockContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
if( mxStockPropProvider.is())
{
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
rtl::OUString sAutoStyleName;
for( sal_Int16 i = 0; i < nAttrCount; i++ )
{
rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
rtl::OUString aLocalName;
USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
if( nPrefix == XML_NAMESPACE_CHART &&
IsXMLToken( aLocalName, XML_STYLE_NAME ) )
{
sAutoStyleName = xAttrList->getValueByIndex( i );
}
}
if( sAutoStyleName.getLength())
{
// set properties
uno::Reference< beans::XPropertySet > xProp;
switch( meContextType )
{
case CONTEXT_TYPE_GAIN:
xProp = mxStockPropProvider->getUpBar();
break;
case CONTEXT_TYPE_LOSS:
xProp = mxStockPropProvider->getDownBar();
break;
case CONTEXT_TYPE_RANGE:
xProp = mxStockPropProvider->getMinMaxLine();
break;
}
if( xProp.is())
{
const SvXMLStylesContext* pStylesCtxt = mrImportHelper.GetAutoStylesContext();
if( pStylesCtxt )
{
const SvXMLStyleContext* pStyle = pStylesCtxt->FindStyleChildContext(
mrImportHelper.GetChartFamilyID(), sAutoStyleName );
if( pStyle && pStyle->ISA( XMLPropStyleContext ))
(( XMLPropStyleContext* )pStyle )->FillPropertySet( xProp );
}
}
}
}
}
// ========================================
SchXMLStatisticsObjectContext::SchXMLStatisticsObjectContext(
SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
::std::list< DataRowPointStyle >& rStyleList,
const ::com::sun::star::uno::Reference<
::com::sun::star::chart2::XDataSeries >& xSeries,
ContextType eContextType,
const awt::Size & rChartSize ) :
SvXMLImportContext( rImport, nPrefix, rLocalName ),
mrImportHelper( rImpHelper ),
mrStyleList( rStyleList ),
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
m_xSeries( xSeries ),
meContextType( eContextType ),
maChartSize( rChartSize )
{}
SchXMLStatisticsObjectContext::~SchXMLStatisticsObjectContext()
{
}
void SchXMLStatisticsObjectContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
::rtl::OUString aValue;
::rtl::OUString sAutoStyleName;
for( sal_Int16 i = 0; i < nAttrCount; i++ )
{
rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
rtl::OUString aLocalName;
USHORT nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
if( nPrefix == XML_NAMESPACE_CHART )
{
if( IsXMLToken( aLocalName, XML_STYLE_NAME ) )
sAutoStyleName = xAttrList->getValueByIndex( i );
}
}
// note: regression-curves must get a style-object even if there is no
// auto-style set, because they can contain an equation
if( sAutoStyleName.getLength() || meContextType == CONTEXT_TYPE_REGRESSION_CURVE )
{
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
DataRowPointStyle::StyleType eType = DataRowPointStyle::MEAN_VALUE;
switch( meContextType )
{
case CONTEXT_TYPE_MEAN_VALUE_LINE:
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
eType = DataRowPointStyle::MEAN_VALUE;
break;
case CONTEXT_TYPE_REGRESSION_CURVE:
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
eType = DataRowPointStyle::REGRESSION;
break;
case CONTEXT_TYPE_ERROR_INDICATOR:
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
eType = DataRowPointStyle::ERROR_INDICATOR;
break;
}
INTEGRATION: CWS chart2mst3 (1.29.28); FILE MERGED 2007/04/19 09:51:09 bm 1.29.28.63: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.29.28.62: do not need table-number-list on import 2007/01/19 18:03:22 iha 1.29.28.61: remove unneccessary dependency on special build id - detection for existence is sufficient here 2006/12/12 19:03:06 bm 1.29.28.60: switch to internal data provider as early as possible. This is determined by the complete range string in the plot-area 2006/12/12 16:55:11 bm 1.29.28.59: own data with no categories element: apply categories in applyTable() 2006/12/06 18:50:46 bm 1.29.28.58: #i64497# allow import and export to deal with flexible source ranges also with own data. This is needed for the clipboard between Calc and Impress 2006/12/01 11:48:58 bm 1.29.28.57: include for tools-string added when DBG_UTIL is set 2006/11/30 15:37:13 iha 1.29.28.56: #59288# correct save and load of axis scale values for percent stacked charts 2006/11/25 21:59:36 bm 1.29.28.55: basegfx::B3DVector method changes 2006/11/24 21:25:22 bm 1.29.28.54: RESYNC: (1.36-1.37); FILE MERGED 2006/11/14 19:25:37 iha 1.29.28.53: #i71330# xy 'symbols only' get lines when loading older versions 2006/10/25 15:53:13 iha 1.29.28.52: invisible line for x axis of net charts when importing from old files 2006/10/20 09:50:40 bm 1.29.28.51: warnings removed 2006/10/19 16:21:36 bm 1.29.28.50: warnings removed 2006/10/19 09:59:39 bm 1.29.28.49: RESYNC: (1.34-1.36); FILE MERGED 2006/10/10 15:11:52 iha 1.29.28.48: loaded 3D lines aren't stacked deep 2006/10/09 13:26:07 iha 1.29.28.47: default scale for added x axis for net charts 2006/09/20 15:57:27 bm 1.29.28.46: #i69680# Wall and floor have no defaults. They are always exported in the old and the new chart. (The wall defaults in the old chart were chart type dependent). So set no hard attribute for wall here, as it will be overwritten. 2006/08/16 14:54:24 iha 1.29.28.45: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:03 iha 1.29.28.44: removed unused DomainOffset 2006/06/09 16:31:13 iha 1.29.28.43: worked around wrong camera default in old chart for compatibility 2006/05/18 11:53:32 bm 1.29.28.42: #i65524# floor as default fill style of SOLID. Apply defaults also when there is no auto-style 2006/05/18 11:45:08 bm 1.29.28.41: set grid-lines to black as default, because that is the default in the old API, and therefore in old (as well as new) files 2006/05/02 14:38:30 bm 1.29.28.40: #125497# set the fill-style to NONE, as this is the default in the filter, but isn't in the model 2006/04/22 10:55:54 iha 1.29.28.39: park unused categories in scale with AxisType not being CATEGORY 2006/04/10 12:37:45 iha 1.29.28.38: api restructure axis, grids, scales and increments 2005/12/21 21:34:23 iha 1.29.28.37: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/28 15:20:32 bm 1.29.28.36: implemented StackedBarsConnected property at Diagram 2005/11/08 17:48:12 bm 1.29.28.35: catch IllegalArgumentException when calling XDataProvider::createDataSequenceByRangeRepresentation 2005/11/01 12:53:25 iha 1.29.28.34: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/29 20:51:55 iha 1.29.28.33: coordinate system restructure 2005/10/24 10:46:34 iha 1.29.28.32: coordinate system restructure 2005/10/13 17:37:23 iha 1.29.28.31: renamed BoundedCoordinateSystem to CoordinateSystem 2005/10/09 08:06:49 bm 1.29.28.30: RESYNC: (1.33-1.34); FILE MERGED 2005/09/16 16:20:47 iha 1.29.28.29: no creation of dummy categories in model - instead trigger generation of missing labels and categories in view 2005/08/30 16:47:38 iha 1.29.28.28: lock controllers only once starting the import and unlock after all was imported -> necessary to get no update notifications during import of binary files 2005/08/30 16:16:56 bm 1.29.28.27: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/08/19 16:10:23 bm 1.29.28.26: chart2::XChartDocument: getDiagram -> getFirstDiagram 2005/07/25 13:42:50 bm 1.29.28.25: RESYNC: (1.32-1.33); FILE MERGED 2005/07/22 11:01:23 bm 1.29.28.24: #124488# workaround for 3d area deep charts that have Deep==false in files saved with older versions 2005/07/19 17:01:24 bm 1.29.28.23: order of methods changed: 1. StartElement, 2. CreateChildContext, 3. EndElement to ease browsing 2005/07/19 09:30:51 iha 1.29.28.22: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.29.28.21: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/07/15 21:00:16 iha 1.29.28.20: change from series index to series identifier 2005/07/14 08:42:18 bm 1.29.28.19: enable grid before applying grid properties 2005/07/06 11:10:06 bm 1.29.28.18: convert chart range from XML to data provider format 2005/07/06 09:22:10 bm 1.29.28.17: range conversion in import is FromXML 2005/07/06 09:19:43 bm 1.29.28.16: XML conversion was done twice for categories 2005/07/06 09:17:18 bm 1.29.28.15: use XML range conversion of data provider 2005/07/04 16:01:10 bm 1.29.28.14: use two member for number of lines: the property at the plot-area and the number of series that have a line class. This way we can deal with both variants. Set categories before properties that use template detection 2005/07/01 16:18:52 bm 1.29.28.13: remove empty chart type groups 2005/06/30 14:24:11 bm 1.29.28.12: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.29.28.11: stock chart 2005/06/23 14:44:50 iha 1.29.28.10: correct support for statistic properties 2005/06/22 08:18:47 iha 1.29.28.9: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:19:42 iha 1.29.28.8: set series and point properties after data is available 2005/06/21 12:55:44 iha 1.29.28.7: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.29.28.6: using new API for im-/export of data 2005/04/19 17:52:59 iha 1.29.28.5: remove unsued property listener for Stacked and Percent 2005/03/17 11:21:34 bm 1.29.28.4: RESYNC: (1.31-1.32); FILE MERGED 2004/09/20 17:23:02 bm 1.29.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:12:52 bm 1.29.28.2: RESYNC: (1.29-1.31); FILE MERGED 2004/08/25 16:05:59 iha 1.29.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:39 +00:00
DataRowPointStyle aStyle(
eType, m_xSeries, -1, 1, sAutoStyleName );
mrStyleList.push_back( aStyle );
}
}
SvXMLImportContext* SchXMLStatisticsObjectContext::CreateChildContext(
USHORT nPrefix,
const rtl::OUString& rLocalName,
const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
SvXMLImportContext* pContext = 0;
if( nPrefix == XML_NAMESPACE_CHART &&
IsXMLToken( rLocalName, XML_EQUATION ) )
{
pContext = new SchXMLEquationContext(
mrImportHelper, GetImport(), nPrefix, rLocalName, m_xSeries, maChartSize, mrStyleList.back());
}
else
{
pContext = SvXMLImportContext::CreateChildContext( nPrefix, rLocalName, xAttrList );
}
return pContext;
}
// ========================================
SchXMLEquationContext::SchXMLEquationContext(
SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
const ::com::sun::star::uno::Reference<
::com::sun::star::chart2::XDataSeries >& xSeries,
const awt::Size & rChartSize,
DataRowPointStyle & rRegressionStyle ) :
SvXMLImportContext( rImport, nPrefix, rLocalName ),
mrImportHelper( rImpHelper ),
mrRegressionStyle( rRegressionStyle ),
m_xSeries( xSeries ),
maChartSize( rChartSize )
{}
SchXMLEquationContext::~SchXMLEquationContext()
{}
void SchXMLEquationContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& xAttrList )
{
// parse attributes
sal_Int16 nAttrCount = xAttrList.is()? xAttrList->getLength(): 0;
SchXMLImport& rImport = ( SchXMLImport& )GetImport();
const SvXMLTokenMap& rAttrTokenMap = mrImportHelper.GetRegEquationAttrTokenMap();
OUString sAutoStyleName;
sal_Bool bShowEquation = sal_True;
sal_Bool bShowRSquare = sal_False;
awt::Point aPosition;
bool bHasXPos = false;
bool bHasYPos = false;
for( sal_Int16 i = 0; i < nAttrCount; i++ )
{
rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
rtl::OUString aLocalName;
rtl::OUString aValue = xAttrList->getValueByIndex( i );
USHORT nPrefix = rImport.GetNamespaceMap().GetKeyByAttrName( sAttrName, &aLocalName );
switch( rAttrTokenMap.Get( nPrefix, aLocalName ))
{
case XML_TOK_REGEQ_POS_X:
rImport.GetMM100UnitConverter().convertMeasure( aPosition.X, aValue );
bHasXPos = true;
break;
case XML_TOK_REGEQ_POS_Y:
rImport.GetMM100UnitConverter().convertMeasure( aPosition.Y, aValue );
bHasYPos = true;
break;
case XML_TOK_REGEQ_DISPLAY_EQUATION:
rImport.GetMM100UnitConverter().convertBool( bShowEquation, aValue );
break;
case XML_TOK_REGEQ_DISPLAY_R_SQUARE:
rImport.GetMM100UnitConverter().convertBool( bShowRSquare, aValue );
break;
case XML_TOK_REGEQ_STYLE_NAME:
sAutoStyleName = aValue;
break;
}
}
if( sAutoStyleName.getLength() || bShowEquation || bShowRSquare )
{
uno::Reference< beans::XPropertySet > xEqProp;
uno::Reference< lang::XMultiServiceFactory > xFact( comphelper::getProcessServiceFactory(), uno::UNO_QUERY );
if( xFact.is())
xEqProp.set( xFact->createInstance(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.chart2.RegressionEquation" ))), uno::UNO_QUERY );
if( xEqProp.is())
{
if( sAutoStyleName.getLength() )
{
const SvXMLStylesContext* pStylesCtxt = mrImportHelper.GetAutoStylesContext();
if( pStylesCtxt )
{
const SvXMLStyleContext* pStyle = pStylesCtxt->FindStyleChildContext(
mrImportHelper.GetChartFamilyID(), sAutoStyleName );
// note: SvXMLStyleContext::FillPropertySet is not const
XMLPropStyleContext * pPropStyleContext =
const_cast< XMLPropStyleContext * >( dynamic_cast< const XMLPropStyleContext * >( pStyle ));
if( pPropStyleContext )
pPropStyleContext->FillPropertySet( xEqProp );
}
}
xEqProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowEquation")), uno::makeAny( bShowEquation ));
xEqProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("ShowCorrelationCoefficient")), uno::makeAny( bShowRSquare ));
if( bHasXPos && bHasYPos )
{
chart2::RelativePosition aRelPos;
aRelPos.Primary = static_cast< double >( aPosition.X ) / static_cast< double >( maChartSize.Width );
aRelPos.Secondary = static_cast< double >( aPosition.Y ) / static_cast< double >( maChartSize.Height );
xEqProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "RelativePosition" )),
uno::makeAny( aRelPos ));
}
OSL_ASSERT( mrRegressionStyle.meType == DataRowPointStyle::REGRESSION );
mrRegressionStyle.m_xEquationProperties.set( xEqProp );
}
}
}