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_TYPEGROUPCONTEXT_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_TYPEGROUPCONTEXT_HXX
23 #include <drawingml/chart/chartcontextbase.hxx>
25 namespace oox::drawingml::chart
{
28 struct UpDownBarsModel
;
30 /** Handler for an up/down bars context (c:upDownBars element).
32 class UpDownBarsContext final
: public ContextBase
< UpDownBarsModel
>
35 explicit UpDownBarsContext( ::oox::core::ContextHandler2Helper
& rParent
, UpDownBarsModel
& rModel
);
36 virtual ~UpDownBarsContext() override
;
38 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
42 struct TypeGroupModel
;
43 typedef ContextBase
< TypeGroupModel
> TypeGroupContextBase
;
46 /** Handler for area type group contexts (c:area3DChart, c:areaChart elements).
48 class AreaTypeGroupContext final
: public TypeGroupContextBase
51 explicit AreaTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
52 virtual ~AreaTypeGroupContext() override
;
54 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
58 /** Handler for bar type group contexts (c:bar3DChart, c:barChart elements).
60 class BarTypeGroupContext final
: public TypeGroupContextBase
63 explicit BarTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
64 virtual ~BarTypeGroupContext() override
;
66 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
70 /** Handler for bubble type group context (c:bubbleChart element).
72 class BubbleTypeGroupContext final
: public TypeGroupContextBase
75 explicit BubbleTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
76 virtual ~BubbleTypeGroupContext() override
;
78 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
82 /** Handler for line type group contexts (c:line3DChart, c:lineChart,
83 c:stockChart elements).
85 class LineTypeGroupContext final
: public TypeGroupContextBase
88 explicit LineTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
89 virtual ~LineTypeGroupContext() override
;
91 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
95 /** Handler for pie type group contexts (c:doughnutChart,
96 c:pie3DChart, c:pieChart elements).
98 class PieTypeGroupContext final
: public TypeGroupContextBase
101 explicit PieTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
102 virtual ~PieTypeGroupContext() override
;
104 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
108 /** Handler for of-pie type group contexts (c:ofPieChart elements).
110 class OfPieTypeGroupContext final
: public TypeGroupContextBase
113 explicit OfPieTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
114 virtual ~OfPieTypeGroupContext() override
;
116 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
120 /** Handler for radar type group context (c:radarChart element).
122 class RadarTypeGroupContext final
: public TypeGroupContextBase
125 explicit RadarTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
126 virtual ~RadarTypeGroupContext() override
;
128 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
132 /** Handler for scatter type group context (c:scatterChart element).
134 class ScatterTypeGroupContext final
: public TypeGroupContextBase
137 explicit ScatterTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
138 virtual ~ScatterTypeGroupContext() override
;
140 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
144 /** Handler for surface type group contexts (c:surface3DChart, c:surfaceChart
147 class SurfaceTypeGroupContext final
: public TypeGroupContextBase
150 explicit SurfaceTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
151 virtual ~SurfaceTypeGroupContext() override
;
153 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
157 } // namespace oox::drawingml::chart
161 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */