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 
30 class SchXMLImportHelper;
31 
32 namespace 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 
51  css::uno::Any maErrorIndicatorDefault;
52  css::uno::Any maErrorCategoryDefault;
55  css::uno::Any maPercentageErrorDefault;
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 {
76 public:
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 
88 private:
91 
99  css::chart::ChartDataRowSource meDataRowSource;
101 
103  OUString msChartAddress;
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 {
128 private:
130  OUString& mrTitle;
131  css::uno::Reference< css::drawing::XShape > mxTitleShape;
132  OUString msAutoStyleName;
133 
134 public:
136  SvXMLImport& rImport,
137  OUString& rTitle,
138  css::uno::Reference< css::drawing::XShape > const & 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: */
OUString m_aXLinkHRefAttributeToIndicateDataProvider
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
SchXMLImportHelper & mrImportHelper
css::chart::ChartDataRowSource meDataRowSource
css::awt::Size maChartSize
virtual ~SchXMLTitleContext() override
void InitChart(const OUString &rChartTypeServiceName)
This method bundles some settings to the chart model and executes them with a locked controller...
tSchXMLLSequencesPerIndex maLSequencesPerIndex
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 ...
SchXMLImportHelper & mrImportHelper
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Any maStackedBarsConnectedDefault
SchXMLChartContext(SchXMLImportHelper &rImpHelper, SvXMLImport &rImport)
css::uno::Any maConstantErrorHighDefault
css::uno::Any maRegressionCurvesDefault
::std::vector< RegressionStyle > maRegressionStyleVector
css::uno::Any maPercentageErrorDefault
With this class you can import a element containing its data as element o...
css::uno::Reference< css::drawing::XShape > mxTitleShape
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:44
::std::vector< DataRowPointStyle > maSeriesStyleVector
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 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::Any maErrorCategoryDefault
css::uno::Reference< css::drawing::XShapes > mxDrawPage
css::uno::Any maErrorIndicatorDefault
SeriesDefaultsAndStyles maSeriesDefaultsAndStyles
virtual ~SchXMLChartContext() override
::std::multimap< tSchXMLIndexWithPart, css::uno::Reference< css::chart2::data::XLabeledDataSequence > > tSchXMLLSequencesPerIndex
SchXMLTitleContext(SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, OUString &rTitle, css::uno::Reference< css::drawing::XShape > const &xTitleShape)
css::uno::Any maConstantErrorLowDefault