xref: /AOO41X/main/chart2/source/controller/main/_serviceregistration_controller.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 "ChartController.hxx"
31 #include "ChartFrameloader.hxx"
32 #include "dlg_CreationWizard_UNO.hxx"
33 #include "dlg_ChartType_UNO.hxx"
34 #include "ChartDocumentWrapper.hxx"
35 #include "AccessibleChartView.hxx"
36 #include "ElementSelector.hxx"
37 #include "ShapeToolbarController.hxx"
38 #include <cppuhelper/implementationentry.hxx>
39 
40 static struct ::cppu::ImplementationEntry g_entries_chart2_controller[] =
41 {
42 	{
43 		  ::chart::ChartController::create
44 		, ::chart::ChartController::getImplementationName_Static
45 		, ::chart::ChartController::getSupportedServiceNames_Static
46 		, ::cppu::createSingleComponentFactory
47 		, 0
48 		, 0
49 	}
50 	,{
51 		  ::chart::ChartFrameLoader::create
52 		, ::chart::ChartFrameLoader::getImplementationName_Static
53 		, ::chart::ChartFrameLoader::getSupportedServiceNames_Static
54 		, ::cppu::createSingleComponentFactory
55 		, 0
56 		, 0
57 	}
58     ,{
59 		  ::chart::CreationWizardUnoDlg::create
60 		, ::chart::CreationWizardUnoDlg::getImplementationName_Static
61 		, ::chart::CreationWizardUnoDlg::getSupportedServiceNames_Static
62 		, ::cppu::createSingleComponentFactory
63 		, 0
64 		, 0
65 	}
66     ,{
67 		  ::chart::ChartTypeUnoDlg::Create
68 		, ::chart::ChartTypeUnoDlg::getImplementationName_Static
69 		, ::chart::ChartTypeUnoDlg::getSupportedServiceNames_Static
70 		, ::cppu::createSingleComponentFactory
71 		, 0
72 		, 0
73 	}
74     ,{
75           ::chart::wrapper::ChartDocumentWrapper::create
76 		, ::chart::wrapper::ChartDocumentWrapper::getImplementationName_Static
77 		, ::chart::wrapper::ChartDocumentWrapper::getSupportedServiceNames_Static
78 		, ::cppu::createSingleComponentFactory
79 		, 0
80 		, 0
81 	}
82     ,{
83 		  ::chart::ElementSelectorToolbarController::create
84 		, ::chart::ElementSelectorToolbarController::getImplementationName_Static
85 		, ::chart::ElementSelectorToolbarController::getSupportedServiceNames_Static
86 		, ::cppu::createSingleComponentFactory
87 		, 0
88 		, 0
89 	}
90     ,{
91           ::chart::ShapeToolbarController::create
92 		, ::chart::ShapeToolbarController::getImplementationName_Static
93 		, ::chart::ShapeToolbarController::getSupportedServiceNames_Static
94 		, ::cppu::createSingleComponentFactory
95 		, 0
96 		, 0
97 	}
98 	,{ 0, 0, 0, 0, 0, 0 }
99 };
100 
101 // component exports
102 extern "C"
103 {
104 //==================================================================================================
105 SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
106 	const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */ )
107 {
108 	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
109 }
110 //==================================================================================================
111 SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
112 	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
113 {
114 	return ::cppu::component_getFactoryHelper(
115         pImplName, pServiceManager, pRegistryKey , g_entries_chart2_controller );
116 }
117 }
118 //=========================================================================
119