xref: /trunk/main/chart2/source/tools/_serviceregistration_tools.cxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
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.
14  *
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).
20  *
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.
25  *
26  ************************************************************************/
27 
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_chart2.hxx"
30 #include <cppuhelper/implementationentry.hxx>
31 #include "LabeledDataSequence.hxx"
32 #include "CachedDataSequence.hxx"
33 #include "DataSource.hxx"
34 #include "ConfigColorScheme.hxx"
35 #include "Scaling.hxx"
36 #include "ErrorBar.hxx"
37 #include "RegressionCurveModel.hxx"
38 #include "RegressionEquation.hxx"
39 #include "InternalDataProvider.hxx"
40 #include "charttoolsdllapi.hxx"
41 
42 static struct ::cppu::ImplementationEntry g_entries_chart2_tools[] =
43 {
44     {
45           ::chart::LabeledDataSequence::create
46         , ::chart::LabeledDataSequence::getImplementationName_Static
47         , ::chart::LabeledDataSequence::getSupportedServiceNames_Static
48         , ::cppu::createSingleComponentFactory
49         , 0
50         , 0
51     }
52    ,{
53           ::chart::CachedDataSequence::create
54         , ::chart::CachedDataSequence::getImplementationName_Static
55         , ::chart::CachedDataSequence::getSupportedServiceNames_Static
56         , ::cppu::createSingleComponentFactory
57         , 0
58         , 0
59     }
60    ,{
61           ::chart::DataSource::create
62         , ::chart::DataSource::getImplementationName_Static
63         , ::chart::DataSource::getSupportedServiceNames_Static
64         , ::cppu::createSingleComponentFactory
65         , 0
66         , 0
67     }
68    ,{
69           ::chart::ConfigColorScheme::create
70         , ::chart::ConfigColorScheme::getImplementationName_Static
71         , ::chart::ConfigColorScheme::getSupportedServiceNames_Static
72         , ::cppu::createSingleComponentFactory
73         , 0
74         , 0
75     }
76 
77     ,{
78           ::chart::LogarithmicScaling::create
79         , ::chart::LogarithmicScaling::getImplementationName_Static
80         , ::chart::LogarithmicScaling::getSupportedServiceNames_Static
81         , ::cppu::createSingleComponentFactory
82         , 0
83         , 0
84     }
85    ,{
86           ::chart::ExponentialScaling::create
87         , ::chart::ExponentialScaling::getImplementationName_Static
88         , ::chart::ExponentialScaling::getSupportedServiceNames_Static
89         , ::cppu::createSingleComponentFactory
90         , 0
91         , 0
92     }
93    ,{
94           ::chart::LinearScaling::create
95         , ::chart::LinearScaling::getImplementationName_Static
96         , ::chart::LinearScaling::getSupportedServiceNames_Static
97         , ::cppu::createSingleComponentFactory
98         , 0
99         , 0
100     }
101    ,{
102           ::chart::PowerScaling::create
103         , ::chart::PowerScaling::getImplementationName_Static
104         , ::chart::PowerScaling::getSupportedServiceNames_Static
105         , ::cppu::createSingleComponentFactory
106         , 0
107         , 0
108     }
109    ,{
110           ::chart::ErrorBar::create
111         , ::chart::ErrorBar::getImplementationName_Static
112         , ::chart::ErrorBar::getSupportedServiceNames_Static
113         , ::cppu::createSingleComponentFactory
114         , 0
115         , 0
116     }
117    ,{
118           ::chart::MeanValueRegressionCurve::create
119         , ::chart::MeanValueRegressionCurve::getImplementationName_Static
120         , ::chart::MeanValueRegressionCurve::getSupportedServiceNames_Static
121         , ::cppu::createSingleComponentFactory
122         , 0
123         , 0
124     }
125    ,{
126           ::chart::LinearRegressionCurve::create
127         , ::chart::LinearRegressionCurve::getImplementationName_Static
128         , ::chart::LinearRegressionCurve::getSupportedServiceNames_Static
129         , ::cppu::createSingleComponentFactory
130         , 0
131         , 0
132     }
133    ,{
134           ::chart::LogarithmicRegressionCurve::create
135         , ::chart::LogarithmicRegressionCurve::getImplementationName_Static
136         , ::chart::LogarithmicRegressionCurve::getSupportedServiceNames_Static
137         , ::cppu::createSingleComponentFactory
138         , 0
139         , 0
140     }
141    ,{
142           ::chart::ExponentialRegressionCurve::create
143         , ::chart::ExponentialRegressionCurve::getImplementationName_Static
144         , ::chart::ExponentialRegressionCurve::getSupportedServiceNames_Static
145         , ::cppu::createSingleComponentFactory
146         , 0
147         , 0
148     }
149    ,{
150           ::chart::PotentialRegressionCurve::create
151         , ::chart::PotentialRegressionCurve::getImplementationName_Static
152         , ::chart::PotentialRegressionCurve::getSupportedServiceNames_Static
153         , ::cppu::createSingleComponentFactory
154         , 0
155         , 0
156     }
157    ,{
158           ::chart::RegressionEquation::create
159         , ::chart::RegressionEquation::getImplementationName_Static
160         , ::chart::RegressionEquation::getSupportedServiceNames_Static
161         , ::cppu::createSingleComponentFactory
162         , 0
163         , 0
164     }
165    ,{
166           ::chart::InternalDataProvider::create
167         , ::chart::InternalDataProvider::getImplementationName_Static
168         , ::chart::InternalDataProvider::getSupportedServiceNames_Static
169         , ::cppu::createSingleComponentFactory
170         , 0
171         , 0
172     }
173    ,{ 0, 0, 0, 0, 0, 0 }
174 };
175 
176 // component exports
177 extern "C"
178 {
179 //==================================================================================================
180 OOO_DLLPUBLIC_CHARTTOOLS void SAL_CALL component_getImplementationEnvironment(
181     const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */ )
182 {
183     *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
184 }
185 //==================================================================================================
186 OOO_DLLPUBLIC_CHARTTOOLS void * SAL_CALL component_getFactory(
187     const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
188 {
189     return ::cppu::component_getFactoryHelper(
190         pImplName, pServiceManager, pRegistryKey , g_entries_chart2_tools );
191 }
192 }
193 //=========================================================================
194