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
25namespace oox::drawingml::chart {
26
27
28struct DataLabelModel;
29
32class DataLabelContext final : public ContextBase< DataLabelModel >
33{
34public:
35 explicit DataLabelContext( ::oox::core::ContextHandler2Helper& rParent, DataLabelModel& rModel );
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
43struct DataLabelsModel;
44
47class DataLabelsContext final : public ContextBase< DataLabelsModel >
48{
49public:
50 explicit DataLabelsContext( ::oox::core::ContextHandler2Helper& rParent, DataLabelsModel& rModel );
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
59
62class PictureOptionsContext final : public ContextBase< PictureOptionsModel >
63{
64public:
65 explicit PictureOptionsContext( ::oox::core::ContextHandler2Helper& rParent, PictureOptionsModel& rModel );
66 virtual ~PictureOptionsContext() override;
67
68 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
69};
70
71
72struct ErrorBarModel;
73
76class ErrorBarContext final : public ContextBase< ErrorBarModel >
77{
78public:
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
87
90class TrendlineLabelContext final : public ContextBase< TrendlineLabelModel >
91{
92public:
93 explicit TrendlineLabelContext( ::oox::core::ContextHandler2Helper& rParent, TrendlineLabelModel& rModel );
94 virtual ~TrendlineLabelContext() override;
95
96 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
97};
98
99
100struct TrendlineModel;
101
104class TrendlineContext final : public ContextBase< TrendlineModel >
105{
106public:
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
115struct DataPointModel;
116
119class DataPointContext final : public ContextBase< DataPointModel >
120{
121public:
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
129struct SeriesModel;
130
133class SeriesContextBase : public ContextBase< SeriesModel >
134{
135public:
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{
147public:
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{
159public:
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{
171public:
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{
184public:
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{
197public:
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{
209public:
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{
221public:
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{
233public:
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: */
Provides access to attribute values of an 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
AreaSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
Handler for a data series context for bar chart types (c:ser element).
BarSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Handler for a data series context for bubble chart types (c:ser element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
BubbleSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
Handler for a chart data point label context (c:dLbl element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
DataLabelContext(::oox::core::ContextHandler2Helper &rParent, DataLabelModel &rModel)
virtual void onCharacters(const OUString &rChars) override
Handler for a chart data point label context (c:dLbls element).
DataLabelsContext(::oox::core::ContextHandler2Helper &rParent, DataLabelsModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onCharacters(const OUString &rChars) override
Handler for a chart data point context (c:dPt element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
DataPointContext(::oox::core::ContextHandler2Helper &rParent, DataPointModel &rModel)
Handler for a series error bar context (c:errBars element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
ErrorBarContext(::oox::core::ContextHandler2Helper &rParent, ErrorBarModel &rModel)
Handler for a data series context for line and stock chart types (c:ser element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
LineSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
Handler for fill bitmap settings (c:pictureOptions element).
PictureOptionsContext(::oox::core::ContextHandler2Helper &rParent, PictureOptionsModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
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
PieSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
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
RadarSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
Handler for a data series context for scatter chart types (c:ser element).
ScatterSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Handler base class for chart data series contexts (c:ser element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
SeriesContextBase(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
Handler for a data series context for scatter chart types (c:ser element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
SurfaceSeriesContext(::oox::core::ContextHandler2Helper &rParent, SeriesModel &rModel)
Handler for a series trendline context (c:trendline element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onCharacters(const OUString &rChars) override
TrendlineContext(::oox::core::ContextHandler2Helper &rParent, TrendlineModel &rModel)
Handler for a series trendline label context (c:trendlineLbl element).
TrendlineLabelContext(::oox::core::ContextHandler2Helper &rParent, TrendlineLabelModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
::rtl::Reference< ContextHandler > ContextHandlerRef