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_AXISCONTEXT_HXX
21 #define INCLUDED_OOX_DRAWINGML_CHART_AXISCONTEXT_HXX
23 #include <drawingml/chart/chartcontextbase.hxx>
25 namespace oox::drawingml::chart
{
28 struct AxisDispUnitsModel
;
30 /** Handler for a value axis display units context (c:dispUnits element).
32 class AxisDispUnitsContext final
: public ContextBase
< AxisDispUnitsModel
>
35 explicit AxisDispUnitsContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisDispUnitsModel
& rModel
);
36 virtual ~AxisDispUnitsContext() override
;
38 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
44 /** Base class for axis context handlers (c:catAx, c:dateAx, c:serAx, c:valAx
47 class AxisContextBase
: public ContextBase
< AxisModel
>
50 explicit AxisContextBase( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
51 virtual ~AxisContextBase() override
;
53 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
57 /** Handler for a category axis context (c:catAx element).
59 class CatAxisContext final
: public AxisContextBase
62 explicit CatAxisContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
63 virtual ~CatAxisContext() override
;
65 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
69 /** Handler for a date axis context (c:dateAx element).
71 class DateAxisContext final
: public AxisContextBase
74 explicit DateAxisContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
75 virtual ~DateAxisContext() override
;
77 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
81 /** Handler for a series axis context (c:serAx element).
83 class SerAxisContext final
: public AxisContextBase
86 explicit SerAxisContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
87 virtual ~SerAxisContext() override
;
89 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
93 /** Handler for a value axis context (c:valAx element).
95 class ValAxisContext final
: public AxisContextBase
98 explicit ValAxisContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
99 virtual ~ValAxisContext() override
;
101 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
105 } // namespace oox::drawingml::chart
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */