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 : #include <cppuhelper/factory.hxx>
20 : #include <osl/diagnose.h>
21 : #include <cppuhelper/implementationentry.hxx>
22 : #include "ReportController.hxx"
23 : #include "toolboxcontroller.hxx"
24 : #include "statusbarcontroller.hxx"
25 : #include "DefaultInspection.hxx"
26 : #include "ReportComponentHandler.hxx"
27 : #include "GeometryHandler.hxx"
28 : #include "DataProviderHandler.hxx"
29 :
30 : /********************************************************************************************/
31 :
32 : using namespace ::rptui;
33 : using namespace ::com::sun::star::uno;
34 : using namespace ::com::sun::star::lang;
35 : using namespace ::com::sun::star::registry;
36 :
37 :
38 :
39 : // registry functions
40 : namespace
41 : {
42 :
43 : cppu::ImplementationEntry entries[] = {
44 : { &OReportController::create, &OReportController::getImplementationName_Static, &OReportController::getSupportedServiceNames_Static,
45 : &cppu::createSingleComponentFactory, 0, 0 },
46 : { &OToolboxController::create, &OToolboxController::getImplementationName_Static, &OToolboxController::getSupportedServiceNames_Static,
47 : &cppu::createSingleComponentFactory, 0, 0 },
48 : { &OStatusbarController::create, &OStatusbarController::getImplementationName_Static, &OStatusbarController::getSupportedServiceNames_Static,
49 : &cppu::createSingleComponentFactory, 0, 0 },
50 : { &DefaultComponentInspectorModel::create, &DefaultComponentInspectorModel::getImplementationName_Static, &DefaultComponentInspectorModel::getSupportedServiceNames_static,
51 : &cppu::createSingleComponentFactory, 0, 0 },
52 : { &ReportComponentHandler::create, &ReportComponentHandler::getImplementationName_Static, &ReportComponentHandler::getSupportedServiceNames_static,
53 : &cppu::createSingleComponentFactory, 0, 0 },
54 : { &GeometryHandler::create, &GeometryHandler::getImplementationName_Static, &GeometryHandler::getSupportedServiceNames_static,
55 : &cppu::createSingleComponentFactory, 0, 0 },
56 : { &DataProviderHandler::create, &DataProviderHandler::getImplementationName_Static, &DataProviderHandler::getSupportedServiceNames_static,
57 : &cppu::createSingleComponentFactory, 0, 0 },
58 : { 0, 0, 0, 0, 0, 0 }
59 : };
60 : }
61 :
62 0 : extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL rptui_component_getFactory(
63 : char const * implName, void * serviceManager, void * registryKey)
64 : {
65 : return cppu::component_getFactoryHelper(
66 0 : implName, serviceManager, registryKey, entries);
67 : }
68 :
69 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|