LibreOffice Module chart2 (master) 1
SeriesOptionsItemConverter.hxx
Go to the documentation of this file.
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
25namespace com::sun::star::chart2 { class XCoordinateSystem; }
26namespace com::sun::star::frame { class XModel; }
27namespace com::sun::star::uno { class XComponentContext; }
28namespace chart { class ChartModel; }
29namespace chart { class BaseCoordinateSystem; }
30namespace chart { class DataSeries; }
31
32namespace chart::wrapper
33{
34
36{
37public:
39 const rtl::Reference<::chart::ChartModel> & xChartModel,
40 css::uno::Reference< css::uno::XComponentContext > xContext,
41 const rtl::Reference<::chart::DataSeries> & rPropertySet,
42 SfxItemPool& rItemPool );
43 virtual ~SeriesOptionsItemConverter() override;
44
45protected:
46 virtual const WhichRangesContainer& GetWhichPairs() const override;
47 virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const override;
48
49 virtual void FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const override;
50 virtual bool ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet & rItemSet ) override;
51
52private:
54 css::uno::Reference< css::uno::XComponentContext> m_xCC;
55
59
60 sal_Int32 m_nBarOverlap;
61 sal_Int32 m_nGapWidth;
63
66
69
72
73 css::uno::Sequence< sal_Int32 > m_aSupportedMissingValueTreatments;
75
78
80};
81
82} // namespace chart::wrapper
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class serves for conversion between properties of an XPropertySet and SfxItems in SfxItemSets.
std::pair< tPropertyNameType, tMemberIdType > tPropertyNameWithMemberId
rtl::Reference<::chart::ChartModel > m_xChartModel
css::uno::Sequence< sal_Int32 > m_aSupportedMissingValueTreatments
virtual bool GetItemProperty(tWhichIdType nWhichId, tPropertyNameWithMemberId &rOutProperty) const override
implement this method to return a Property object for a given which id.
SeriesOptionsItemConverter(const rtl::Reference<::chart::ChartModel > &xChartModel, css::uno::Reference< css::uno::XComponentContext > xContext, const rtl::Reference<::chart::DataSeries > &rPropertySet, SfxItemPool &rItemPool)
virtual void FillSpecialItem(sal_uInt16 nWhichId, SfxItemSet &rOutItemSet) const override
for items that can not be mapped directly to a property.
css::uno::Reference< css::uno::XComponentContext > m_xCC
virtual bool ApplySpecialItem(sal_uInt16 nWhichId, const SfxItemSet &rItemSet) override
for items that can not be mapped directly to a property.
rtl::Reference< ::chart::BaseCoordinateSystem > m_xCooSys
virtual const WhichRangesContainer & GetWhichPairs() const override
implement this method to provide an array of which-ranges