Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
5 : : * This Source Code Form is subject to the terms of the Mozilla Public
6 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : :
20 : : #include <cppuhelper/implementationentry.hxx>
21 : : #include "ChartModel.hxx"
22 : :
23 : : #include "Diagram.hxx"
24 : : #include "Legend.hxx"
25 : : #include "Axis.hxx"
26 : : #include "GridProperties.hxx"
27 : : #include "Title.hxx"
28 : : #include "FormattedString.hxx"
29 : : #include "PageBackground.hxx"
30 : : #include "DataSeries.hxx"
31 : : #include "PolarCoordinateSystem.hxx"
32 : : #include "CartesianCoordinateSystem.hxx"
33 : :
34 : : #include "ChartTypeManager.hxx"
35 : : #include "XMLFilter.hxx"
36 : :
37 : : #include "_serviceregistration_charttypes.hxx"
38 : :
39 : : static struct ::cppu::ImplementationEntry g_entries_chart2_model[] =
40 : : {
41 : : {
42 : : ::chart::ChartModel::create
43 : : , ::chart::ChartModel::getImplementationName_Static
44 : : , ::chart::ChartModel::getSupportedServiceNames_Static
45 : : , ::cppu::createSingleComponentFactory
46 : : , 0
47 : : , 0
48 : : }
49 : : ,{
50 : : ::chart::Diagram::create
51 : : , ::chart::Diagram::getImplementationName_Static
52 : : , ::chart::Diagram::getSupportedServiceNames_Static
53 : : , ::cppu::createSingleComponentFactory
54 : : , 0
55 : : , 0
56 : : }
57 : : ,{
58 : : ::chart::Legend::create
59 : : , ::chart::Legend::getImplementationName_Static
60 : : , ::chart::Legend::getSupportedServiceNames_Static
61 : : , ::cppu::createSingleComponentFactory
62 : : , 0
63 : : , 0
64 : : }
65 : : ,{
66 : : ::chart::Axis::create
67 : : , ::chart::Axis::getImplementationName_Static
68 : : , ::chart::Axis::getSupportedServiceNames_Static
69 : : , ::cppu::createSingleComponentFactory
70 : : , 0
71 : : , 0
72 : : }
73 : : ,{
74 : : ::chart::GridProperties::create
75 : : , ::chart::GridProperties::getImplementationName_Static
76 : : , ::chart::GridProperties::getSupportedServiceNames_Static
77 : : , ::cppu::createSingleComponentFactory
78 : : , 0
79 : : , 0
80 : : }
81 : : ,{
82 : : ::chart::Title::create
83 : : , ::chart::Title::getImplementationName_Static
84 : : , ::chart::Title::getSupportedServiceNames_Static
85 : : , ::cppu::createSingleComponentFactory
86 : : , 0
87 : : , 0
88 : : }
89 : :
90 : : ,{
91 : : ::chart::FormattedString::create
92 : : , ::chart::FormattedString::getImplementationName_Static
93 : : , ::chart::FormattedString::getSupportedServiceNames_Static
94 : : , ::cppu::createSingleComponentFactory
95 : : , 0
96 : : , 0
97 : : }
98 : :
99 : : ,{
100 : : ::chart::ChartTypeManager::create
101 : : , ::chart::ChartTypeManager::getImplementationName_Static
102 : : , ::chart::ChartTypeManager::getSupportedServiceNames_Static
103 : : , ::cppu::createSingleComponentFactory
104 : : , 0
105 : : , 0
106 : : }
107 : : ,{
108 : : ::chart::PageBackground::create
109 : : , ::chart::PageBackground::getImplementationName_Static
110 : : , ::chart::PageBackground::getSupportedServiceNames_Static
111 : : , ::cppu::createSingleComponentFactory
112 : : , 0
113 : : , 0
114 : : }
115 : : ,{
116 : : ::chart::DataSeries::create
117 : : , ::chart::DataSeries::getImplementationName_Static
118 : : , ::chart::DataSeries::getSupportedServiceNames_Static
119 : : , ::cppu::createSingleComponentFactory
120 : : , 0
121 : : , 0
122 : : }
123 : : ,{
124 : : ::chart::XMLFilter::create
125 : : , ::chart::XMLFilter::getImplementationName_Static
126 : : , ::chart::XMLFilter::getSupportedServiceNames_Static
127 : : , ::cppu::createSingleComponentFactory
128 : : , 0
129 : : , 0
130 : : }
131 : : ,{
132 : : ::chart::XMLReportFilterHelper::create
133 : : , ::chart::XMLReportFilterHelper::getImplementationName_Static
134 : : , ::chart::XMLFilter::getSupportedServiceNames_Static // we support the same, because we are derived from
135 : : , ::cppu::createSingleComponentFactory
136 : : , 0
137 : : , 0
138 : : }
139 : : ,{
140 : : ::chart::PolarCoordinateSystem2d::create
141 : : , ::chart::PolarCoordinateSystem2d::getImplementationName_Static
142 : : , ::chart::PolarCoordinateSystem2d::getSupportedServiceNames_Static
143 : : , ::cppu::createSingleComponentFactory
144 : : , 0
145 : : , 0
146 : : }
147 : : ,{
148 : : ::chart::PolarCoordinateSystem3d::create
149 : : , ::chart::PolarCoordinateSystem3d::getImplementationName_Static
150 : : , ::chart::PolarCoordinateSystem3d::getSupportedServiceNames_Static
151 : : , ::cppu::createSingleComponentFactory
152 : : , 0
153 : : , 0
154 : : }
155 : : ,{
156 : : ::chart::CartesianCoordinateSystem2d::create
157 : : , ::chart::CartesianCoordinateSystem2d::getImplementationName_Static
158 : : , ::chart::CartesianCoordinateSystem2d::getSupportedServiceNames_Static
159 : : , ::cppu::createSingleComponentFactory
160 : : , 0
161 : : , 0
162 : : }
163 : : ,{
164 : : ::chart::CartesianCoordinateSystem3d::create
165 : : , ::chart::CartesianCoordinateSystem3d::getImplementationName_Static
166 : : , ::chart::CartesianCoordinateSystem3d::getSupportedServiceNames_Static
167 : : , ::cppu::createSingleComponentFactory
168 : : , 0
169 : : , 0
170 : : }
171 : : ,{ 0, 0, 0, 0, 0, 0 }
172 : : };
173 : :
174 : : // component exports
175 : : extern "C"
176 : : {
177 : : SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartview_component_getFactory(
178 : : const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey );
179 : : SAL_DLLPUBLIC_EXPORT void * SAL_CALL charttools_component_getFactory(
180 : : const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey );
181 : 173 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartcore_component_getFactory(
182 : : const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
183 : : {
184 : : void * pResult = ::cppu::component_getFactoryHelper(
185 : 173 : pImplName, pServiceManager, pRegistryKey, g_entries_chart2_model );
186 : :
187 [ + + ]: 173 : if( ! pResult )
188 : : pResult = ::cppu::component_getFactoryHelper(
189 : : pImplName, pServiceManager, pRegistryKey,
190 : 77 : ChartTypeEntriesForServiceRegistration::getImplementationEntries() );
191 [ + + ]: 173 : if (!pResult)
192 : : {
193 : : pResult = charttools_component_getFactory(
194 : 30 : pImplName, pServiceManager, pRegistryKey);
195 : : }
196 : :
197 [ + + ]: 173 : if (!pResult)
198 : : {
199 : : pResult = chartview_component_getFactory(
200 : 14 : pImplName, pServiceManager, pRegistryKey);
201 : : }
202 : :
203 : 173 : return pResult;
204 : : }
205 : : }
206 : : //=========================================================================
207 : :
208 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|