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 #ifndef INCLUDED_XMLOFF_SOURCE_CHART_SCHXMLCHARTCONTEXT_HXX
20 #define INCLUDED_XMLOFF_SOURCE_CHART_SCHXMLCHARTCONTEXT_HXX
21 
22 #include <xmloff/xmlictxt.hxx>
23 #include <com/sun/star/drawing/XShape.hpp>
24 #include <com/sun/star/chart/ChartDataRowSource.hpp>
25 #include <com/sun/star/awt/Size.hpp>
26 
27 #include "transporttypes.hxx"
28 
29 #include <vector>
30 
31 class SchXMLImportHelper;
32 
33 namespace com::sun::star {
34  namespace chart {
35  class XChartDocument;
36  struct ChartSeriesAddress;
37  }
38  namespace xml::sax {
39  class XAttributeList;
40  }
41  namespace drawing {
42  class XShapes;
43  }
44 }
45 
47 {
48  //default values for series:
49  css::uno::Any maSymbolTypeDefault;
50  css::uno::Any maDataCaptionDefault;
51 
52  css::uno::Any maErrorIndicatorDefault;
53  css::uno::Any maErrorCategoryDefault;
56  css::uno::Any maPercentageErrorDefault;
57  css::uno::Any maErrorMarginDefault;
58 
59  css::uno::Any maMeanValueDefault;
61 
62  css::uno::Any maStackedDefault;
63  css::uno::Any maPercentDefault;
64  css::uno::Any maDeepDefault;
66 
67  //additional information
68  css::uno::Any maLinesOnProperty;
69 
70  //styles for series and datapoints
71  ::std::vector< DataRowPointStyle > maSeriesStyleVector;
72  ::std::vector< RegressionStyle > maRegressionStyleVector;
73 };
74 
76 {
77 public:
79  SvXMLImport& rImport );
80  virtual ~SchXMLChartContext() override;
81 
82  virtual void SAL_CALL startFastElement( sal_Int32 nElement,
83  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
84  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
85  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
86  sal_Int32 nElement,
87  const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
88 
89 private:
92 
100  css::chart::ChartDataRowSource meDataRowSource;
102 
104  OUString msChartAddress;
105 
107 
110 
111  css::uno::Reference< css::drawing::XShapes > mxDrawPage;
112  OUString msColTrans;
113  OUString msRowTrans;
115 
116  css::awt::Size maChartSize;
117 
122  void InitChart (const OUString & rChartTypeServiceName);
123 
125 };
126 
128 {
129 private:
131  OUString& mrTitle;
132  css::uno::Reference< css::drawing::XShape > mxTitleShape;
133  OUString msAutoStyleName;
134 
135 public:
137  SvXMLImport& rImport,
138  OUString& rTitle,
139  css::uno::Reference< css::drawing::XShape > const & xTitleShape );
140  virtual ~SchXMLTitleContext() override;
141 
142  virtual void SAL_CALL startFastElement( sal_Int32 nElement,
143  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
144  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
145  sal_Int32 nElement,
146  const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
147 };
148 
149 #endif // INCLUDED_XMLOFF_SOURCE_CHART_SCHXMLCHARTCONTEXT_HXX
150 
151 /* 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:45
::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