1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_OOX_DRAWINGML_CHART_SERIESCONTEXT_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_SERIESCONTEXT_HXX
23 #include <drawingml/chart/chartcontextbase.hxx>
31 struct DataLabelModel
;
33 /** Handler for a chart data point label context (c:dLbl element).
35 class DataLabelContext
: public ContextBase
< DataLabelModel
>
38 explicit DataLabelContext( ::oox::core::ContextHandler2Helper
& rParent
, DataLabelModel
& rModel
);
39 virtual ~DataLabelContext();
41 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
42 virtual void onCharacters( const OUString
& rChars
) SAL_OVERRIDE
;
47 struct DataLabelsModel
;
49 /** Handler for a chart data point label context (c:dLbls element).
51 class DataLabelsContext
: public ContextBase
< DataLabelsModel
>
54 explicit DataLabelsContext( ::oox::core::ContextHandler2Helper
& rParent
, DataLabelsModel
& rModel
);
55 virtual ~DataLabelsContext();
57 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
58 virtual void onCharacters( const OUString
& rChars
) SAL_OVERRIDE
;
63 struct PictureOptionsModel
;
65 /** Handler for fill bitmap settings (c:pictureOptions element).
67 class PictureOptionsContext
: public ContextBase
< PictureOptionsModel
>
70 explicit PictureOptionsContext( ::oox::core::ContextHandler2Helper
& rParent
, PictureOptionsModel
& rModel
);
71 virtual ~PictureOptionsContext();
73 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
80 /** Handler for a series error bar context (c:errBars element).
82 class ErrorBarContext
: public ContextBase
< ErrorBarModel
>
85 explicit ErrorBarContext( ::oox::core::ContextHandler2Helper
& rParent
, ErrorBarModel
& rModel
);
86 virtual ~ErrorBarContext();
88 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
93 struct TrendlineLabelModel
;
95 /** Handler for a series trendline label context (c:trendlineLbl element).
97 class TrendlineLabelContext
: public ContextBase
< TrendlineLabelModel
>
100 explicit TrendlineLabelContext( ::oox::core::ContextHandler2Helper
& rParent
, TrendlineLabelModel
& rModel
);
101 virtual ~TrendlineLabelContext();
103 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
108 struct TrendlineModel
;
110 /** Handler for a series trendline context (c:trendline element).
112 class TrendlineContext
: public ContextBase
< TrendlineModel
>
115 explicit TrendlineContext( ::oox::core::ContextHandler2Helper
& rParent
, TrendlineModel
& rModel
);
116 virtual ~TrendlineContext();
118 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
119 virtual void onCharacters( const OUString
& rChars
) SAL_OVERRIDE
;
124 struct DataPointModel
;
126 /** Handler for a chart data point context (c:dPt element).
128 class DataPointContext
: public ContextBase
< DataPointModel
>
131 explicit DataPointContext( ::oox::core::ContextHandler2Helper
& rParent
, DataPointModel
& rModel
);
132 virtual ~DataPointContext();
134 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
141 /** Handler base class for chart data series contexts (c:ser element).
143 class SeriesContextBase
: public ContextBase
< SeriesModel
>
146 explicit SeriesContextBase( ::oox::core::ContextHandler2Helper
& rParent
, SeriesModel
& rModel
);
147 virtual ~SeriesContextBase();
149 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
154 /** Handler for a data series context for area chart types (c:ser element).
156 class AreaSeriesContext
: public SeriesContextBase
159 explicit AreaSeriesContext( ::oox::core::ContextHandler2Helper
& rParent
, SeriesModel
& rModel
);
160 virtual ~AreaSeriesContext();
162 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
167 /** Handler for a data series context for bar chart types (c:ser element).
169 class BarSeriesContext
: public SeriesContextBase
172 explicit BarSeriesContext( ::oox::core::ContextHandler2Helper
& rParent
, SeriesModel
& rModel
);
173 virtual ~BarSeriesContext();
175 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
180 /** Handler for a data series context for bubble chart types (c:ser element).
182 class BubbleSeriesContext
: public SeriesContextBase
185 explicit BubbleSeriesContext( ::oox::core::ContextHandler2Helper
& rParent
, SeriesModel
& rModel
);
186 virtual ~BubbleSeriesContext();
188 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
193 /** Handler for a data series context for line and stock chart types (c:ser
196 class LineSeriesContext
: public SeriesContextBase
199 explicit LineSeriesContext( ::oox::core::ContextHandler2Helper
& rParent
, SeriesModel
& rModel
);
200 virtual ~LineSeriesContext();
202 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
207 /** Handler for a data series context for pie and doughnut chart types (c:ser
210 class PieSeriesContext
: public SeriesContextBase
213 explicit PieSeriesContext( ::oox::core::ContextHandler2Helper
& rParent
, SeriesModel
& rModel
);
214 virtual ~PieSeriesContext();
216 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
221 /** Handler for a data series context for radar chart types (c:ser element).
223 class RadarSeriesContext
: public SeriesContextBase
226 explicit RadarSeriesContext( ::oox::core::ContextHandler2Helper
& rParent
, SeriesModel
& rModel
);
227 virtual ~RadarSeriesContext();
229 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
234 /** Handler for a data series context for scatter chart types (c:ser element).
236 class ScatterSeriesContext
: public SeriesContextBase
239 explicit ScatterSeriesContext( ::oox::core::ContextHandler2Helper
& rParent
, SeriesModel
& rModel
);
240 virtual ~ScatterSeriesContext();
242 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
247 /** Handler for a data series context for scatter chart types (c:ser element).
249 class SurfaceSeriesContext
: public SeriesContextBase
252 explicit SurfaceSeriesContext( ::oox::core::ContextHandler2Helper
& rParent
, SeriesModel
& rModel
);
253 virtual ~SurfaceSeriesContext();
255 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
261 } // namespace drawingml
266 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */