LibreOffice Module xmloff (master) 1
SchXMLChartContext.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#pragma once
20
21#include <xmloff/xmlictxt.hxx>
22#include <com/sun/star/drawing/XShape.hpp>
23#include <com/sun/star/chart/ChartDataRowSource.hpp>
24#include <com/sun/star/awt/Size.hpp>
25
26#include "transporttypes.hxx"
27
28#include <vector>
29
31
32namespace com::sun::star {
33 namespace chart {
34 class XChartDocument;
35 struct ChartSeriesAddress;
36 }
37 namespace xml::sax {
38 class XAttributeList;
39 }
40 namespace drawing {
41 class XShapes;
42 }
43}
44
46{
47 //default values for series:
48 css::uno::Any maSymbolTypeDefault;
49 css::uno::Any maDataCaptionDefault;
50
56 css::uno::Any maErrorMarginDefault;
57
58 css::uno::Any maMeanValueDefault;
60
61 css::uno::Any maStackedDefault;
62 css::uno::Any maPercentDefault;
63 css::uno::Any maDeepDefault;
65
66 //additional information
67 css::uno::Any maLinesOnProperty;
68
69 //styles for series and datapoints
70 ::std::vector< DataRowPointStyle > maSeriesStyleVector;
71 ::std::vector< RegressionStyle > maRegressionStyleVector;
72};
73
75{
76public:
78 SvXMLImport& rImport );
79 virtual ~SchXMLChartContext() override;
80
81 virtual void SAL_CALL startFastElement( sal_Int32 nElement,
82 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
83 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
84 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
85 sal_Int32 nElement,
86 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
87
88private:
91
99 css::chart::ChartDataRowSource meDataRowSource;
101
104
106
109
110 css::uno::Reference< css::drawing::XShapes > mxDrawPage;
111 OUString msColTrans;
112 OUString msRowTrans;
114
115 css::awt::Size maChartSize;
116
121 void InitChart (const OUString & rChartTypeServiceName);
122
124};
125
127{
128private:
130 OUString& mrTitle;
131 css::uno::Reference< css::drawing::XShape > mxTitleShape;
133
134public:
136 SvXMLImport& rImport,
137 OUString& rTitle,
138 css::uno::Reference< css::drawing::XShape > xTitleShape );
139 virtual ~SchXMLTitleContext() override;
140
141 virtual void SAL_CALL startFastElement( sal_Int32 nElement,
142 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
143 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
144 sal_Int32 nElement,
145 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
146};
147
148/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
css::uno::Reference< css::drawing::XShapes > mxDrawPage
css::awt::Size maChartSize
css::chart::ChartDataRowSource meDataRowSource
void InitChart(const OUString &rChartTypeServiceName)
@descr This method bundles some settings to the chart model and executes them with a locked controlle...
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SchXMLChartContext(SchXMLImportHelper &rImpHelper, SvXMLImport &rImport)
OUString m_aXLinkHRefAttributeToIndicateDataProvider
tSchXMLLSequencesPerIndex maLSequencesPerIndex
SchXMLImportHelper & mrImportHelper
virtual ~SchXMLChartContext() override
SeriesDefaultsAndStyles maSeriesDefaultsAndStyles
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
With this class you can import a <chart:chart> element containing its data as <table:table> element o...
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SchXMLTitleContext(SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, OUString &rTitle, css::uno::Reference< css::drawing::XShape > xTitleShape)
css::uno::Reference< css::drawing::XShape > mxTitleShape
SchXMLImportHelper & mrImportHelper
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
virtual ~SchXMLTitleContext() override
This class deliberately does not support XWeak, to improve performance when loading large documents.
Definition: xmlictxt.hxx:48
friend class SvXMLImport
Definition: xmlictxt.hxx:49
css::uno::Any maConstantErrorLowDefault
css::uno::Any maConstantErrorHighDefault
css::uno::Any maErrorIndicatorDefault
css::uno::Any maErrorCategoryDefault
::std::vector< RegressionStyle > maRegressionStyleVector
css::uno::Any maRegressionCurvesDefault
css::uno::Any maPercentageErrorDefault
::std::vector< DataRowPointStyle > maSeriesStyleVector
css::uno::Any maStackedBarsConnectedDefault
::std::multimap< tSchXMLIndexWithPart, css::uno::Reference< css::chart2::data::XLabeledDataSequence > > tSchXMLLSequencesPerIndex