tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / controller / inc / DataTableItemConverter.hxx
blobf3809632f8a5ad4e3732178197a0281858ea27fe
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/.
8 */
10 #pragma once
12 #include "ItemConverter.hxx"
13 #include <rtl/ref.hxx>
14 #include <vector>
16 namespace com::sun::star::awt
18 struct Size;
20 namespace com::sun::star::beans
22 class XPropertySet;
24 namespace chart
26 class ChartModel;
29 class SdrModel;
31 namespace chart::wrapper
33 /** Convert data table properties to and from ItemSet and UNO PropertySet */
34 class DataTableItemConverter final : public ItemConverter
36 public:
37 DataTableItemConverter(const css::uno::Reference<css::beans::XPropertySet>& rPropertySet,
38 SfxItemPool& rItemPool, SdrModel& rDrawModel,
39 const rtl::Reference<::chart::ChartModel>& xChartDoc);
41 virtual ~DataTableItemConverter() override;
43 virtual void FillItemSet(SfxItemSet& rOutItemSet) const override;
44 virtual bool ApplyItemSet(const SfxItemSet& rItemSet) override;
46 protected:
47 virtual const WhichRangesContainer& GetWhichPairs() const override;
48 virtual bool GetItemProperty(tWhichIdType nWhichId,
49 tPropertyNameWithMemberId& rOutProperty) const override;
51 private:
52 std::vector<std::unique_ptr<ItemConverter>> m_aConverters;
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */