Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / oox / inc / drawingml / chart / typegroupcontext.hxx
blob4c0a999a443f916ee7c322c21fd85b3141243fe1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 {
26 namespace drawingml {
27 namespace chart {
30 struct UpDownBarsModel;
32 /** Handler for an up/down bars context (c:upDownBars element).
34 class UpDownBarsContext : public ContextBase< UpDownBarsModel >
36 public:
37 explicit UpDownBarsContext( ::oox::core::ContextHandler2Helper& rParent, UpDownBarsModel& rModel );
38 virtual ~UpDownBarsContext() override;
40 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
44 struct TypeGroupModel;
45 typedef ContextBase< TypeGroupModel > TypeGroupContextBase;
48 /** Handler for area type group contexts (c:area3DChart, c:areaChart elements).
50 class AreaTypeGroupContext : public TypeGroupContextBase
52 public:
53 explicit AreaTypeGroupContext( ::oox::core::ContextHandler2Helper& rParent, TypeGroupModel& rModel );
54 virtual ~AreaTypeGroupContext() override;
56 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
60 /** Handler for bar type group contexts (c:bar3DChart, c:barChart elements).
62 class BarTypeGroupContext : public TypeGroupContextBase
64 public:
65 explicit BarTypeGroupContext( ::oox::core::ContextHandler2Helper& rParent, TypeGroupModel& rModel );
66 virtual ~BarTypeGroupContext() override;
68 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
72 /** Handler for bubble type group context (c:bubbleChart element).
74 class BubbleTypeGroupContext : public TypeGroupContextBase
76 public:
77 explicit BubbleTypeGroupContext( ::oox::core::ContextHandler2Helper& rParent, TypeGroupModel& rModel );
78 virtual ~BubbleTypeGroupContext() override;
80 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
84 /** Handler for line type group contexts (c:line3DChart, c:lineChart,
85 c:stockChart elements).
87 class LineTypeGroupContext : public TypeGroupContextBase
89 public:
90 explicit LineTypeGroupContext( ::oox::core::ContextHandler2Helper& rParent, TypeGroupModel& rModel );
91 virtual ~LineTypeGroupContext() override;
93 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
97 /** Handler for pie type group contexts (c:doughnutChart, c:ofPieChart,
98 c:pie3DChart, c:pieChart elements).
100 class PieTypeGroupContext : public TypeGroupContextBase
102 public:
103 explicit PieTypeGroupContext( ::oox::core::ContextHandler2Helper& rParent, TypeGroupModel& rModel );
104 virtual ~PieTypeGroupContext() override;
106 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
110 /** Handler for radar type group context (c:radarChart element).
112 class RadarTypeGroupContext : public TypeGroupContextBase
114 public:
115 explicit RadarTypeGroupContext( ::oox::core::ContextHandler2Helper& rParent, TypeGroupModel& rModel );
116 virtual ~RadarTypeGroupContext() override;
118 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
122 /** Handler for scatter type group context (c:scatterChart element).
124 class ScatterTypeGroupContext : public TypeGroupContextBase
126 public:
127 explicit ScatterTypeGroupContext( ::oox::core::ContextHandler2Helper& rParent, TypeGroupModel& rModel );
128 virtual ~ScatterTypeGroupContext() override;
130 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
134 /** Handler for surface type group contexts (c:surface3DChart, c:surfaceChart
135 elements).
137 class SurfaceTypeGroupContext : public TypeGroupContextBase
139 public:
140 explicit SurfaceTypeGroupContext( ::oox::core::ContextHandler2Helper& rParent, TypeGroupModel& rModel );
141 virtual ~SurfaceTypeGroupContext() override;
143 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
147 } // namespace chart
148 } // namespace drawingml
149 } // namespace oox
151 #endif
153 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */