1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef CHART_SERIESOPTIONSITEMCONVERTER_HXX
29 #define CHART_SERIESOPTIONSITEMCONVERTER_HXX
31 #include "ItemConverter.hxx"
34 #include <com/sun/star/frame/XModel.hpp>
35 #include <com/sun/star/uno/XComponentContext.hpp>
36 #include <com/sun/star/chart2/XCoordinateSystem.hpp>
43 class SeriesOptionsItemConverter
:
44 public ::comphelper::ItemConverter
47 SeriesOptionsItemConverter(
48 const ::com::sun::star::uno::Reference
<
49 ::com::sun::star::frame::XModel
> & xChartModel
,
50 const ::com::sun::star::uno::Reference
<
51 ::com::sun::star::uno::XComponentContext
> & xContext
,
52 const ::com::sun::star::uno::Reference
<
53 ::com::sun::star::beans::XPropertySet
> & rPropertySet
,
54 SfxItemPool
& rItemPool
);
55 virtual ~SeriesOptionsItemConverter();
58 virtual const sal_uInt16
* GetWhichPairs() const;
59 virtual bool GetItemProperty( tWhichIdType nWhichId
, tPropertyNameWithMemberId
& rOutProperty
) const;
61 virtual void FillSpecialItem( sal_uInt16 nWhichId
, SfxItemSet
& rOutItemSet
) const
62 throw( ::com::sun::star::uno::Exception
);
63 virtual bool ApplySpecialItem( sal_uInt16 nWhichId
, const SfxItemSet
& rItemSet
)
64 throw( ::com::sun::star::uno::Exception
);
67 ::com::sun::star::uno::Reference
<
68 ::com::sun::star::frame::XModel
> m_xChartModel
;
69 ::com::sun::star::uno::Reference
<
70 ::com::sun::star::uno::XComponentContext
> m_xCC
;
72 bool m_bAttachToMainAxis
;
73 bool m_bSupportingOverlapAndGapWidthProperties
;
74 bool m_bSupportingBarConnectors
;
76 sal_Int32 m_nBarOverlap
;
77 sal_Int32 m_nGapWidth
;
78 sal_Bool m_bConnectBars
;
80 bool m_bSupportingAxisSideBySide
;
81 bool m_bGroupBarsPerAxis
;
82 bool m_bAllSeriesAttachedToSameAxis
;
83 sal_Int32 m_nAllSeriesAxisIndex
;
85 bool m_bSupportingStartingAngle
;
86 sal_Int32 m_nStartingAngle
;
89 ::com::sun::star::uno::Reference
<
90 ::com::sun::star::chart2::XCoordinateSystem
> m_xCooSys
;
92 ::com::sun::star::uno::Sequence
< sal_Int32
> m_aSupportedMissingValueTreatments
;
93 sal_Int32 m_nMissingValueTreatment
;
95 bool m_bSupportingPlottingOfHiddenCells
;
96 bool m_bIncludeHiddenCells
;
99 } // namespace wrapper
102 // CHART_SERIESOPTIONSITEMCONVERTER_HXX
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */