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/.
12 #include "ItemConverter.hxx"
13 #include <rtl/ref.hxx>
16 namespace com::sun::star::awt
20 namespace com::sun::star::beans
31 namespace chart::wrapper
33 /** Convert data table properties to and from ItemSet and UNO PropertySet */
34 class DataTableItemConverter final
: public ItemConverter
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
;
47 virtual const WhichRangesContainer
& GetWhichPairs() const override
;
48 virtual bool GetItemProperty(tWhichIdType nWhichId
,
49 tPropertyNameWithMemberId
& rOutProperty
) const override
;
52 std::vector
<std::unique_ptr
<ItemConverter
>> m_aConverters
;
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */