1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef CHART2_MULTIPLECHARTCONVERTERS_HXX
24 #define CHART2_MULTIPLECHARTCONVERTERS_HXX
25 
26 #include "MultipleItemConverter.hxx"
27 #include <com/sun/star/awt/Size.hpp>
28 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
29 
30 #include <memory>
31 
32 class SdrModel;
33 
34 namespace chart
35 {
36 namespace wrapper
37 {
38 
39 class AllAxisItemConverter : public ::comphelper::MultipleItemConverter
40 {
41 public:
42 	AllAxisItemConverter(
43         const ::com::sun::star::uno::Reference<
44             ::com::sun::star::frame::XModel > & xChartModel,
45         SfxItemPool& rItemPool,
46         SdrModel& rDrawModel,
47         const ::com::sun::star::uno::Reference<
48             ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
49         ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
50             ::std::auto_ptr< ::com::sun::star::awt::Size >() );
51     virtual ~AllAxisItemConverter();
52 
53 protected:
54     virtual const sal_uInt16 * GetWhichPairs() const;
55 };
56 
57 class AllGridItemConverter : public ::comphelper::MultipleItemConverter
58 {
59 public:
60 	AllGridItemConverter(
61         const ::com::sun::star::uno::Reference<
62             ::com::sun::star::frame::XModel > & xChartModel,
63         SfxItemPool& rItemPool,
64         SdrModel& rDrawModel,
65         const ::com::sun::star::uno::Reference<
66             ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory );
67     virtual ~AllGridItemConverter();
68 
69 protected:
70     virtual const sal_uInt16 * GetWhichPairs() const;
71 };
72 
73 class AllDataLabelItemConverter : public ::comphelper::MultipleItemConverter
74 {
75 public:
76 	AllDataLabelItemConverter(
77         const ::com::sun::star::uno::Reference<
78             ::com::sun::star::frame::XModel > & xChartModel,
79         SfxItemPool& rItemPool,
80         SdrModel& rDrawModel,
81         const ::com::sun::star::uno::Reference<
82             ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
83         ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
84             ::std::auto_ptr< ::com::sun::star::awt::Size >() );
85     virtual ~AllDataLabelItemConverter();
86 
87 protected:
88     virtual const sal_uInt16 * GetWhichPairs() const;
89 };
90 
91 class AllTitleItemConverter : public ::comphelper::MultipleItemConverter
92 {
93 public:
94 	AllTitleItemConverter(
95         const ::com::sun::star::uno::Reference<
96             ::com::sun::star::frame::XModel > & xChartModel,
97         SfxItemPool& rItemPool,
98         SdrModel& rDrawModel,
99         const ::com::sun::star::uno::Reference<
100             ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
101         ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
102             ::std::auto_ptr< ::com::sun::star::awt::Size >() );
103     virtual ~AllTitleItemConverter();
104 
105 protected:
106     virtual const sal_uInt16 * GetWhichPairs() const;
107 };
108 
109 class AllSeriesStatisticsConverter : public ::comphelper::MultipleItemConverter
110 {
111 public:
112     AllSeriesStatisticsConverter(
113         const ::com::sun::star::uno::Reference<
114         ::com::sun::star::frame::XModel > & xChartModel,
115         SfxItemPool& rItemPool );
116     virtual ~AllSeriesStatisticsConverter();
117 
118 protected:
119     virtual const sal_uInt16 * GetWhichPairs() const;
120 };
121 
122 } //  namespace wrapper
123 } //  namespace chart
124 
125 // CHART2_MULTIPLECHARTCONVERTERS_HXX
126 #endif
127