1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SeriesOptionsItemConverter.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART_SERIESOPTIONSITEMCONVERTER_HXX
31 #define CHART_SERIESOPTIONSITEMCONVERTER_HXX
33 #include "ItemConverter.hxx"
36 #include <com/sun/star/frame/XModel.hpp>
37 #include <com/sun/star/uno/XComponentContext.hpp>
38 #include <com/sun/star/chart2/XCoordinateSystem.hpp>
45 class SeriesOptionsItemConverter
:
46 public ::comphelper::ItemConverter
49 SeriesOptionsItemConverter(
50 const ::com::sun::star::uno::Reference
<
51 ::com::sun::star::frame::XModel
> & xChartModel
,
52 const ::com::sun::star::uno::Reference
<
53 ::com::sun::star::uno::XComponentContext
> & xContext
,
54 const ::com::sun::star::uno::Reference
<
55 ::com::sun::star::beans::XPropertySet
> & rPropertySet
,
56 SfxItemPool
& rItemPool
);
57 virtual ~SeriesOptionsItemConverter();
60 virtual const USHORT
* GetWhichPairs() const;
61 virtual bool GetItemProperty( tWhichIdType nWhichId
, tPropertyNameWithMemberId
& rOutProperty
) const;
63 virtual void FillSpecialItem( USHORT nWhichId
, SfxItemSet
& rOutItemSet
) const
64 throw( ::com::sun::star::uno::Exception
);
65 virtual bool ApplySpecialItem( USHORT nWhichId
, const SfxItemSet
& rItemSet
)
66 throw( ::com::sun::star::uno::Exception
);
69 ::com::sun::star::uno::Reference
<
70 ::com::sun::star::frame::XModel
> m_xChartModel
;
71 ::com::sun::star::uno::Reference
<
72 ::com::sun::star::uno::XComponentContext
> m_xCC
;
74 bool m_bAttachToMainAxis
;
75 bool m_bSupportingOverlapAndGapWidthProperties
;
76 bool m_bSupportingBarConnectors
;
78 sal_Int32 m_nBarOverlap
;
79 sal_Int32 m_nGapWidth
;
80 sal_Bool m_bConnectBars
;
82 bool m_bSupportingAxisSideBySide
;
83 bool m_bGroupBarsPerAxis
;
84 bool m_bAllSeriesAttachedToSameAxis
;
85 sal_Int32 m_nAllSeriesAxisIndex
;
87 bool m_bSupportingStartingAngle
;
88 sal_Int32 m_nStartingAngle
;
91 ::com::sun::star::uno::Reference
<
92 ::com::sun::star::chart2::XCoordinateSystem
> m_xCooSys
;
94 ::com::sun::star::uno::Sequence
< sal_Int32
> m_aSupportedMissingValueTreatments
;
95 sal_Int32 m_nMissingValueTreatment
;
97 bool m_bSupportingPlottingOfHiddenCells
;
98 bool m_bIncludeHiddenCells
;
101 } // namespace wrapper
104 // CHART_SERIESOPTIONSITEMCONVERTER_HXX