xref: /trunk/main/chart2/source/tools/_serviceregistration_tools.cxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
29*cdf0e10cSrcweir #include "precompiled_chart2.hxx"
30*cdf0e10cSrcweir #include <cppuhelper/implementationentry.hxx>
31*cdf0e10cSrcweir #include "LabeledDataSequence.hxx"
32*cdf0e10cSrcweir #include "CachedDataSequence.hxx"
33*cdf0e10cSrcweir #include "DataSource.hxx"
34*cdf0e10cSrcweir #include "ConfigColorScheme.hxx"
35*cdf0e10cSrcweir #include "Scaling.hxx"
36*cdf0e10cSrcweir #include "ErrorBar.hxx"
37*cdf0e10cSrcweir #include "RegressionCurveModel.hxx"
38*cdf0e10cSrcweir #include "RegressionEquation.hxx"
39*cdf0e10cSrcweir #include "InternalDataProvider.hxx"
40*cdf0e10cSrcweir #include "charttoolsdllapi.hxx"
41*cdf0e10cSrcweir 
42*cdf0e10cSrcweir static struct ::cppu::ImplementationEntry g_entries_chart2_tools[] =
43*cdf0e10cSrcweir {
44*cdf0e10cSrcweir     {
45*cdf0e10cSrcweir           ::chart::LabeledDataSequence::create
46*cdf0e10cSrcweir         , ::chart::LabeledDataSequence::getImplementationName_Static
47*cdf0e10cSrcweir         , ::chart::LabeledDataSequence::getSupportedServiceNames_Static
48*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
49*cdf0e10cSrcweir         , 0
50*cdf0e10cSrcweir         , 0
51*cdf0e10cSrcweir     }
52*cdf0e10cSrcweir    ,{
53*cdf0e10cSrcweir           ::chart::CachedDataSequence::create
54*cdf0e10cSrcweir         , ::chart::CachedDataSequence::getImplementationName_Static
55*cdf0e10cSrcweir         , ::chart::CachedDataSequence::getSupportedServiceNames_Static
56*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
57*cdf0e10cSrcweir         , 0
58*cdf0e10cSrcweir         , 0
59*cdf0e10cSrcweir     }
60*cdf0e10cSrcweir    ,{
61*cdf0e10cSrcweir           ::chart::DataSource::create
62*cdf0e10cSrcweir         , ::chart::DataSource::getImplementationName_Static
63*cdf0e10cSrcweir         , ::chart::DataSource::getSupportedServiceNames_Static
64*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
65*cdf0e10cSrcweir         , 0
66*cdf0e10cSrcweir         , 0
67*cdf0e10cSrcweir     }
68*cdf0e10cSrcweir    ,{
69*cdf0e10cSrcweir           ::chart::ConfigColorScheme::create
70*cdf0e10cSrcweir         , ::chart::ConfigColorScheme::getImplementationName_Static
71*cdf0e10cSrcweir         , ::chart::ConfigColorScheme::getSupportedServiceNames_Static
72*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
73*cdf0e10cSrcweir         , 0
74*cdf0e10cSrcweir         , 0
75*cdf0e10cSrcweir     }
76*cdf0e10cSrcweir 
77*cdf0e10cSrcweir     ,{
78*cdf0e10cSrcweir           ::chart::LogarithmicScaling::create
79*cdf0e10cSrcweir         , ::chart::LogarithmicScaling::getImplementationName_Static
80*cdf0e10cSrcweir         , ::chart::LogarithmicScaling::getSupportedServiceNames_Static
81*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
82*cdf0e10cSrcweir         , 0
83*cdf0e10cSrcweir         , 0
84*cdf0e10cSrcweir     }
85*cdf0e10cSrcweir    ,{
86*cdf0e10cSrcweir           ::chart::ExponentialScaling::create
87*cdf0e10cSrcweir         , ::chart::ExponentialScaling::getImplementationName_Static
88*cdf0e10cSrcweir         , ::chart::ExponentialScaling::getSupportedServiceNames_Static
89*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
90*cdf0e10cSrcweir         , 0
91*cdf0e10cSrcweir         , 0
92*cdf0e10cSrcweir     }
93*cdf0e10cSrcweir    ,{
94*cdf0e10cSrcweir           ::chart::LinearScaling::create
95*cdf0e10cSrcweir         , ::chart::LinearScaling::getImplementationName_Static
96*cdf0e10cSrcweir         , ::chart::LinearScaling::getSupportedServiceNames_Static
97*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
98*cdf0e10cSrcweir         , 0
99*cdf0e10cSrcweir         , 0
100*cdf0e10cSrcweir     }
101*cdf0e10cSrcweir    ,{
102*cdf0e10cSrcweir           ::chart::PowerScaling::create
103*cdf0e10cSrcweir         , ::chart::PowerScaling::getImplementationName_Static
104*cdf0e10cSrcweir         , ::chart::PowerScaling::getSupportedServiceNames_Static
105*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
106*cdf0e10cSrcweir         , 0
107*cdf0e10cSrcweir         , 0
108*cdf0e10cSrcweir     }
109*cdf0e10cSrcweir    ,{
110*cdf0e10cSrcweir           ::chart::ErrorBar::create
111*cdf0e10cSrcweir         , ::chart::ErrorBar::getImplementationName_Static
112*cdf0e10cSrcweir         , ::chart::ErrorBar::getSupportedServiceNames_Static
113*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
114*cdf0e10cSrcweir         , 0
115*cdf0e10cSrcweir         , 0
116*cdf0e10cSrcweir     }
117*cdf0e10cSrcweir    ,{
118*cdf0e10cSrcweir           ::chart::MeanValueRegressionCurve::create
119*cdf0e10cSrcweir         , ::chart::MeanValueRegressionCurve::getImplementationName_Static
120*cdf0e10cSrcweir         , ::chart::MeanValueRegressionCurve::getSupportedServiceNames_Static
121*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
122*cdf0e10cSrcweir         , 0
123*cdf0e10cSrcweir         , 0
124*cdf0e10cSrcweir     }
125*cdf0e10cSrcweir    ,{
126*cdf0e10cSrcweir           ::chart::LinearRegressionCurve::create
127*cdf0e10cSrcweir         , ::chart::LinearRegressionCurve::getImplementationName_Static
128*cdf0e10cSrcweir         , ::chart::LinearRegressionCurve::getSupportedServiceNames_Static
129*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
130*cdf0e10cSrcweir         , 0
131*cdf0e10cSrcweir         , 0
132*cdf0e10cSrcweir     }
133*cdf0e10cSrcweir    ,{
134*cdf0e10cSrcweir           ::chart::LogarithmicRegressionCurve::create
135*cdf0e10cSrcweir         , ::chart::LogarithmicRegressionCurve::getImplementationName_Static
136*cdf0e10cSrcweir         , ::chart::LogarithmicRegressionCurve::getSupportedServiceNames_Static
137*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
138*cdf0e10cSrcweir         , 0
139*cdf0e10cSrcweir         , 0
140*cdf0e10cSrcweir     }
141*cdf0e10cSrcweir    ,{
142*cdf0e10cSrcweir           ::chart::ExponentialRegressionCurve::create
143*cdf0e10cSrcweir         , ::chart::ExponentialRegressionCurve::getImplementationName_Static
144*cdf0e10cSrcweir         , ::chart::ExponentialRegressionCurve::getSupportedServiceNames_Static
145*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
146*cdf0e10cSrcweir         , 0
147*cdf0e10cSrcweir         , 0
148*cdf0e10cSrcweir     }
149*cdf0e10cSrcweir    ,{
150*cdf0e10cSrcweir           ::chart::PotentialRegressionCurve::create
151*cdf0e10cSrcweir         , ::chart::PotentialRegressionCurve::getImplementationName_Static
152*cdf0e10cSrcweir         , ::chart::PotentialRegressionCurve::getSupportedServiceNames_Static
153*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
154*cdf0e10cSrcweir         , 0
155*cdf0e10cSrcweir         , 0
156*cdf0e10cSrcweir     }
157*cdf0e10cSrcweir    ,{
158*cdf0e10cSrcweir           ::chart::RegressionEquation::create
159*cdf0e10cSrcweir         , ::chart::RegressionEquation::getImplementationName_Static
160*cdf0e10cSrcweir         , ::chart::RegressionEquation::getSupportedServiceNames_Static
161*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
162*cdf0e10cSrcweir         , 0
163*cdf0e10cSrcweir         , 0
164*cdf0e10cSrcweir     }
165*cdf0e10cSrcweir    ,{
166*cdf0e10cSrcweir           ::chart::InternalDataProvider::create
167*cdf0e10cSrcweir         , ::chart::InternalDataProvider::getImplementationName_Static
168*cdf0e10cSrcweir         , ::chart::InternalDataProvider::getSupportedServiceNames_Static
169*cdf0e10cSrcweir         , ::cppu::createSingleComponentFactory
170*cdf0e10cSrcweir         , 0
171*cdf0e10cSrcweir         , 0
172*cdf0e10cSrcweir     }
173*cdf0e10cSrcweir    ,{ 0, 0, 0, 0, 0, 0 }
174*cdf0e10cSrcweir };
175*cdf0e10cSrcweir 
176*cdf0e10cSrcweir // component exports
177*cdf0e10cSrcweir extern "C"
178*cdf0e10cSrcweir {
179*cdf0e10cSrcweir //==================================================================================================
180*cdf0e10cSrcweir OOO_DLLPUBLIC_CHARTTOOLS void SAL_CALL component_getImplementationEnvironment(
181*cdf0e10cSrcweir     const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */ )
182*cdf0e10cSrcweir {
183*cdf0e10cSrcweir     *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
184*cdf0e10cSrcweir }
185*cdf0e10cSrcweir //==================================================================================================
186*cdf0e10cSrcweir OOO_DLLPUBLIC_CHARTTOOLS void * SAL_CALL component_getFactory(
187*cdf0e10cSrcweir     const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
188*cdf0e10cSrcweir {
189*cdf0e10cSrcweir     return ::cppu::component_getFactoryHelper(
190*cdf0e10cSrcweir         pImplName, pServiceManager, pRegistryKey , g_entries_chart2_tools );
191*cdf0e10cSrcweir }
192*cdf0e10cSrcweir }
193*cdf0e10cSrcweir //=========================================================================
194