LibreOffice Module oox (master)  1
seriescontext.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 
20 #ifndef INCLUDED_OOX_DRAWINGML_CHART_SERIESCONTEXT_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_SERIESCONTEXT_HXX
22 
24 
25 namespace oox::drawingml::chart {
26 
27 
28 struct DataLabelModel;
29 
32 class DataLabelContext final : public ContextBase< DataLabelModel >
33 {
34 public:
36  virtual ~DataLabelContext() override;
37 
38  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
39  virtual void onCharacters( const OUString& rChars ) override;
40 };
41 
42 
43 struct DataLabelsModel;
44 
47 class DataLabelsContext final : public ContextBase< DataLabelsModel >
48 {
49 public:
51  virtual ~DataLabelsContext() override;
52 
53  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
54  virtual void onCharacters( const OUString& rChars ) override;
55 };
56 
57 
58 struct PictureOptionsModel;
59 
62 class PictureOptionsContext final : public ContextBase< PictureOptionsModel >
63 {
64 public:
66  virtual ~PictureOptionsContext() override;
67 
68  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
69 };
70 
71 
72 struct ErrorBarModel;
73 
76 class ErrorBarContext final : public ContextBase< ErrorBarModel >
77 {
78 public:
79  explicit ErrorBarContext( ::oox::core::ContextHandler2Helper& rParent, ErrorBarModel& rModel );
80  virtual ~ErrorBarContext() override;
81 
82  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
83 };
84 
85 
86 struct TrendlineLabelModel;
87 
90 class TrendlineLabelContext final : public ContextBase< TrendlineLabelModel >
91 {
92 public:
94  virtual ~TrendlineLabelContext() override;
95 
96  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
97 };
98 
99 
100 struct TrendlineModel;
101 
104 class TrendlineContext final : public ContextBase< TrendlineModel >
105 {
106 public:
107  explicit TrendlineContext( ::oox::core::ContextHandler2Helper& rParent, TrendlineModel& rModel );
108  virtual ~TrendlineContext() override;
109 
110  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
111  virtual void onCharacters( const OUString& rChars ) override;
112 };
113 
114 
115 struct DataPointModel;
116 
119 class DataPointContext final : public ContextBase< DataPointModel >
120 {
121 public:
122  explicit DataPointContext( ::oox::core::ContextHandler2Helper& rParent, DataPointModel& rModel );
123  virtual ~DataPointContext() override;
124 
125  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
126 };
127 
128 
129 struct SeriesModel;
130 
133 class SeriesContextBase : public ContextBase< SeriesModel >
134 {
135 public:
136  explicit SeriesContextBase( ::oox::core::ContextHandler2Helper& rParent, SeriesModel& rModel );
137  virtual ~SeriesContextBase() override;
138 
139  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
140 };
141 
142 
146 {
147 public:
148  explicit AreaSeriesContext( ::oox::core::ContextHandler2Helper& rParent, SeriesModel& rModel );
149  virtual ~AreaSeriesContext() override;
150 
151  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
152 };
153 
154 
158 {
159 public:
160  explicit BarSeriesContext( ::oox::core::ContextHandler2Helper& rParent, SeriesModel& rModel );
161  virtual ~BarSeriesContext() override;
162 
163  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
164 };
165 
166 
170 {
171 public:
172  explicit BubbleSeriesContext( ::oox::core::ContextHandler2Helper& rParent, SeriesModel& rModel );
173  virtual ~BubbleSeriesContext() override;
174 
175  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
176 };
177 
178 
183 {
184 public:
185  explicit LineSeriesContext( ::oox::core::ContextHandler2Helper& rParent, SeriesModel& rModel );
186  virtual ~LineSeriesContext() override;
187 
188  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
189 };
190 
191 
196 {
197 public:
198  explicit PieSeriesContext( ::oox::core::ContextHandler2Helper& rParent, SeriesModel& rModel );
199  virtual ~PieSeriesContext() override;
200 
201  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
202 };
203 
204 
208 {
209 public:
210  explicit RadarSeriesContext( ::oox::core::ContextHandler2Helper& rParent, SeriesModel& rModel );
211  virtual ~RadarSeriesContext() override;
212 
213  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
214 };
215 
216 
220 {
221 public:
222  explicit ScatterSeriesContext( ::oox::core::ContextHandler2Helper& rParent, SeriesModel& rModel );
223  virtual ~ScatterSeriesContext() override;
224 
225  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
226 };
227 
228 
232 {
233 public:
234  explicit SurfaceSeriesContext( ::oox::core::ContextHandler2Helper& rParent, SeriesModel& rModel );
235  virtual ~SurfaceSeriesContext() override;
236 
237  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
238 };
239 
240 
241 } // namespace oox::drawingml::chart
242 
243 #endif
244 
245 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void onCharacters(const OUString &rChars) override
Will be called before a new child element starts, or if the current element is about to be left...
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
AreaSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
SurfaceSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
LineSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
Handler for a chart data point label context (c:dLbl element).
TrendlineContext(::oox::core::ContextHandler2Helper &rParent, TrendlineModel &rModel)
Handler for a data series context for pie and doughnut chart types (c:ser element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
SeriesContextBase(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
PieSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
ScatterSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Handler for a series trendline label context (c:trendlineLbl element).
ErrorBarContext(::oox::core::ContextHandler2Helper &rParent, ErrorBarModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
DataLabelsContext(::oox::core::ContextHandler2Helper &rParent, DataLabelsModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
RadarSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
DataLabelContext(::oox::core::ContextHandler2Helper &rParent, DataLabelModel &rModel)
Handler for a data series context for scatter chart types (c:ser element).
Handler for a data series context for line and stock chart types (c:ser element). ...
Handler base class for chart data series contexts (c:ser element).
Handler for a data series context for radar chart types (c:ser element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Handler for a data series context for area chart types (c:ser element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Handler for fill bitmap settings (c:pictureOptions element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Provides access to attribute values of an element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Handler for a chart data point label context (c:dLbls element).
virtual void onCharacters(const OUString &rChars) override
Will be called before a new child element starts, or if the current element is about to be left...
Handler for a data series context for bubble chart types (c:ser element).
Handler for a data series context for bar chart types (c:ser element).
DataPointContext(::oox::core::ContextHandler2Helper &rParent, DataPointModel &rModel)
virtual void onCharacters(const OUString &rChars) override
Will be called before a new child element starts, or if the current element is about to be left...
Handler for a chart data point context (c:dPt element).
Handler for a series trendline context (c:trendline element).
::rtl::Reference< ContextHandler > ContextHandlerRef
BubbleSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
Handler for a data series context for scatter chart types (c:ser element).
PictureOptionsContext(::oox::core::ContextHandler2Helper &rParent, PictureOptionsModel &rModel)
Handler for a series error bar context (c:errBars element).
TrendlineLabelContext(::oox::core::ContextHandler2Helper &rParent, TrendlineLabelModel &rModel)
Helper class that provides a context stack.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
BarSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.