tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / controller / inc / MultipleChartConverters.hxx
blob8fc9f33b43671e48c33784f3403b31c816ea5a79
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
19 #pragma once
21 #include "MultipleItemConverter.hxx"
22 #include <com/sun/star/awt/Size.hpp>
23 #include <rtl/ref.hxx>
24 #include <optional>
26 namespace com::sun::star::frame { class XModel; }
27 namespace com::sun::star::lang { class XMultiServiceFactory; }
28 namespace chart { class ChartModel; }
29 class SdrModel;
31 namespace chart::wrapper {
33 class AllAxisItemConverter final : public MultipleItemConverter
35 public:
36 AllAxisItemConverter(
37 const rtl::Reference<::chart::ChartModel> & xChartModel,
38 SfxItemPool& rItemPool,
39 SdrModel& rDrawModel,
40 const std::optional<css::awt::Size>& pRefSize );
42 virtual ~AllAxisItemConverter() override;
44 protected:
45 virtual const WhichRangesContainer& GetWhichPairs() const override;
48 class AllGridItemConverter final : public MultipleItemConverter
50 public:
51 AllGridItemConverter(
52 const rtl::Reference<::chart::ChartModel>& xChartModel,
53 SfxItemPool& rItemPool,
54 SdrModel& rDrawModel,
55 const css::uno::Reference<css::lang::XMultiServiceFactory> & xNamedPropertyContainerFactory );
56 virtual ~AllGridItemConverter() override;
58 protected:
59 virtual const WhichRangesContainer& GetWhichPairs() const override;
62 class AllDataLabelItemConverter final : public MultipleItemConverter
64 public:
65 AllDataLabelItemConverter(
66 const rtl::Reference<::chart::ChartModel>& xChartModel,
67 SfxItemPool& rItemPool,
68 SdrModel& rDrawModel,
69 const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory );
71 virtual ~AllDataLabelItemConverter() override;
73 protected:
74 virtual const WhichRangesContainer& GetWhichPairs() const override;
77 class AllTitleItemConverter final : public MultipleItemConverter
79 public:
80 AllTitleItemConverter(
81 const rtl::Reference<::chart::ChartModel>& xChartModel,
82 SfxItemPool& rItemPool, SdrModel& rDrawModel,
83 const css::uno::Reference<css::lang::XMultiServiceFactory>& xNamedPropertyContainerFactory );
85 virtual ~AllTitleItemConverter() override;
87 protected:
88 virtual const WhichRangesContainer& GetWhichPairs() const override;
91 class AllSeriesStatisticsConverter final : public MultipleItemConverter
93 public:
94 AllSeriesStatisticsConverter(
95 const rtl::Reference<::chart::ChartModel>& xChartModel, SfxItemPool& rItemPool );
96 virtual ~AllSeriesStatisticsConverter() override;
98 protected:
99 virtual const WhichRangesContainer& GetWhichPairs() const override;
102 } // namespace chart::wrapper
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */