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