1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_chart2.hxx"
26 #include "ChartController.hxx"
27 #include "ChartFrameloader.hxx"
28 #include "dlg_CreationWizard_UNO.hxx"
29 #include "dlg_ChartType_UNO.hxx"
30 #include "ChartDocumentWrapper.hxx"
31 #include "AccessibleChartView.hxx"
32 #include "ElementSelector.hxx"
33 #include "ShapeToolbarController.hxx"
34 #include <cppuhelper/implementationentry.hxx>
35 
36 static struct ::cppu::ImplementationEntry g_entries_chart2_controller[] =
37 {
38 	{
39 		  ::chart::ChartController::create
40 		, ::chart::ChartController::getImplementationName_Static
41 		, ::chart::ChartController::getSupportedServiceNames_Static
42 		, ::cppu::createSingleComponentFactory
43 		, 0
44 		, 0
45 	}
46 	,{
47 		  ::chart::ChartFrameLoader::create
48 		, ::chart::ChartFrameLoader::getImplementationName_Static
49 		, ::chart::ChartFrameLoader::getSupportedServiceNames_Static
50 		, ::cppu::createSingleComponentFactory
51 		, 0
52 		, 0
53 	}
54     ,{
55 		  ::chart::CreationWizardUnoDlg::create
56 		, ::chart::CreationWizardUnoDlg::getImplementationName_Static
57 		, ::chart::CreationWizardUnoDlg::getSupportedServiceNames_Static
58 		, ::cppu::createSingleComponentFactory
59 		, 0
60 		, 0
61 	}
62     ,{
63 		  ::chart::ChartTypeUnoDlg::Create
64 		, ::chart::ChartTypeUnoDlg::getImplementationName_Static
65 		, ::chart::ChartTypeUnoDlg::getSupportedServiceNames_Static
66 		, ::cppu::createSingleComponentFactory
67 		, 0
68 		, 0
69 	}
70     ,{
71           ::chart::wrapper::ChartDocumentWrapper::create
72 		, ::chart::wrapper::ChartDocumentWrapper::getImplementationName_Static
73 		, ::chart::wrapper::ChartDocumentWrapper::getSupportedServiceNames_Static
74 		, ::cppu::createSingleComponentFactory
75 		, 0
76 		, 0
77 	}
78     ,{
79 		  ::chart::ElementSelectorToolbarController::create
80 		, ::chart::ElementSelectorToolbarController::getImplementationName_Static
81 		, ::chart::ElementSelectorToolbarController::getSupportedServiceNames_Static
82 		, ::cppu::createSingleComponentFactory
83 		, 0
84 		, 0
85 	}
86     ,{
87           ::chart::ShapeToolbarController::create
88 		, ::chart::ShapeToolbarController::getImplementationName_Static
89 		, ::chart::ShapeToolbarController::getSupportedServiceNames_Static
90 		, ::cppu::createSingleComponentFactory
91 		, 0
92 		, 0
93 	}
94 	,{ 0, 0, 0, 0, 0, 0 }
95 };
96 
97 // component exports
98 extern "C"
99 {
100 //==================================================================================================
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)101 SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
102 	const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */ )
103 {
104 	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
105 }
106 //==================================================================================================
component_getFactory(const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey)107 SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
108 	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
109 {
110 	return ::cppu::component_getFactoryHelper(
111         pImplName, pServiceManager, pRegistryKey , g_entries_chart2_controller );
112 }
113 }
114 //=========================================================================
115