1*cde9e8dcSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*cde9e8dcSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*cde9e8dcSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*cde9e8dcSAndrew Rist  * distributed with this work for additional information
6*cde9e8dcSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*cde9e8dcSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*cde9e8dcSAndrew Rist  * "License"); you may not use this file except in compliance
9*cde9e8dcSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*cde9e8dcSAndrew Rist  *
11*cde9e8dcSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*cde9e8dcSAndrew Rist  *
13*cde9e8dcSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*cde9e8dcSAndrew Rist  * software distributed under the License is distributed on an
15*cde9e8dcSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*cde9e8dcSAndrew Rist  * KIND, either express or implied.  See the License for the
17*cde9e8dcSAndrew Rist  * specific language governing permissions and limitations
18*cde9e8dcSAndrew Rist  * under the License.
19*cde9e8dcSAndrew Rist  *
20*cde9e8dcSAndrew Rist  *************************************************************/
21*cde9e8dcSAndrew Rist 
22*cde9e8dcSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_chart2.hxx"
26cdf0e10cSrcweir #include <cppuhelper/implementationentry.hxx>
27cdf0e10cSrcweir #ifndef _CHARTMODEL_HXX
28cdf0e10cSrcweir #include "ChartModel.hxx"
29cdf0e10cSrcweir #endif
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #include "Diagram.hxx"
32cdf0e10cSrcweir #include "Legend.hxx"
33cdf0e10cSrcweir #include "Axis.hxx"
34cdf0e10cSrcweir #include "GridProperties.hxx"
35cdf0e10cSrcweir #include "Title.hxx"
36cdf0e10cSrcweir #include "FormattedString.hxx"
37cdf0e10cSrcweir #include "PageBackground.hxx"
38cdf0e10cSrcweir #include "DataSeries.hxx"
39cdf0e10cSrcweir #include "PolarCoordinateSystem.hxx"
40cdf0e10cSrcweir #include "CartesianCoordinateSystem.hxx"
41cdf0e10cSrcweir 
42cdf0e10cSrcweir #include "ChartTypeManager.hxx"
43cdf0e10cSrcweir #include "XMLFilter.hxx"
44cdf0e10cSrcweir 
45cdf0e10cSrcweir #include "_serviceregistration_charttypes.hxx"
46cdf0e10cSrcweir 
47cdf0e10cSrcweir static struct ::cppu::ImplementationEntry g_entries_chart2_model[] =
48cdf0e10cSrcweir {
49cdf0e10cSrcweir 	{
50cdf0e10cSrcweir 		  ::chart::ChartModel::create
51cdf0e10cSrcweir 		, ::chart::ChartModel::getImplementationName_Static
52cdf0e10cSrcweir 		, ::chart::ChartModel::getSupportedServiceNames_Static
53cdf0e10cSrcweir 		, ::cppu::createSingleComponentFactory
54cdf0e10cSrcweir 		, 0
55cdf0e10cSrcweir 		, 0
56cdf0e10cSrcweir 	}
57cdf0e10cSrcweir     ,{
58cdf0e10cSrcweir           ::chart::Diagram::create
59cdf0e10cSrcweir         , ::chart::Diagram::getImplementationName_Static
60cdf0e10cSrcweir         , ::chart::Diagram::getSupportedServiceNames_Static
61cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
62cdf0e10cSrcweir         , 0
63cdf0e10cSrcweir         , 0
64cdf0e10cSrcweir     }
65cdf0e10cSrcweir     ,{
66cdf0e10cSrcweir           ::chart::Legend::create
67cdf0e10cSrcweir         , ::chart::Legend::getImplementationName_Static
68cdf0e10cSrcweir         , ::chart::Legend::getSupportedServiceNames_Static
69cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
70cdf0e10cSrcweir         , 0
71cdf0e10cSrcweir         , 0
72cdf0e10cSrcweir     }
73cdf0e10cSrcweir     ,{
74cdf0e10cSrcweir           ::chart::Axis::create
75cdf0e10cSrcweir         , ::chart::Axis::getImplementationName_Static
76cdf0e10cSrcweir         , ::chart::Axis::getSupportedServiceNames_Static
77cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
78cdf0e10cSrcweir         , 0
79cdf0e10cSrcweir         , 0
80cdf0e10cSrcweir     }
81cdf0e10cSrcweir     ,{
82cdf0e10cSrcweir           ::chart::GridProperties::create
83cdf0e10cSrcweir         , ::chart::GridProperties::getImplementationName_Static
84cdf0e10cSrcweir         , ::chart::GridProperties::getSupportedServiceNames_Static
85cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
86cdf0e10cSrcweir         , 0
87cdf0e10cSrcweir         , 0
88cdf0e10cSrcweir     }
89cdf0e10cSrcweir     ,{
90cdf0e10cSrcweir           ::chart::Title::create
91cdf0e10cSrcweir         , ::chart::Title::getImplementationName_Static
92cdf0e10cSrcweir         , ::chart::Title::getSupportedServiceNames_Static
93cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
94cdf0e10cSrcweir         , 0
95cdf0e10cSrcweir         , 0
96cdf0e10cSrcweir     }
97cdf0e10cSrcweir 
98cdf0e10cSrcweir     ,{
99cdf0e10cSrcweir           ::chart::FormattedString::create
100cdf0e10cSrcweir         , ::chart::FormattedString::getImplementationName_Static
101cdf0e10cSrcweir         , ::chart::FormattedString::getSupportedServiceNames_Static
102cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
103cdf0e10cSrcweir         , 0
104cdf0e10cSrcweir         , 0
105cdf0e10cSrcweir     }
106cdf0e10cSrcweir 
107cdf0e10cSrcweir     ,{
108cdf0e10cSrcweir           ::chart::ChartTypeManager::create
109cdf0e10cSrcweir         , ::chart::ChartTypeManager::getImplementationName_Static
110cdf0e10cSrcweir         , ::chart::ChartTypeManager::getSupportedServiceNames_Static
111cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
112cdf0e10cSrcweir         , 0
113cdf0e10cSrcweir         , 0
114cdf0e10cSrcweir     }
115cdf0e10cSrcweir      ,{
116cdf0e10cSrcweir           ::chart::PageBackground::create
117cdf0e10cSrcweir         , ::chart::PageBackground::getImplementationName_Static
118cdf0e10cSrcweir         , ::chart::PageBackground::getSupportedServiceNames_Static
119cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
120cdf0e10cSrcweir         , 0
121cdf0e10cSrcweir         , 0
122cdf0e10cSrcweir     }
123cdf0e10cSrcweir      ,{
124cdf0e10cSrcweir           ::chart::DataSeries::create
125cdf0e10cSrcweir         , ::chart::DataSeries::getImplementationName_Static
126cdf0e10cSrcweir         , ::chart::DataSeries::getSupportedServiceNames_Static
127cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
128cdf0e10cSrcweir         , 0
129cdf0e10cSrcweir         , 0
130cdf0e10cSrcweir     }
131cdf0e10cSrcweir      ,{
132cdf0e10cSrcweir           ::chart::XMLFilter::create
133cdf0e10cSrcweir         , ::chart::XMLFilter::getImplementationName_Static
134cdf0e10cSrcweir         , ::chart::XMLFilter::getSupportedServiceNames_Static
135cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
136cdf0e10cSrcweir         , 0
137cdf0e10cSrcweir         , 0
138cdf0e10cSrcweir     }
139cdf0e10cSrcweir      ,{
140cdf0e10cSrcweir           ::chart::XMLReportFilterHelper::create
141cdf0e10cSrcweir         , ::chart::XMLReportFilterHelper::getImplementationName_Static
142cdf0e10cSrcweir         , ::chart::XMLFilter::getSupportedServiceNames_Static // we support the same, because we are derived from
143cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
144cdf0e10cSrcweir         , 0
145cdf0e10cSrcweir         , 0
146cdf0e10cSrcweir     }
147cdf0e10cSrcweir      ,{
148cdf0e10cSrcweir           ::chart::PolarCoordinateSystem2d::create
149cdf0e10cSrcweir         , ::chart::PolarCoordinateSystem2d::getImplementationName_Static
150cdf0e10cSrcweir         , ::chart::PolarCoordinateSystem2d::getSupportedServiceNames_Static
151cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
152cdf0e10cSrcweir         , 0
153cdf0e10cSrcweir         , 0
154cdf0e10cSrcweir     }
155cdf0e10cSrcweir      ,{
156cdf0e10cSrcweir           ::chart::PolarCoordinateSystem3d::create
157cdf0e10cSrcweir         , ::chart::PolarCoordinateSystem3d::getImplementationName_Static
158cdf0e10cSrcweir         , ::chart::PolarCoordinateSystem3d::getSupportedServiceNames_Static
159cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
160cdf0e10cSrcweir         , 0
161cdf0e10cSrcweir         , 0
162cdf0e10cSrcweir     }
163cdf0e10cSrcweir      ,{
164cdf0e10cSrcweir           ::chart::CartesianCoordinateSystem2d::create
165cdf0e10cSrcweir         , ::chart::CartesianCoordinateSystem2d::getImplementationName_Static
166cdf0e10cSrcweir         , ::chart::CartesianCoordinateSystem2d::getSupportedServiceNames_Static
167cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
168cdf0e10cSrcweir         , 0
169cdf0e10cSrcweir         , 0
170cdf0e10cSrcweir     }
171cdf0e10cSrcweir      ,{
172cdf0e10cSrcweir           ::chart::CartesianCoordinateSystem3d::create
173cdf0e10cSrcweir         , ::chart::CartesianCoordinateSystem3d::getImplementationName_Static
174cdf0e10cSrcweir         , ::chart::CartesianCoordinateSystem3d::getSupportedServiceNames_Static
175cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
176cdf0e10cSrcweir         , 0
177cdf0e10cSrcweir         , 0
178cdf0e10cSrcweir     }
179cdf0e10cSrcweir    ,{ 0, 0, 0, 0, 0, 0 }
180cdf0e10cSrcweir };
181cdf0e10cSrcweir 
182cdf0e10cSrcweir // component exports
183cdf0e10cSrcweir extern "C"
184cdf0e10cSrcweir {
185cdf0e10cSrcweir //==================================================================================================
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)186cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
187cdf0e10cSrcweir 	const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */ )
188cdf0e10cSrcweir {
189cdf0e10cSrcweir 	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
190cdf0e10cSrcweir }
191cdf0e10cSrcweir //==================================================================================================
component_getFactory(const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey)192cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
193cdf0e10cSrcweir 	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
194cdf0e10cSrcweir {
195cdf0e10cSrcweir     void * pResult = ::cppu::component_getFactoryHelper(
196cdf0e10cSrcweir         pImplName, pServiceManager, pRegistryKey, g_entries_chart2_model );
197cdf0e10cSrcweir 
198cdf0e10cSrcweir     if( ! pResult )
199cdf0e10cSrcweir         pResult = ::cppu::component_getFactoryHelper(
200cdf0e10cSrcweir             pImplName, pServiceManager, pRegistryKey,
201cdf0e10cSrcweir             ChartTypeEntriesForServiceRegistration::getImplementationEntries() );
202cdf0e10cSrcweir 
203cdf0e10cSrcweir     return pResult;
204cdf0e10cSrcweir }
205cdf0e10cSrcweir }
206cdf0e10cSrcweir //=========================================================================
207