Debian Codegraph @

chart2/source/controller/inc/MultipleChartConverters.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 "MultipleItemConverter.hxx"
22 #include <com/sun/star/awt/Size.hpp>
23 #include <rtl/ref.hxx>
24 #include <optional>
25
26 namespace chart { class ChartModel; }
27 class SdrModel;
28
29 namespace chart::wrapper {
30
31 class AllAxisItemConverter final : public MultipleItemConverter
32 {
33 public:
34 AllAxisItemConverter(
35 const rtl::Reference<::chart::ChartModel> & xChartModel,
36 SfxItemPool& rItemPool,
37 SdrModel& rDrawModel,
38 const std::optional<css::awt::Size>& pRefSize );
39
40 virtual ~AllAxisItemConverter() override;
41
42 protected:
43 virtual const WhichRangesContainer& GetWhichPairs() const override;
44 };
45
46 class AllGridItemConverter final : public MultipleItemConverter
47 {
48 public:
49 AllGridItemConverter(
50 const rtl::Reference<::chart::ChartModel>& xChartModel,
51 SfxItemPool& rItemPool,
52 SdrModel& rDrawModel );
53 virtual ~AllGridItemConverter() override;
54
55 protected:
56 virtual const WhichRangesContainer& GetWhichPairs() const override;
57 };
58
59 class AllDataLabelItemConverter final : public MultipleItemConverter
60 {
61 public:
62 AllDataLabelItemConverter(
63 const rtl::Reference<::chart::ChartModel>& xChartModel,
64 SfxItemPool& rItemPool,
65 SdrModel& rDrawModel );
66
67 virtual ~AllDataLabelItemConverter() override;
68
69 protected:
70 virtual const WhichRangesContainer& GetWhichPairs() const override;
71 };
72
73 class AllTitleItemConverter final : public MultipleItemConverter
74 {
75 public:
76 AllTitleItemConverter(
77 const rtl::Reference<::chart::ChartModel>& xChartModel,
78 SfxItemPool& rItemPool, SdrModel& rDrawModel );
79
80 virtual ~AllTitleItemConverter() override;
81
82 protected:
83 virtual const WhichRangesContainer& GetWhichPairs() const override;
84 };
85
86 class AllSeriesStatisticsConverter final : public MultipleItemConverter
87 {
88 public:
89 AllSeriesStatisticsConverter(
90 const rtl::Reference<::chart::ChartModel>& xChartModel, SfxItemPool& rItemPool );
91 virtual ~AllSeriesStatisticsConverter() override;
92
93 protected:
94 virtual const WhichRangesContainer& GetWhichPairs() const override;
95 };
96
97 } // namespace chart::wrapper
98
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */