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

154 lines
5.1 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 .
*/
#ifndef INCLUDED_XMLOFF_SOURCE_CHART_SCHXMLCHARTCONTEXT_HXX
#define INCLUDED_XMLOFF_SOURCE_CHART_SCHXMLCHARTCONTEXT_HXX
2000-09-18 16:07:07 +00:00
#include <xmloff/xmlictxt.hxx>
#include <com/sun/star/drawing/XShape.hpp>
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
#include <com/sun/star/chart/ChartDataRowSource.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/awt/Size.hpp>
2000-09-18 16:07:07 +00:00
#include "transporttypes.hxx"
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
#include <list>
#include <vector>
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
2000-09-18 16:07:07 +00:00
class SchXMLImportHelper;
namespace com { namespace sun { namespace star {
namespace chart {
class XChartDocument;
struct ChartSeriesAddress;
}
namespace xml { namespace sax {
class XAttributeList;
}}
namespace drawing {
class XShapes;
}
}}}
2000-09-18 16:07:07 +00:00
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
struct SeriesDefaultsAndStyles
{
//default values for series:
css::uno::Any maSymbolTypeDefault;
css::uno::Any maDataCaptionDefault;
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
css::uno::Any maErrorIndicatorDefault;
css::uno::Any maErrorCategoryDefault;
css::uno::Any maConstantErrorLowDefault;
css::uno::Any maConstantErrorHighDefault;
css::uno::Any maPercentageErrorDefault;
css::uno::Any maErrorMarginDefault;
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
css::uno::Any maMeanValueDefault;
css::uno::Any maRegressionCurvesDefault;
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
css::uno::Any maStackedDefault;
css::uno::Any maPercentDefault;
css::uno::Any maDeepDefault;
css::uno::Any maStackedBarsConnectedDefault;
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
//additional information
css::uno::Any maLinesOnProperty;
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
//styles for series and datapoints
::std::vector< DataRowPointStyle > maSeriesStyleVector;
::std::vector< RegressionStyle > maRegressionStyleVector;
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
};
2000-09-18 16:07:07 +00:00
class SchXMLChartContext : public SvXMLImportContext
{
public:
SchXMLChartContext( SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport, const OUString& rLocalName );
virtual ~SchXMLChartContext() override;
virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
virtual void EndElement() override;
virtual SvXMLImportContextRef CreateChildContext(
sal_uInt16 nPrefix,
const OUString& rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
2000-09-18 16:07:07 +00:00
private:
SchXMLTable maTable;
SchXMLImportHelper& mrImportHelper;
OUString maMainTitle, maSubTitle;
OUString m_aXLinkHRefAttributeToIndicateDataProvider;
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_bHasRangeAtPlotArea;
bool m_bHasTableElement;
bool mbAllRangeAddressesAvailable;
bool mbColHasLabels;
bool mbRowHasLabels;
css::chart::ChartDataRowSource meDataRowSource;
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
bool mbIsStockChart;
2000-09-18 16:07:07 +00:00
OUString msCategoriesAddress;
OUString msChartAddress;
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
tdf#83257 [API-CHANGE] Pivot chart implementation This is a squashed commit of the pivot chart implementation. Some of the changes: - Add pivot chart specific (pivot table) data provider which provides the data from a pivot table to the associated chart. - When inserting a chart and the cursor is in a pivot table, in that case insert a pivot chart - Modify the pivot chart when the pivot table changes - Collect and set the number format for the values - isDataFromSpreadsheet check for the creation wizard - In ChartView (and VLegend) check if the data provider is a pivot chart data provider and get the pivot table field names to create the buttons on the UI. - Adds the functionallity to show a filter pop-up (from calc) when clicking on row / column / page field buttons. - Remove (X)PopupRequest as we won't need it. - Add ODF import/export for pivot charts: + Added loext:data-pilot-source attribute on chart:chart which is the internal name of the pivot table with which the pivot chart is associated with. If the element is present, then the it means the chart is a pivot chart, else it is a normal chart + Added service to create pivot chart data provider through UNO + Add new methods to XPivotChartDataProvider to create value and label data sequences separately from the data source, which is needed for pivot chart import + When importing defer setting the data provider until a later time when we know if we are creating a chart od a pivot chart - Pivot chart ODF round-trip test - Add table pivot chart supplier API: This adds the XTablePivotChartSupplier and related interfaces so we can access, create, delete pivot charts from UNO in a sheet document. With this we now distinguish between normal charts and pivot charts. This was mainly needed because we can't extend the "published" interfaces of TableChartSupplier. - Added an extensive test, which uses the API to create a new pivot chart when there was none, and checks that the pivot chart updates when the pivot table updates. Change-Id: Ia9ed96fd6b1d342e61c2f7f9fa33a5e03dda21af Reviewed-on: https://gerrit.libreoffice.org/36023 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-02-26 22:48:06 +01:00
OUString msDataPilotSource;
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
SeriesDefaultsAndStyles maSeriesDefaultsAndStyles;
tSchXMLLSequencesPerIndex maLSequencesPerIndex;
2000-09-18 16:07:07 +00:00
css::uno::Reference< css::drawing::XShapes > mxDrawPage;
OUString msColTrans;
OUString msRowTrans;
OUString maChartTypeServiceName;
css::awt::Size maChartSize;
/** @descr This method bundles some settings to the chart model and executes them with
a locked controller. This includes setting the chart type.
@param aServiceName The name of the service the diagram is initialized with.
*/
void InitChart (const OUString & rChartTypeServiceName);
INTEGRATION: CWS chart2mst3 (1.11.308); FILE MERGED 2007/01/29 14:20:30 bm 1.11.308.15: do not need table-number-list on import 2006/12/06 18:50:45 bm 1.11.308.14: #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/14 19:25:37 iha 1.11.308.13: #i71330# xy 'symbols only' get lines when loading older versions 2005/11/28 15:20:31 bm 1.11.308.12: implemented StackedBarsConnected property at Diagram 2005/11/04 17:01:12 iha 1.11.308.11: cleanup moced code to new method ChangeDiagramAccordingToTemplate 2005/10/25 16:37:33 iha 1.11.308.10: support SequenceMapping 2005/10/09 08:05:50 bm 1.11.308.9: RESYNC: (1.12-1.13); FILE MERGED 2005/07/18 16:11:14 bm 1.11.308.8: Stock Issues fixed: remove empty chart types in Chart Context instead of PlotArea, stock with volume: create new series with correct chart type 2005/06/30 14:24:09 bm 1.11.308.7: import of stacking mode fixed (old deprecated method removed) 2005/06/24 09:07:27 bm 1.11.308.6: stock chart 2005/06/23 14:44:05 iha 1.11.308.5: correct support for statistic properties 2005/06/22 08:17:02 iha 1.11.308.4: load property DataCaption at diagram, series and data point correctly 2005/06/21 15:18:04 iha 1.11.308.3: set series and point properties after data is available 2005/06/17 17:03:41 bm 1.11.308.2: using new API for im-/export of data 2004/08/25 15:59:14 iha 1.11.308.1: View independent loading - smarter setting of legend & title position
2007-05-22 15:05:50 +00:00
void MergeSeriesForStockChart();
2000-09-18 16:07:07 +00:00
};
class SchXMLTitleContext : public SvXMLImportContext
{
private:
SchXMLImportHelper& mrImportHelper;
OUString& mrTitle;
css::uno::Reference< css::drawing::XShape > mxTitleShape;
OUString msAutoStyleName;
2000-09-18 16:07:07 +00:00
public:
SchXMLTitleContext( SchXMLImportHelper& rImpHelper,
SvXMLImport& rImport, const OUString& rLocalName,
OUString& rTitle,
css::uno::Reference< css::drawing::XShape > const & xTitleShape );
virtual ~SchXMLTitleContext() override;
2000-09-18 16:07:07 +00:00
virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
virtual SvXMLImportContextRef CreateChildContext(
sal_uInt16 nPrefix,
const OUString& rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
2000-09-18 16:07:07 +00:00
};
#endif // INCLUDED_XMLOFF_SOURCE_CHART_SCHXMLCHARTCONTEXT_HXX
2010-10-27 13:11:31 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */