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>
31 struct UpDownBarsModel
;
33 /** Handler for an up/down bars context (c:upDownBars element).
35 class UpDownBarsContext
: public ContextBase
< UpDownBarsModel
>
38 explicit UpDownBarsContext( ::oox::core::ContextHandler2Helper
& rParent
, UpDownBarsModel
& rModel
);
39 virtual ~UpDownBarsContext();
41 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
46 struct TypeGroupModel
;
47 typedef ContextBase
< TypeGroupModel
> TypeGroupContextBase
;
51 /** Handler for area type group contexts (c:area3DChart, c:areaChart elements).
53 class AreaTypeGroupContext
: public TypeGroupContextBase
56 explicit AreaTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
57 virtual ~AreaTypeGroupContext();
59 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
64 /** Handler for bar type group contexts (c:bar3DChart, c:barChart elements).
66 class BarTypeGroupContext
: public TypeGroupContextBase
69 explicit BarTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
70 virtual ~BarTypeGroupContext();
72 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
77 /** Handler for bubble type group context (c:bubbleChart element).
79 class BubbleTypeGroupContext
: public TypeGroupContextBase
82 explicit BubbleTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
83 virtual ~BubbleTypeGroupContext();
85 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
90 /** Handler for line type group contexts (c:line3DChart, c:lineChart,
91 c:stockChart elements).
93 class LineTypeGroupContext
: public TypeGroupContextBase
96 explicit LineTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
97 virtual ~LineTypeGroupContext();
99 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
104 /** Handler for pie type group contexts (c:doughnutChart, c:ofPieChart,
105 c:pie3DChart, c:pieChart elements).
107 class PieTypeGroupContext
: public TypeGroupContextBase
110 explicit PieTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
111 virtual ~PieTypeGroupContext();
113 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
118 /** Handler for radar type group context (c:radarChart element).
120 class RadarTypeGroupContext
: public TypeGroupContextBase
123 explicit RadarTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
124 virtual ~RadarTypeGroupContext();
126 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
131 /** Handler for scatter type group context (c:scatterChart element).
133 class ScatterTypeGroupContext
: public TypeGroupContextBase
136 explicit ScatterTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
137 virtual ~ScatterTypeGroupContext();
139 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
144 /** Handler for surface type group contexts (c:surface3DChart, c:surfaceChart
147 class SurfaceTypeGroupContext
: public TypeGroupContextBase
150 explicit SurfaceTypeGroupContext( ::oox::core::ContextHandler2Helper
& rParent
, TypeGroupModel
& rModel
);
151 virtual ~SurfaceTypeGroupContext();
153 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
159 } // namespace drawingml
164 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */