merged tag ooo/OOO330_m14
[LibreOffice.git] / chart2 / source / controller / inc / MultipleChartConverters.hxx
blob9b0555ec82e1f6072d62c5b483c9b0235f2d3f55
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
27 #ifndef CHART2_MULTIPLECHARTCONVERTERS_HXX
28 #define CHART2_MULTIPLECHARTCONVERTERS_HXX
30 #include "MultipleItemConverter.hxx"
31 #include <com/sun/star/awt/Size.hpp>
32 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
34 #include <memory>
36 class SdrModel;
38 namespace chart
40 namespace wrapper
43 class AllAxisItemConverter : public ::comphelper::MultipleItemConverter
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();
57 protected:
58 virtual const USHORT * GetWhichPairs() const;
61 class AllGridItemConverter : public ::comphelper::MultipleItemConverter
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();
73 protected:
74 virtual const USHORT * GetWhichPairs() const;
77 class AllDataLabelItemConverter : public ::comphelper::MultipleItemConverter
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();
91 protected:
92 virtual const USHORT * GetWhichPairs() const;
95 class AllTitleItemConverter : public ::comphelper::MultipleItemConverter
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();
109 protected:
110 virtual const USHORT * GetWhichPairs() const;
113 class AllSeriesStatisticsConverter : public ::comphelper::MultipleItemConverter
115 public:
116 AllSeriesStatisticsConverter(
117 const ::com::sun::star::uno::Reference<
118 ::com::sun::star::frame::XModel > & xChartModel,
119 SfxItemPool& rItemPool );
120 virtual ~AllSeriesStatisticsConverter();
122 protected:
123 virtual const USHORT * GetWhichPairs() const;
126 } // namespace wrapper
127 } // namespace chart
129 // CHART2_MULTIPLECHARTCONVERTERS_HXX
130 #endif