1*9e0e4191SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*9e0e4191SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*9e0e4191SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*9e0e4191SAndrew Rist  * distributed with this work for additional information
6*9e0e4191SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*9e0e4191SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*9e0e4191SAndrew Rist  * "License"); you may not use this file except in compliance
9*9e0e4191SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*9e0e4191SAndrew Rist  *
11*9e0e4191SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*9e0e4191SAndrew Rist  *
13*9e0e4191SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*9e0e4191SAndrew Rist  * software distributed under the License is distributed on an
15*9e0e4191SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*9e0e4191SAndrew Rist  * KIND, either express or implied.  See the License for the
17*9e0e4191SAndrew Rist  * specific language governing permissions and limitations
18*9e0e4191SAndrew Rist  * under the License.
19*9e0e4191SAndrew Rist  *
20*9e0e4191SAndrew Rist  *************************************************************/
21*9e0e4191SAndrew Rist 
22*9e0e4191SAndrew Rist 
23cdf0e10cSrcweir #include "precompiled_reportdesign.hxx"
24cdf0e10cSrcweir #include <cppuhelper/factory.hxx>
25cdf0e10cSrcweir #include <osl/diagnose.h>
26cdf0e10cSrcweir #include <cppuhelper/implementationentry.hxx>
27cdf0e10cSrcweir #include "ReportController.hxx"
28cdf0e10cSrcweir #include "toolboxcontroller.hxx"
29cdf0e10cSrcweir #include "statusbarcontroller.hxx"
30cdf0e10cSrcweir #include "DefaultInspection.hxx"
31cdf0e10cSrcweir #include "ReportComponentHandler.hxx"
32cdf0e10cSrcweir #include "GeometryHandler.hxx"
33cdf0e10cSrcweir #include "DataProviderHandler.hxx"
34cdf0e10cSrcweir 
35cdf0e10cSrcweir /********************************************************************************************/
36cdf0e10cSrcweir 
37cdf0e10cSrcweir using namespace ::rptui;
38cdf0e10cSrcweir using namespace ::com::sun::star::uno;
39cdf0e10cSrcweir using namespace ::com::sun::star::lang;
40cdf0e10cSrcweir using namespace ::com::sun::star::registry;
41cdf0e10cSrcweir 
42cdf0e10cSrcweir //***************************************************************************************
43cdf0e10cSrcweir //
44cdf0e10cSrcweir // registry functions
45cdf0e10cSrcweir namespace
46cdf0e10cSrcweir {
47cdf0e10cSrcweir 
48cdf0e10cSrcweir cppu::ImplementationEntry entries[] = {
49cdf0e10cSrcweir 	{ &OReportController::create, &OReportController::getImplementationName_Static, &OReportController::getSupportedServiceNames_Static,
50cdf0e10cSrcweir 		&cppu::createSingleComponentFactory, 0, 0 },
51cdf0e10cSrcweir 	{ &OToolboxController::create, &OToolboxController::getImplementationName_Static, &OToolboxController::getSupportedServiceNames_Static,
52cdf0e10cSrcweir 		&cppu::createSingleComponentFactory, 0, 0 },
53cdf0e10cSrcweir     { &OStatusbarController::create, &OStatusbarController::getImplementationName_Static, &OStatusbarController::getSupportedServiceNames_Static,
54cdf0e10cSrcweir 		&cppu::createSingleComponentFactory, 0, 0 },
55cdf0e10cSrcweir     { &DefaultComponentInspectorModel::create, &DefaultComponentInspectorModel::getImplementationName_Static, &DefaultComponentInspectorModel::getSupportedServiceNames_static,
56cdf0e10cSrcweir 		&cppu::createSingleComponentFactory, 0, 0 },
57cdf0e10cSrcweir     { &ReportComponentHandler::create, &ReportComponentHandler::getImplementationName_Static, &ReportComponentHandler::getSupportedServiceNames_static,
58cdf0e10cSrcweir 		&cppu::createSingleComponentFactory, 0, 0 },
59cdf0e10cSrcweir     { &GeometryHandler::create, &GeometryHandler::getImplementationName_Static, &GeometryHandler::getSupportedServiceNames_static,
60cdf0e10cSrcweir 		&cppu::createSingleComponentFactory, 0, 0 },
61cdf0e10cSrcweir     { &DataProviderHandler::create, &DataProviderHandler::getImplementationName_Static, &DataProviderHandler::getSupportedServiceNames_static,
62cdf0e10cSrcweir 		&cppu::createSingleComponentFactory, 0, 0 },
63cdf0e10cSrcweir 	{ 0, 0, 0, 0, 0, 0 }
64cdf0e10cSrcweir };
65cdf0e10cSrcweir }
66cdf0e10cSrcweir 
component_getFactory(char const * implName,void * serviceManager,void * registryKey)67cdf0e10cSrcweir extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
68cdf0e10cSrcweir     char const * implName, void * serviceManager, void * registryKey)
69cdf0e10cSrcweir {
70cdf0e10cSrcweir     return cppu::component_getFactoryHelper(
71cdf0e10cSrcweir         implName, serviceManager, registryKey, entries);
72cdf0e10cSrcweir }
73cdf0e10cSrcweir 
component_getImplementationEnvironment(char const ** envTypeName,uno_Environment **)74cdf0e10cSrcweir extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
75cdf0e10cSrcweir     char const ** envTypeName, uno_Environment **)
76cdf0e10cSrcweir {
77cdf0e10cSrcweir     *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
78cdf0e10cSrcweir }
79