Update ooo320-m1
[ooovba.git] / chart2 / source / controller / inc / MultipleChartConverters.hxx
blob1ccb4a5c934fc5940dcaca61228e06291763fc80
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: MultipleChartConverters.hxx,v $
10 * $Revision: 1.7 $
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 CHART2_MULTIPLECHARTCONVERTERS_HXX
31 #define CHART2_MULTIPLECHARTCONVERTERS_HXX
33 #include "MultipleItemConverter.hxx"
34 #include <com/sun/star/awt/Size.hpp>
35 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
37 #include <memory>
39 class SdrModel;
41 namespace chart
43 namespace wrapper
46 class AllAxisItemConverter : public ::comphelper::MultipleItemConverter
48 public:
49 AllAxisItemConverter(
50 const ::com::sun::star::uno::Reference<
51 ::com::sun::star::frame::XModel > & xChartModel,
52 SfxItemPool& rItemPool,
53 SdrModel& rDrawModel,
54 const ::com::sun::star::uno::Reference<
55 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
56 ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
57 ::std::auto_ptr< ::com::sun::star::awt::Size >() );
58 virtual ~AllAxisItemConverter();
60 protected:
61 virtual const USHORT * GetWhichPairs() const;
64 class AllGridItemConverter : public ::comphelper::MultipleItemConverter
66 public:
67 AllGridItemConverter(
68 const ::com::sun::star::uno::Reference<
69 ::com::sun::star::frame::XModel > & xChartModel,
70 SfxItemPool& rItemPool,
71 SdrModel& rDrawModel,
72 const ::com::sun::star::uno::Reference<
73 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory );
74 virtual ~AllGridItemConverter();
76 protected:
77 virtual const USHORT * GetWhichPairs() const;
80 class AllDataLabelItemConverter : public ::comphelper::MultipleItemConverter
82 public:
83 AllDataLabelItemConverter(
84 const ::com::sun::star::uno::Reference<
85 ::com::sun::star::frame::XModel > & xChartModel,
86 SfxItemPool& rItemPool,
87 SdrModel& rDrawModel,
88 const ::com::sun::star::uno::Reference<
89 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
90 ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
91 ::std::auto_ptr< ::com::sun::star::awt::Size >() );
92 virtual ~AllDataLabelItemConverter();
94 protected:
95 virtual const USHORT * GetWhichPairs() const;
98 class AllTitleItemConverter : public ::comphelper::MultipleItemConverter
100 public:
101 AllTitleItemConverter(
102 const ::com::sun::star::uno::Reference<
103 ::com::sun::star::frame::XModel > & xChartModel,
104 SfxItemPool& rItemPool,
105 SdrModel& rDrawModel,
106 const ::com::sun::star::uno::Reference<
107 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
108 ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
109 ::std::auto_ptr< ::com::sun::star::awt::Size >() );
110 virtual ~AllTitleItemConverter();
112 protected:
113 virtual const USHORT * GetWhichPairs() const;
116 class AllSeriesStatisticsConverter : public ::comphelper::MultipleItemConverter
118 public:
119 AllSeriesStatisticsConverter(
120 const ::com::sun::star::uno::Reference<
121 ::com::sun::star::frame::XModel > & xChartModel,
122 SfxItemPool& rItemPool );
123 virtual ~AllSeriesStatisticsConverter();
125 protected:
126 virtual const USHORT * GetWhichPairs() const;
129 } // namespace wrapper
130 } // namespace chart
132 // CHART2_MULTIPLECHARTCONVERTERS_HXX
133 #endif