1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: _serviceregistration_model.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_chart2.hxx"
33 #include <cppuhelper/implementationentry.hxx>
34 #ifndef _CHARTMODEL_HXX
35 #include "ChartModel.hxx"
38 #include "Diagram.hxx"
41 #include "GridProperties.hxx"
43 #include "FormattedString.hxx"
44 #include "PageBackground.hxx"
45 #include "DataSeries.hxx"
46 #include "PolarCoordinateSystem.hxx"
47 #include "CartesianCoordinateSystem.hxx"
49 #include "ChartTypeManager.hxx"
50 #include "XMLFilter.hxx"
52 #include "_serviceregistration_charttypes.hxx"
54 static struct ::cppu::ImplementationEntry g_entries_chart2_model
[] =
57 ::chart::ChartModel::create
58 , ::chart::ChartModel::getImplementationName_Static
59 , ::chart::ChartModel::getSupportedServiceNames_Static
60 , ::cppu::createSingleComponentFactory
65 ::chart::Diagram::create
66 , ::chart::Diagram::getImplementationName_Static
67 , ::chart::Diagram::getSupportedServiceNames_Static
68 , ::cppu::createSingleComponentFactory
73 ::chart::Legend::create
74 , ::chart::Legend::getImplementationName_Static
75 , ::chart::Legend::getSupportedServiceNames_Static
76 , ::cppu::createSingleComponentFactory
82 , ::chart::Axis::getImplementationName_Static
83 , ::chart::Axis::getSupportedServiceNames_Static
84 , ::cppu::createSingleComponentFactory
89 ::chart::GridProperties::create
90 , ::chart::GridProperties::getImplementationName_Static
91 , ::chart::GridProperties::getSupportedServiceNames_Static
92 , ::cppu::createSingleComponentFactory
97 ::chart::Title::create
98 , ::chart::Title::getImplementationName_Static
99 , ::chart::Title::getSupportedServiceNames_Static
100 , ::cppu::createSingleComponentFactory
106 ::chart::FormattedString::create
107 , ::chart::FormattedString::getImplementationName_Static
108 , ::chart::FormattedString::getSupportedServiceNames_Static
109 , ::cppu::createSingleComponentFactory
115 ::chart::ChartTypeManager::create
116 , ::chart::ChartTypeManager::getImplementationName_Static
117 , ::chart::ChartTypeManager::getSupportedServiceNames_Static
118 , ::cppu::createSingleComponentFactory
123 ::chart::PageBackground::create
124 , ::chart::PageBackground::getImplementationName_Static
125 , ::chart::PageBackground::getSupportedServiceNames_Static
126 , ::cppu::createSingleComponentFactory
131 ::chart::DataSeries::create
132 , ::chart::DataSeries::getImplementationName_Static
133 , ::chart::DataSeries::getSupportedServiceNames_Static
134 , ::cppu::createSingleComponentFactory
139 ::chart::XMLFilter::create
140 , ::chart::XMLFilter::getImplementationName_Static
141 , ::chart::XMLFilter::getSupportedServiceNames_Static
142 , ::cppu::createSingleComponentFactory
147 ::chart::XMLReportFilterHelper::create
148 , ::chart::XMLReportFilterHelper::getImplementationName_Static
149 , ::chart::XMLFilter::getSupportedServiceNames_Static
// we support the same, because we are derived from
150 , ::cppu::createSingleComponentFactory
155 ::chart::PolarCoordinateSystem2d::create
156 , ::chart::PolarCoordinateSystem2d::getImplementationName_Static
157 , ::chart::PolarCoordinateSystem2d::getSupportedServiceNames_Static
158 , ::cppu::createSingleComponentFactory
163 ::chart::PolarCoordinateSystem3d::create
164 , ::chart::PolarCoordinateSystem3d::getImplementationName_Static
165 , ::chart::PolarCoordinateSystem3d::getSupportedServiceNames_Static
166 , ::cppu::createSingleComponentFactory
171 ::chart::CartesianCoordinateSystem2d::create
172 , ::chart::CartesianCoordinateSystem2d::getImplementationName_Static
173 , ::chart::CartesianCoordinateSystem2d::getSupportedServiceNames_Static
174 , ::cppu::createSingleComponentFactory
179 ::chart::CartesianCoordinateSystem3d::create
180 , ::chart::CartesianCoordinateSystem3d::getImplementationName_Static
181 , ::chart::CartesianCoordinateSystem3d::getSupportedServiceNames_Static
182 , ::cppu::createSingleComponentFactory
186 ,{ 0, 0, 0, 0, 0, 0 }
192 //==================================================================================================
193 SAL_DLLPUBLIC_EXPORT
void SAL_CALL
component_getImplementationEnvironment(
194 const sal_Char
** ppEnvTypeName
, uno_Environment
** /* ppEnv */ )
196 *ppEnvTypeName
= CPPU_CURRENT_LANGUAGE_BINDING_NAME
;
198 //==================================================================================================
199 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL
component_writeInfo(
200 void * pServiceManager
, void * pRegistryKey
)
202 return (::cppu::component_writeInfoHelper(
203 pServiceManager
, pRegistryKey
, g_entries_chart2_model
) &&
204 ::cppu::component_writeInfoHelper(
205 pServiceManager
, pRegistryKey
,
206 ChartTypeEntriesForServiceRegistration::getImplementationEntries() ));
208 //==================================================================================================
209 SAL_DLLPUBLIC_EXPORT
void * SAL_CALL
component_getFactory(
210 const sal_Char
* pImplName
, void * pServiceManager
, void * pRegistryKey
)
212 void * pResult
= ::cppu::component_getFactoryHelper(
213 pImplName
, pServiceManager
, pRegistryKey
, g_entries_chart2_model
);
216 pResult
= ::cppu::component_getFactoryHelper(
217 pImplName
, pServiceManager
, pRegistryKey
,
218 ChartTypeEntriesForServiceRegistration::getImplementationEntries() );
223 //=========================================================================