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

318 lines
11 KiB
C++
Raw Normal View History

2010-10-27 13:11:31 +01:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patches contributed by: Armin Le Grand. #118558# Correcting OLE attributes of LO3.4 at load time by loading as OOo3.3, details see task. http://svn.apache.org/viewvc?view=revision&revision=1195906 #118485# - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles http://svn.apache.org/viewvc?view=revision&revision=1293316 #119337# Solves the wrong get/setPropertyValue calls in SvxShapeText (and thus in SvxOle2Shape) http://svn.apache.org/viewvc?view=revision&revision=1344156 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 cws mba34issues01: #i117717#: remove wrong assertion http://svn.apache.org/viewvc?view=revision&revision=1172349 Patch contributed by Herbert Duerr goodbye Registration and License dialogs, don't let the door hit you http://svn.apache.org/viewvc?view=revision&revision=1172613 help gcc 4.6.0 on 32bit ubuntu 11.10" http://svn.apache.org/viewvc?view=revision&revision=1245357 Do not add targets for junit tests when junit is disabled. Patch contributed by Andre Fischer http://svn.apache.org/viewvc?view=revision&revision=1241508 Revert "sb140: #i117082# avoid unncessary static class data members commit 21d97438e2944861e26e4984195f959a0cce1e41. remove obsolete FreeBSD visibility special case. retain consolidated BSD bridge code, remove OS/2 pieces.
2012-11-12 17:21:24 +00:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2000-09-18 16:07:07 +00:00
#ifndef _SCH_XMLPLOTAREACONTEXT_HXX_
#define _SCH_XMLPLOTAREACONTEXT_HXX_
#include "SchXMLImport.hxx"
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
#include "SchXMLChartContext.hxx"
#include <xmloff/xmlictxt.hxx>
#include <xmloff/shapeimport.hxx>
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
#include <com/sun/star/chart/ChartDataRowSource.hpp>
2000-09-18 16:07:07 +00:00
#include "transporttypes.hxx"
class SvXMLImport;
namespace com { namespace sun { namespace star {
namespace chart {
class XDiagram;
2001-01-15 07:58:30 +00:00
class X3DDisplay;
class XStatisticDisplay;
2000-09-18 16:07:07 +00:00
}
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
namespace chart2 {
class XChartDocument;
}
2000-09-18 16:07:07 +00:00
namespace xml { namespace sax {
class XAttributeList;
}}}}}
// ----------------------------------------
class SchXML3DSceneAttributesHelper : public SdXML3DSceneAttributesHelper
{
public:
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
SchXML3DSceneAttributesHelper( SvXMLImport& rImporter );
virtual ~SchXML3DSceneAttributesHelper();
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
void getCameraDefaultFromDiagram( const ::com::sun::star::uno::Reference< com::sun::star::chart::XDiagram >& xDiagram );
private:
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
SchXML3DSceneAttributesHelper();
};
// ----------------------------------------
class SchXMLPositonAttributesHelper
{
public:
SchXMLPositonAttributesHelper( SvXMLImport& rImporter );
~SchXMLPositonAttributesHelper();
bool readPositioningAttribute( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::rtl::OUString& rValue );
void readAutomaticPositioningProperties( XMLPropStyleContext* pPropStyleContext, const SvXMLStylesContext* pStylesCtxt );
bool hasPosSize() const;
bool isAutomatic() const;
::com::sun::star::awt::Rectangle getRectangle() const;
private:
bool hasSize() const;
bool hasPosition() const;
SvXMLImport& m_rImport;
::com::sun::star::awt::Point m_aPosition;
::com::sun::star::awt::Size m_aSize;
bool m_bHasSizeWidth;
bool m_bHasSizeHeight;
bool m_bHasPositionX;
bool m_bHasPositionY;
sal_Bool m_bAutoSize;
sal_Bool m_bAutoPosition;
};
// ----------------------------------------
2000-09-18 16:07:07 +00:00
class SchXMLPlotAreaContext : public SvXMLImportContext
{
public:
SchXMLPlotAreaContext( SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport, const rtl::OUString& rLocalName,
CWS-TOOLING: integrate CWS chart39 2009-06-30 16:55:46 +0200 iha r273522 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-30 16:45:59 +0200 iha r273521 : #i102701# apply patch for P1 issue on dev300m50 to be able to save again 2009-06-30 16:32:32 +0200 iha r273520 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-29 10:04:34 +0200 iha r273454 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-26 19:31:16 +0200 iha r273437 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-25 10:36:28 +0200 iha r273367 : #i101968# text values in data range cause incorrect x values 2009-06-24 17:34:18 +0200 iha r273357 : #i102428# x values are wrong in xy-scatter-chart with own data table if empty cells are contained in x values 2009-06-24 10:16:25 +0200 iha r273317 : #i99915# wrong matrix translation causes broken chart display for small values 2009-06-19 17:20:06 +0200 iha r273174 : #i78025# charts own borders are not completely visible 2009-06-19 17:18:41 +0200 iha r273172 : #i102950# don't paint additional borders for charts 2009-06-11 16:27:54 +0200 iha r272884 : CWS-TOOLING: rebase CWS chart39 to trunk@272827 (milestone: DEV300:m50) 2009-06-09 17:50:10 +0200 iha r272790 : #i97222# when converting a chart via API to 3D categories get lost and for line,area&xy the stacking mode is wrong 2009-06-09 16:00:27 +0200 iha r272775 : #i98319# data point properties get lost while copying charts from calc to impress 2009-06-09 10:26:51 +0200 iha r272755 : #i98392# correct orienation of gradient fillings on 3D walls 2009-05-29 10:35:16 +0200 iha r272436 : #i100529# Plot missing values - leave gap fails for smoothed lines 2009-05-04 18:20:31 +0200 iha r271478 : #i99841# Title with Vertically stacked attribute is wrong after editing 2009-05-04 18:03:01 +0200 iha r271477 : #i101050# avoid a corner in closed lines, which are smoothed by spline 2009-05-04 16:45:18 +0200 iha r271472 : #i101050# avoid crash in case the normals sequence has less points than the polygon
2009-07-28 10:25:31 +00:00
const rtl::OUString& rXLinkHRefAttributeToIndicateDataProvider,
::rtl::OUString& rCategoriesAddress,
::rtl::OUString& rChartAddress,
CWS-TOOLING: integrate CWS chart39 2009-06-30 16:55:46 +0200 iha r273522 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-30 16:45:59 +0200 iha r273521 : #i102701# apply patch for P1 issue on dev300m50 to be able to save again 2009-06-30 16:32:32 +0200 iha r273520 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-29 10:04:34 +0200 iha r273454 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-26 19:31:16 +0200 iha r273437 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-25 10:36:28 +0200 iha r273367 : #i101968# text values in data range cause incorrect x values 2009-06-24 17:34:18 +0200 iha r273357 : #i102428# x values are wrong in xy-scatter-chart with own data table if empty cells are contained in x values 2009-06-24 10:16:25 +0200 iha r273317 : #i99915# wrong matrix translation causes broken chart display for small values 2009-06-19 17:20:06 +0200 iha r273174 : #i78025# charts own borders are not completely visible 2009-06-19 17:18:41 +0200 iha r273172 : #i102950# don't paint additional borders for charts 2009-06-11 16:27:54 +0200 iha r272884 : CWS-TOOLING: rebase CWS chart39 to trunk@272827 (milestone: DEV300:m50) 2009-06-09 17:50:10 +0200 iha r272790 : #i97222# when converting a chart via API to 3D categories get lost and for line,area&xy the stacking mode is wrong 2009-06-09 16:00:27 +0200 iha r272775 : #i98319# data point properties get lost while copying charts from calc to impress 2009-06-09 10:26:51 +0200 iha r272755 : #i98392# correct orienation of gradient fillings on 3D walls 2009-05-29 10:35:16 +0200 iha r272436 : #i100529# Plot missing values - leave gap fails for smoothed lines 2009-05-04 18:20:31 +0200 iha r271478 : #i99841# Title with Vertically stacked attribute is wrong after editing 2009-05-04 18:03:01 +0200 iha r271477 : #i101050# avoid a corner in closed lines, which are smoothed by spline 2009-05-04 16:45:18 +0200 iha r271472 : #i101050# avoid crash in case the normals sequence has less points than the polygon
2009-07-28 10:25:31 +00:00
bool& bHasRangeAtPlotArea,
sal_Bool & rAllRangeAddressesAvailable,
sal_Bool & rColHasLabels,
sal_Bool & rRowHasLabels,
::com::sun::star::chart::ChartDataRowSource & rDataRowSource,
SeriesDefaultsAndStyles& rSeriesDefaultsAndStyles,
const ::rtl::OUString& aChartTypeServiceName,
tSchXMLLSequencesPerIndex & rLSequencesPerIndex,
const ::com::sun::star::awt::Size & rChartSize );
virtual ~SchXMLPlotAreaContext();
virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
virtual SvXMLImportContext* CreateChildContext(
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
virtual void EndElement();
2000-09-18 16:07:07 +00:00
private:
SchXMLImportHelper& mrImportHelper;
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
::com::sun::star::uno::Reference< com::sun::star::chart::XDiagram > mxDiagram;
::com::sun::star::uno::Reference< com::sun::star::chart2::XChartDocument > mxNewDoc;
::std::vector< SchXMLAxis > maAxes;
2000-09-18 16:07:07 +00:00
rtl::OUString& mrCategoriesAddress;
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
SeriesDefaultsAndStyles& mrSeriesDefaultsAndStyles;
sal_Int32 mnNumOfLinesProp;
sal_Bool mbStockHasVolume;
sal_Int32 mnSeries;
CWS-TOOLING: integrate CWS bubblechart 2009-06-17 08:41:14 +0200 hde r273051 : i101635: added new charttype bubble 2009-06-17 08:39:37 +0200 hde r273050 : i101635: created new testcase tCreateNewBubbleChart 2009-06-17 08:38:07 +0200 hde r273049 : i101635: created new testcase tCreateNewBubbleChart 2009-06-15 15:22:32 +0200 hde r272991 : 101635 2009-06-11 12:44:01 +0200 iha r272864 : rebase to dev300m50 2009-06-10 23:27:54 +0200 iha r272841 : CWS-TOOLING: rebase CWS bubblechart to trunk@272827 (milestone: DEV300:m50) 2009-06-04 18:07:35 +0200 iha r272649 : #i64689# Bubble Chart 2009-06-04 17:26:44 +0200 iha r272647 : #i64689# Bubble Chart 2009-06-04 11:24:25 +0200 iha r272618 : #i64689# add more spacing between bubbles and data labels 2009-05-26 18:05:23 +0200 ufi r272314 : i101637 2009-04-22 14:37:50 +0200 iha r271115 : #i64689# bubble chart 2009-04-21 17:52:23 +0200 iha r271052 : #i64689# bubble chart 2009-04-21 17:50:48 +0200 iha r271051 : #i76728# type icon for xy chart 2009-04-21 17:25:52 +0200 iha r271049 : #i76728# type icon for xy chart 2009-04-09 11:18:09 +0200 iha r270685 : #i100977# autoscaling works not correct if missing values should be treated as zero 2009-04-08 16:39:43 +0200 iha r270656 : #i64689# bubble chart - missing value treatment 2009-04-08 15:13:25 +0200 iha r270655 : #i64689# bubble chart - remove unused code 2009-04-08 15:12:19 +0200 iha r270653 : #i64689# bubble chart - determine sereis length correctly on export 2009-04-08 14:22:43 +0200 iha r270650 : #i64689# bubble chart - remove unused code 2009-04-08 14:12:09 +0200 iha r270646 : #i64689# bubble chart - export domains even if no main sequence was found 2009-04-08 14:11:07 +0200 iha r270645 : #i64689# bubble chart - don't replace missing size values with 1.0 2009-04-07 16:20:22 +0200 iha r270602 : #i64689# bubble chart - do not offer percent values for data label display for xy and bubble chart 2009-04-07 16:17:42 +0200 iha r270601 : remove superfluous code 2009-04-06 16:39:32 +0200 iha r270569 : #i64689# bubble chart -correct automatic numberformat detection for axis, data table and data label + transport data label numberformat during copy paste in addition to axis numberformat 2009-04-02 17:33:33 +0200 iha r270427 : use input string for formatting in data table during edit 2009-04-02 16:00:29 +0200 iha r270413 : #i64689# bubble chart - when creating a new series within the data table give it the same number format as the former series, thus the new bubble size values can be edited with the same format immidiately 2009-04-02 11:25:33 +0200 iha r270385 : #i64689# bubble chart -correct automatic numberformat detection for axis, data table and data label + transport data label numberformat during copy paste in addition to axis numberformat 2009-04-01 11:32:03 +0200 iha r270312 : #i64689# bubble chart - add further parameter for view creation 2009-03-31 17:52:08 +0200 iha r270291 : #i64689# bubble chart - scale bubble size with diagram size 2009-03-31 13:38:13 +0200 iha r270278 : #i64689# bubble chart - wrong size for small values < 1 2009-03-27 19:11:07 +0100 iha r270169 : #i64689# bubble chart 2009-03-27 19:07:11 +0100 iha r270168 : #i64689# bubble chart - remove unused code 2009-03-27 18:33:57 +0100 iha r270167 : #i64689# bubble chart - create no shape for invalid sizes 2009-03-27 15:18:21 +0100 iha r270157 : #i76728# type icon for xy chart 2009-03-27 14:34:38 +0100 iha r270156 : #i64689# bubble chart - correct scaling 2009-03-27 14:27:27 +0100 iha r270155 : #i64689# bubble chart - images 2009-03-27 14:25:45 +0100 iha r270154 : #i64689# bubble chart - images 2009-03-27 11:38:57 +0100 iha r270142 : #i64689# bubble chart - values-size is the main series 2009-03-27 11:30:20 +0100 iha r270140 : #i64689# correct order of sequences after load thus switching charttypes afterwards produces expected results now 2009-03-26 10:22:55 +0100 iha r270056 : #i64689# bubble chart 2009-03-24 17:45:15 +0100 iha r269984 : #i64689# bubble chart - user properties from points (not only from the series) 2009-03-24 15:10:57 +0100 dr r269954 : #i64989# export bubble charts to xls 2009-03-24 14:55:29 +0100 dr r269952 : #i64989# import bubble charts from xls 2009-03-24 14:54:46 +0100 dr r269950 : #i64989# import bubble charts from ooxml 2009-03-23 18:59:08 +0100 iha r269895 : further cleanups possible with new member m_aGlobalSeriesImportInfo 2009-03-23 16:54:04 +0100 iha r269886 : #i64689# bubble chart - a single sequence must be interpreted as sizes because of ODF specification 2009-03-23 16:50:43 +0100 iha r269885 : #i64689# save&load bubble chart 2009-03-20 19:30:29 +0100 iha r269826 : CWS-TOOLING: rebase CWS bubblechart to trunk@269781 (milestone: DEV300:m44) 2009-03-19 11:30:33 +0100 iha r269732 : #i64689# rename SchXMLCategoriesDomainContext to SchXMLCategoriesContext avoid confusion with domains 2009-03-18 17:11:13 +0100 iha r269693 : #i64689# add charttype bubble 2009-03-18 17:09:22 +0100 iha r269692 : #i64689# remove unused code 2009-03-13 12:18:26 +0100 iha r269467 : #i64689# corrected lineends 2009-03-12 11:25:14 +0100 iha r269376 : #i64689# bubble chart (part 1)
2009-07-02 19:17:43 +00:00
GlobalSeriesImportInfo m_aGlobalSeriesImportInfo;
SchXML3DSceneAttributesHelper maSceneImportHelper;
SchXMLPositonAttributesHelper m_aOuterPositioning;//including axes and axes titles
SchXMLPositonAttributesHelper m_aInnerPositioning;//excluding axes and axes titles
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
bool mbPercentStacked;
2008-12-12 12:17:17 +00:00
bool m_bAxisPositionAttributeImported;
::rtl::OUString msAutoStyleName;
CWS-TOOLING: integrate CWS chart39 2009-06-30 16:55:46 +0200 iha r273522 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-30 16:45:59 +0200 iha r273521 : #i102701# apply patch for P1 issue on dev300m50 to be able to save again 2009-06-30 16:32:32 +0200 iha r273520 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-29 10:04:34 +0200 iha r273454 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-26 19:31:16 +0200 iha r273437 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-25 10:36:28 +0200 iha r273367 : #i101968# text values in data range cause incorrect x values 2009-06-24 17:34:18 +0200 iha r273357 : #i102428# x values are wrong in xy-scatter-chart with own data table if empty cells are contained in x values 2009-06-24 10:16:25 +0200 iha r273317 : #i99915# wrong matrix translation causes broken chart display for small values 2009-06-19 17:20:06 +0200 iha r273174 : #i78025# charts own borders are not completely visible 2009-06-19 17:18:41 +0200 iha r273172 : #i102950# don't paint additional borders for charts 2009-06-11 16:27:54 +0200 iha r272884 : CWS-TOOLING: rebase CWS chart39 to trunk@272827 (milestone: DEV300:m50) 2009-06-09 17:50:10 +0200 iha r272790 : #i97222# when converting a chart via API to 3D categories get lost and for line,area&xy the stacking mode is wrong 2009-06-09 16:00:27 +0200 iha r272775 : #i98319# data point properties get lost while copying charts from calc to impress 2009-06-09 10:26:51 +0200 iha r272755 : #i98392# correct orienation of gradient fillings on 3D walls 2009-05-29 10:35:16 +0200 iha r272436 : #i100529# Plot missing values - leave gap fails for smoothed lines 2009-05-04 18:20:31 +0200 iha r271478 : #i99841# Title with Vertically stacked attribute is wrong after editing 2009-05-04 18:03:01 +0200 iha r271477 : #i101050# avoid a corner in closed lines, which are smoothed by spline 2009-05-04 16:45:18 +0200 iha r271472 : #i101050# avoid crash in case the normals sequence has less points than the polygon
2009-07-28 10:25:31 +00:00
const ::rtl::OUString& m_rXLinkHRefAttributeToIndicateDataProvider;
::rtl::OUString& mrChartAddress;
CWS-TOOLING: integrate CWS chart39 2009-06-30 16:55:46 +0200 iha r273522 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-30 16:45:59 +0200 iha r273521 : #i102701# apply patch for P1 issue on dev300m50 to be able to save again 2009-06-30 16:32:32 +0200 iha r273520 : #i103209# im-/export attribute xlink:href at chart:chart element + some cleanup in naming 2009-06-29 10:04:34 +0200 iha r273454 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-26 19:31:16 +0200 iha r273437 : #i103147# ODF, workaround broken files with a missing table:cell-range-address at the plot-area 2009-06-25 10:36:28 +0200 iha r273367 : #i101968# text values in data range cause incorrect x values 2009-06-24 17:34:18 +0200 iha r273357 : #i102428# x values are wrong in xy-scatter-chart with own data table if empty cells are contained in x values 2009-06-24 10:16:25 +0200 iha r273317 : #i99915# wrong matrix translation causes broken chart display for small values 2009-06-19 17:20:06 +0200 iha r273174 : #i78025# charts own borders are not completely visible 2009-06-19 17:18:41 +0200 iha r273172 : #i102950# don't paint additional borders for charts 2009-06-11 16:27:54 +0200 iha r272884 : CWS-TOOLING: rebase CWS chart39 to trunk@272827 (milestone: DEV300:m50) 2009-06-09 17:50:10 +0200 iha r272790 : #i97222# when converting a chart via API to 3D categories get lost and for line,area&xy the stacking mode is wrong 2009-06-09 16:00:27 +0200 iha r272775 : #i98319# data point properties get lost while copying charts from calc to impress 2009-06-09 10:26:51 +0200 iha r272755 : #i98392# correct orienation of gradient fillings on 3D walls 2009-05-29 10:35:16 +0200 iha r272436 : #i100529# Plot missing values - leave gap fails for smoothed lines 2009-05-04 18:20:31 +0200 iha r271478 : #i99841# Title with Vertically stacked attribute is wrong after editing 2009-05-04 18:03:01 +0200 iha r271477 : #i101050# avoid a corner in closed lines, which are smoothed by spline 2009-05-04 16:45:18 +0200 iha r271472 : #i101050# avoid crash in case the normals sequence has less points than the polygon
2009-07-28 10:25:31 +00:00
bool& m_rbHasRangeAtPlotArea;
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
sal_Bool & mrColHasLabels;
sal_Bool & mrRowHasLabels;
::com::sun::star::chart::ChartDataRowSource & mrDataRowSource;
::rtl::OUString maChartTypeServiceName;
tSchXMLLSequencesPerIndex & mrLSequencesPerIndex;
CWS-TOOLING: integrate CWS bubblechart 2009-06-17 08:41:14 +0200 hde r273051 : i101635: added new charttype bubble 2009-06-17 08:39:37 +0200 hde r273050 : i101635: created new testcase tCreateNewBubbleChart 2009-06-17 08:38:07 +0200 hde r273049 : i101635: created new testcase tCreateNewBubbleChart 2009-06-15 15:22:32 +0200 hde r272991 : 101635 2009-06-11 12:44:01 +0200 iha r272864 : rebase to dev300m50 2009-06-10 23:27:54 +0200 iha r272841 : CWS-TOOLING: rebase CWS bubblechart to trunk@272827 (milestone: DEV300:m50) 2009-06-04 18:07:35 +0200 iha r272649 : #i64689# Bubble Chart 2009-06-04 17:26:44 +0200 iha r272647 : #i64689# Bubble Chart 2009-06-04 11:24:25 +0200 iha r272618 : #i64689# add more spacing between bubbles and data labels 2009-05-26 18:05:23 +0200 ufi r272314 : i101637 2009-04-22 14:37:50 +0200 iha r271115 : #i64689# bubble chart 2009-04-21 17:52:23 +0200 iha r271052 : #i64689# bubble chart 2009-04-21 17:50:48 +0200 iha r271051 : #i76728# type icon for xy chart 2009-04-21 17:25:52 +0200 iha r271049 : #i76728# type icon for xy chart 2009-04-09 11:18:09 +0200 iha r270685 : #i100977# autoscaling works not correct if missing values should be treated as zero 2009-04-08 16:39:43 +0200 iha r270656 : #i64689# bubble chart - missing value treatment 2009-04-08 15:13:25 +0200 iha r270655 : #i64689# bubble chart - remove unused code 2009-04-08 15:12:19 +0200 iha r270653 : #i64689# bubble chart - determine sereis length correctly on export 2009-04-08 14:22:43 +0200 iha r270650 : #i64689# bubble chart - remove unused code 2009-04-08 14:12:09 +0200 iha r270646 : #i64689# bubble chart - export domains even if no main sequence was found 2009-04-08 14:11:07 +0200 iha r270645 : #i64689# bubble chart - don't replace missing size values with 1.0 2009-04-07 16:20:22 +0200 iha r270602 : #i64689# bubble chart - do not offer percent values for data label display for xy and bubble chart 2009-04-07 16:17:42 +0200 iha r270601 : remove superfluous code 2009-04-06 16:39:32 +0200 iha r270569 : #i64689# bubble chart -correct automatic numberformat detection for axis, data table and data label + transport data label numberformat during copy paste in addition to axis numberformat 2009-04-02 17:33:33 +0200 iha r270427 : use input string for formatting in data table during edit 2009-04-02 16:00:29 +0200 iha r270413 : #i64689# bubble chart - when creating a new series within the data table give it the same number format as the former series, thus the new bubble size values can be edited with the same format immidiately 2009-04-02 11:25:33 +0200 iha r270385 : #i64689# bubble chart -correct automatic numberformat detection for axis, data table and data label + transport data label numberformat during copy paste in addition to axis numberformat 2009-04-01 11:32:03 +0200 iha r270312 : #i64689# bubble chart - add further parameter for view creation 2009-03-31 17:52:08 +0200 iha r270291 : #i64689# bubble chart - scale bubble size with diagram size 2009-03-31 13:38:13 +0200 iha r270278 : #i64689# bubble chart - wrong size for small values < 1 2009-03-27 19:11:07 +0100 iha r270169 : #i64689# bubble chart 2009-03-27 19:07:11 +0100 iha r270168 : #i64689# bubble chart - remove unused code 2009-03-27 18:33:57 +0100 iha r270167 : #i64689# bubble chart - create no shape for invalid sizes 2009-03-27 15:18:21 +0100 iha r270157 : #i76728# type icon for xy chart 2009-03-27 14:34:38 +0100 iha r270156 : #i64689# bubble chart - correct scaling 2009-03-27 14:27:27 +0100 iha r270155 : #i64689# bubble chart - images 2009-03-27 14:25:45 +0100 iha r270154 : #i64689# bubble chart - images 2009-03-27 11:38:57 +0100 iha r270142 : #i64689# bubble chart - values-size is the main series 2009-03-27 11:30:20 +0100 iha r270140 : #i64689# correct order of sequences after load thus switching charttypes afterwards produces expected results now 2009-03-26 10:22:55 +0100 iha r270056 : #i64689# bubble chart 2009-03-24 17:45:15 +0100 iha r269984 : #i64689# bubble chart - user properties from points (not only from the series) 2009-03-24 15:10:57 +0100 dr r269954 : #i64989# export bubble charts to xls 2009-03-24 14:55:29 +0100 dr r269952 : #i64989# import bubble charts from xls 2009-03-24 14:54:46 +0100 dr r269950 : #i64989# import bubble charts from ooxml 2009-03-23 18:59:08 +0100 iha r269895 : further cleanups possible with new member m_aGlobalSeriesImportInfo 2009-03-23 16:54:04 +0100 iha r269886 : #i64689# bubble chart - a single sequence must be interpreted as sizes because of ODF specification 2009-03-23 16:50:43 +0100 iha r269885 : #i64689# save&load bubble chart 2009-03-20 19:30:29 +0100 iha r269826 : CWS-TOOLING: rebase CWS bubblechart to trunk@269781 (milestone: DEV300:m44) 2009-03-19 11:30:33 +0100 iha r269732 : #i64689# rename SchXMLCategoriesDomainContext to SchXMLCategoriesContext avoid confusion with domains 2009-03-18 17:11:13 +0100 iha r269693 : #i64689# add charttype bubble 2009-03-18 17:09:22 +0100 iha r269692 : #i64689# remove unused code 2009-03-13 12:18:26 +0100 iha r269467 : #i64689# corrected lineends 2009-03-12 11:25:14 +0100 iha r269376 : #i64689# bubble chart (part 1)
2009-07-02 19:17:43 +00:00
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
bool mbGlobalChartTypeUsedBySeries;
::com::sun::star::awt::Size maChartSize;
2000-09-18 16:07:07 +00:00
};
//----------------------------------------
class SchXMLDataPointContext : public SvXMLImportContext
{
private:
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
::std::list< DataRowPointStyle >& mrStyleList;
::com::sun::star::uno::Reference<
::com::sun::star::chart2::XDataSeries > m_xSeries;
2000-09-18 16:07:07 +00:00
sal_Int32& mrIndex;
bool mbSymbolSizeForSeriesIsMissingInFile;
2000-09-18 16:07:07 +00:00
public:
SchXMLDataPointContext( SvXMLImport& rImport, const rtl::OUString& rLocalName,
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +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
virtual ~SchXMLDataPointContext();
virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
};
// ----------------------------------------
class SchXMLCoordinateRegionContext : public SvXMLImportContext
{
public:
SchXMLCoordinateRegionContext(
SvXMLImport& rImport
, sal_uInt16 nPrefix
, const rtl::OUString& rLocalName
, SchXMLPositonAttributesHelper& rPositioning );
virtual ~SchXMLCoordinateRegionContext();
virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
private:
SchXMLPositonAttributesHelper& m_rPositioning;
};
// ----------------------------------------
2001-01-15 07:58:30 +00:00
class SchXMLWallFloorContext : public SvXMLImportContext
{
public:
enum ContextType
{
CONTEXT_TYPE_WALL,
CONTEXT_TYPE_FLOOR
};
private:
SchXMLImportHelper& mrImportHelper;
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
::com::sun::star::uno::Reference< ::com::sun::star::chart::X3DDisplay > mxWallFloorSupplier;
2001-01-15 07:58:30 +00:00
ContextType meContextType;
public:
SchXMLWallFloorContext( SchXMLImportHelper& rImportHelper,
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
::com::sun::star::uno::Reference< ::com::sun::star::chart::XDiagram >& xDiagram,
2001-01-15 07:58:30 +00:00
ContextType eContextType );
virtual ~SchXMLWallFloorContext();
2001-01-15 07:58:30 +00:00
virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
};
// ----------------------------------------
class SchXMLStockContext : public SvXMLImportContext
{
public:
enum ContextType
{
CONTEXT_TYPE_GAIN,
CONTEXT_TYPE_LOSS,
CONTEXT_TYPE_RANGE
};
private:
SchXMLImportHelper& mrImportHelper;
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
::com::sun::star::uno::Reference< ::com::sun::star::chart::XStatisticDisplay > mxStockPropProvider;
ContextType meContextType;
public:
SchXMLStockContext( SchXMLImportHelper& rImportHelper,
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
::com::sun::star::uno::Reference< ::com::sun::star::chart::XDiagram >& xDiagram,
ContextType eContextType );
virtual ~SchXMLStockContext();
virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
};
// ----------------------------------------
class SchXMLStatisticsObjectContext : public SvXMLImportContext
{
public:
enum ContextType
{
CONTEXT_TYPE_MEAN_VALUE_LINE,
CONTEXT_TYPE_REGRESSION_CURVE,
CONTEXT_TYPE_ERROR_INDICATOR
};
SchXMLStatisticsObjectContext(
SchXMLImportHelper& rImportHelper,
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
const rtl::OUString &rSeriesStyleName,
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
::std::list< DataRowPointStyle >& rStyleList,
const ::com::sun::star::uno::Reference<
::com::sun::star::chart2::XDataSeries >& xSeries,
ContextType eContextType,
const ::com::sun::star::awt::Size & rChartSize );
virtual ~SchXMLStatisticsObjectContext();
virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
virtual SvXMLImportContext* CreateChildContext(
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
private:
SchXMLImportHelper & mrImportHelper;
INTEGRATION: CWS chart2mst3 (1.16.28); FILE MERGED 2007/04/19 09:51:09 bm 1.16.28.23: #i75530# import explicit chart types at data series in correct order 2007/01/29 14:20:30 bm 1.16.28.22: do not need table-number-list on import 2006/12/06 18:50:46 bm 1.16.28.21: #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/11/30 15:37:00 iha 1.16.28.20: #59288# correct save and load of axis scale values for percent stacked charts 2006/08/16 14:53:12 iha 1.16.28.19: #124495# categories for net chart are not displayed when loading old files 2006/08/02 12:56:22 iha 1.16.28.18: removed unused DomainOffset 2006/06/09 16:31:24 iha 1.16.28.17: worked around wrong camera default in old chart for compatibility 2005/12/21 21:34:24 iha 1.16.28.16: remove identifiers from model objects and create an index based CID protocol instead for selection purposes 2005/11/01 12:53:07 iha 1.16.28.15: proper use of default domain (first x sequence) for load and save of scatter charts 2005/10/09 08:07:02 bm 1.16.28.14: RESYNC: (1.19-1.20); FILE MERGED 2005/08/30 16:17:28 bm 1.16.28.13: set axis title content in axis::EndElement (instead of StartElement), because it is not known earlier 2005/07/19 09:30:51 iha 1.16.28.12: create axis before axis title to load axis title 2005/07/18 16:11:15 bm 1.16.28.11: 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.16.28.10: change from series index to series identifier 2005/07/04 16:00:24 bm 1.16.28.9: 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 2005/06/30 14:24:12 bm 1.16.28.8: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:29 bm 1.16.28.7: stock chart 2005/06/21 15:19:21 iha 1.16.28.6: set series and point properties after data is available 2005/06/21 12:55:21 iha 1.16.28.5: set correct symbol type defaults to series 2005/06/17 17:03:43 bm 1.16.28.4: using new API for im-/export of data 2004/09/20 17:23:02 bm 1.16.28.3: set stackmode in EndElement, because in StartElement there are no series to set the mode at 2004/08/30 17:13:00 bm 1.16.28.2: RESYNC: (1.16-1.18); FILE MERGED 2004/08/25 16:10:11 iha 1.16.28.1: View independent loading - smarter setting of axis title position and diagram size & position
2007-05-22 15:06:52 +00:00
::std::list< DataRowPointStyle > & mrStyleList;
::com::sun::star::uno::Reference<
::com::sun::star::chart2::XDataSeries > m_xSeries;
ContextType meContextType;
::com::sun::star::awt::Size maChartSize;
rtl::OUString maSeriesStyleName;
};
// ----------------------------------------
class SchXMLEquationContext : public SvXMLImportContext
{
public:
SchXMLEquationContext(
SchXMLImportHelper& rImportHelper,
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const rtl::OUString& rLocalName,
const ::com::sun::star::uno::Reference<
::com::sun::star::chart2::XDataSeries >& xSeries,
const ::com::sun::star::awt::Size & rChartSize,
DataRowPointStyle & rRegressionStyle );
virtual ~SchXMLEquationContext();
virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
private:
SchXMLImportHelper & mrImportHelper;
DataRowPointStyle & mrRegressionStyle;
::com::sun::star::uno::Reference<
::com::sun::star::chart2::XDataSeries > m_xSeries;
::com::sun::star::awt::Size maChartSize;
};
2000-09-18 16:07:07 +00:00
#endif // _SCH_XMLPLOTAREACONTEXT_HXX_
2010-10-27 13:11:31 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */