Debian Codegraph @

chart2/source/controller/inc/SeriesOptionsItemConverter.hxx

raw
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 #pragma once
20
21 #include "ItemConverter.hxx"
22 #include <com/sun/star/uno/Sequence.h>
23 #include <rtl/ref.hxx>
24
25 namespace com::sun::star::uno { class XComponentContext; }
26 namespace chart { class ChartModel; }
27 namespace chart { class BaseCoordinateSystem; }
28 namespace chart { class DataSeries; }
29
30 namespace chart::wrapper
31 {
32
33 class SeriesOptionsItemConverter final : public ItemConverter
34 {
35 public:
36 SeriesOptionsItemConverter(
37 const rtl::Reference<::chart::ChartModel> & xChartModel,
38 css::uno::Reference< css::uno::XComponentContext > xContext,
39 const rtl::Reference<::chart::DataSeries> & rPropertySet,
40 SfxItemPool& rItemPool );
41 virtual ~SeriesOptionsItemConverter() override;
42
43 protected:
44 virtual const WhichRangesContainer& GetWhichPairs() const override;
45 virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const override;
46
47 virtual void FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const override;
48 virtual bool ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet & rItemSet ) override;
49
50 private:
51 rtl::Reference<::chart::ChartModel> m_xChartModel;
52 css::uno::Reference< css::uno::XComponentContext> m_xCC;
53
54 bool m_bAttachToMainAxis;
55 bool m_bSupportingOverlapAndGapWidthProperties;
56 bool m_bSupportingBarConnectors;
57
58 sal_Int32 m_nBarOverlap;
59 sal_Int32 m_nGapWidth;
60 bool m_bConnectBars;
61
62 bool m_bSupportingAxisSideBySide;
63 bool m_bGroupBarsPerAxis;
64
65 bool m_bSupportingStartingAngle;
66 sal_Int32 m_nStartingAngle;
67
68 bool m_bClockwise;
69 rtl::Reference< ::chart::BaseCoordinateSystem > m_xCooSys;
70
71 css::uno::Sequence< sal_Int32 > m_aSupportedMissingValueTreatments;
72 sal_Int32 m_nMissingValueTreatment;
73
74 bool m_bSupportingPlottingOfHiddenCells;
75 bool m_bIncludeHiddenCells;
76
77 bool m_bHideLegendEntry;
78 };
79
80 } // namespace chart::wrapper
81
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */