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>
31 struct AxisDispUnitsModel
;
33 /** Handler for a value axis display units context (c:dispUnits element).
35 class AxisDispUnitsContext
: public ContextBase
< AxisDispUnitsModel
>
38 explicit AxisDispUnitsContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisDispUnitsModel
& rModel
);
39 virtual ~AxisDispUnitsContext();
41 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
48 /** Base class for axis context handlers (c:catAx, c:dateAx, c:serAx, c:valAx
51 class AxisContextBase
: public ContextBase
< AxisModel
>
54 explicit AxisContextBase( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
55 virtual ~AxisContextBase();
57 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
62 /** Handler for a category axis context (c:catAx element).
64 class CatAxisContext
: public AxisContextBase
67 explicit CatAxisContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
68 virtual ~CatAxisContext();
70 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
75 /** Handler for a date axis context (c:dateAx element).
77 class DateAxisContext
: public AxisContextBase
80 explicit DateAxisContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
81 virtual ~DateAxisContext();
83 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
88 /** Handler for a series axis context (c:serAx element).
90 class SerAxisContext
: public AxisContextBase
93 explicit SerAxisContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
94 virtual ~SerAxisContext();
96 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
101 /** Handler for a value axis context (c:valAx element).
103 class ValAxisContext
: public AxisContextBase
106 explicit ValAxisContext( ::oox::core::ContextHandler2Helper
& rParent
, AxisModel
& rModel
);
107 virtual ~ValAxisContext();
109 virtual ::oox::core::ContextHandlerRef
onCreateContext( sal_Int32 nElement
, const AttributeList
& rAttribs
) SAL_OVERRIDE
;
115 } // namespace drawingml
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */