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

155 lines
5.2 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>
2000-09-18 16:07:07 +00:00
#include <com/sun/star/uno/Sequence.h>
#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>
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::list< DataRowPointStyle > maSeriesStyleList;
::std::list< RegressionStyle > maRegressionStyleList;
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();
virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
virtual void EndElement() override;
virtual SvXMLImportContext *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
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.
2012-02-18 12:37:04 +08:00
@param bSetWitchData Indicates whether the data set takes it's data series from
rows or from columns.
*/
void InitChart (const OUString & rChartTypeServiceName,
bool bSetSwitchData);
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 >& xTitleShape );
2000-09-18 16:07:07 +00:00
virtual ~SchXMLTitleContext();
virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
2000-09-18 16:07:07 +00:00
virtual SvXMLImportContext *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: */