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 CHART2_MULTIPLECHARTCONVERTERS_HXX 28 #define CHART2_MULTIPLECHARTCONVERTERS_HXX 29 30 #include "MultipleItemConverter.hxx" 31 #include <com/sun/star/awt/Size.hpp> 32 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 33 34 #include <memory> 35 36 class SdrModel; 37 38 namespace chart 39 { 40 namespace wrapper 41 { 42 43 class AllAxisItemConverter : public ::comphelper::MultipleItemConverter 44 { 45 public: 46 AllAxisItemConverter( 47 const ::com::sun::star::uno::Reference< 48 ::com::sun::star::frame::XModel > & xChartModel, 49 SfxItemPool& rItemPool, 50 SdrModel& rDrawModel, 51 const ::com::sun::star::uno::Reference< 52 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory, 53 ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize = 54 ::std::auto_ptr< ::com::sun::star::awt::Size >() ); 55 virtual ~AllAxisItemConverter(); 56 57 protected: 58 virtual const sal_uInt16 * GetWhichPairs() const; 59 }; 60 61 class AllGridItemConverter : public ::comphelper::MultipleItemConverter 62 { 63 public: 64 AllGridItemConverter( 65 const ::com::sun::star::uno::Reference< 66 ::com::sun::star::frame::XModel > & xChartModel, 67 SfxItemPool& rItemPool, 68 SdrModel& rDrawModel, 69 const ::com::sun::star::uno::Reference< 70 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory ); 71 virtual ~AllGridItemConverter(); 72 73 protected: 74 virtual const sal_uInt16 * GetWhichPairs() const; 75 }; 76 77 class AllDataLabelItemConverter : public ::comphelper::MultipleItemConverter 78 { 79 public: 80 AllDataLabelItemConverter( 81 const ::com::sun::star::uno::Reference< 82 ::com::sun::star::frame::XModel > & xChartModel, 83 SfxItemPool& rItemPool, 84 SdrModel& rDrawModel, 85 const ::com::sun::star::uno::Reference< 86 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory, 87 ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize = 88 ::std::auto_ptr< ::com::sun::star::awt::Size >() ); 89 virtual ~AllDataLabelItemConverter(); 90 91 protected: 92 virtual const sal_uInt16 * GetWhichPairs() const; 93 }; 94 95 class AllTitleItemConverter : public ::comphelper::MultipleItemConverter 96 { 97 public: 98 AllTitleItemConverter( 99 const ::com::sun::star::uno::Reference< 100 ::com::sun::star::frame::XModel > & xChartModel, 101 SfxItemPool& rItemPool, 102 SdrModel& rDrawModel, 103 const ::com::sun::star::uno::Reference< 104 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory, 105 ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize = 106 ::std::auto_ptr< ::com::sun::star::awt::Size >() ); 107 virtual ~AllTitleItemConverter(); 108 109 protected: 110 virtual const sal_uInt16 * GetWhichPairs() const; 111 }; 112 113 class AllSeriesStatisticsConverter : public ::comphelper::MultipleItemConverter 114 { 115 public: 116 AllSeriesStatisticsConverter( 117 const ::com::sun::star::uno::Reference< 118 ::com::sun::star::frame::XModel > & xChartModel, 119 SfxItemPool& rItemPool ); 120 virtual ~AllSeriesStatisticsConverter(); 121 122 protected: 123 virtual const sal_uInt16 * GetWhichPairs() const; 124 }; 125 126 } // namespace wrapper 127 } // namespace chart 128 129 // CHART2_MULTIPLECHARTCONVERTERS_HXX 130 #endif 131