LibreOffice Module oox (master)  1
typegroupcontext.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_TYPEGROUPCONTEXT_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_TYPEGROUPCONTEXT_HXX
22 
24 
25 namespace oox::drawingml::chart {
26 
27 
28 struct UpDownBarsModel;
29 
32 class UpDownBarsContext final : public ContextBase< UpDownBarsModel >
33 {
34 public:
36  virtual ~UpDownBarsContext() override;
37 
38  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
39 };
40 
41 
44 
45 
48 class AreaTypeGroupContext final : public TypeGroupContextBase
49 {
50 public:
52  virtual ~AreaTypeGroupContext() override;
53 
54  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
55 };
56 
57 
60 class BarTypeGroupContext final : public TypeGroupContextBase
61 {
62 public:
64  virtual ~BarTypeGroupContext() override;
65 
66  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
67 };
68 
69 
72 class BubbleTypeGroupContext final : public TypeGroupContextBase
73 {
74 public:
76  virtual ~BubbleTypeGroupContext() override;
77 
78  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
79 };
80 
81 
85 class LineTypeGroupContext final : public TypeGroupContextBase
86 {
87 public:
89  virtual ~LineTypeGroupContext() override;
90 
91  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
92 };
93 
94 
98 class PieTypeGroupContext final : public TypeGroupContextBase
99 {
100 public:
102  virtual ~PieTypeGroupContext() override;
103 
104  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
105 };
106 
107 
110 class RadarTypeGroupContext final : public TypeGroupContextBase
111 {
112 public:
114  virtual ~RadarTypeGroupContext() override;
115 
116  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
117 };
118 
119 
122 class ScatterTypeGroupContext final : public TypeGroupContextBase
123 {
124 public:
126  virtual ~ScatterTypeGroupContext() override;
127 
128  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
129 };
130 
131 
135 class SurfaceTypeGroupContext final : public TypeGroupContextBase
136 {
137 public:
139  virtual ~SurfaceTypeGroupContext() override;
140 
141  virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override;
142 };
143 
144 
145 } // namespace oox::drawingml::chart
146 
147 #endif
148 
149 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Handler for an up/down bars context (c:upDownBars element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Handler for bar type group contexts (c:bar3DChart, c:barChart elements).
Handler for scatter type group context (c:scatterChart element).
Handler for radar type group context (c:radarChart element).
SurfaceTypeGroupContext(::oox::core::ContextHandler2Helper &rParent, TypeGroupModel &rModel)
ContextBase< TypeGroupModel > TypeGroupContextBase
PieTypeGroupContext(::oox::core::ContextHandler2Helper &rParent, TypeGroupModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
LineTypeGroupContext(::oox::core::ContextHandler2Helper &rParent, TypeGroupModel &rModel)
Handler for bubble type group context (c:bubbleChart element).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
AreaTypeGroupContext(::oox::core::ContextHandler2Helper &rParent, TypeGroupModel &rModel)
Handler for line type group contexts (c:line3DChart, c:lineChart, c:stockChart elements).
UpDownBarsContext(::oox::core::ContextHandler2Helper &rParent, UpDownBarsModel &rModel)
Provides access to attribute values of an element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
BubbleTypeGroupContext(::oox::core::ContextHandler2Helper &rParent, TypeGroupModel &rModel)
::rtl::Reference< ContextHandler > ContextHandlerRef
RadarTypeGroupContext(::oox::core::ContextHandler2Helper &rParent, TypeGroupModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
Handler for pie type group contexts (c:doughnutChart, c:ofPieChart, c:pie3DChart, c:pieChart elements...
Helper class that provides a context stack.
Handler for area type group contexts (c:area3DChart, c:areaChart elements).
Handler for surface type group contexts (c:surface3DChart, c:surfaceChart elements).
BarTypeGroupContext(::oox::core::ContextHandler2Helper &rParent, TypeGroupModel &rModel)
ScatterTypeGroupContext(::oox::core::ContextHandler2Helper &rParent, TypeGroupModel &rModel)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.