Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : :
30 : : #include "modulepcr.hxx"
31 : :
32 : : //---------------------------------------------------------------------------------------
33 : :
34 : : using namespace ::rtl;
35 : : using namespace ::com::sun::star::uno;
36 : : using namespace ::com::sun::star::lang;
37 : : using namespace ::com::sun::star::registry;
38 : :
39 : : //---------------------------------------------------------------------------------------
40 : :
41 : : extern "C" void SAL_CALL createRegistryInfo_OPropertyBrowserController();
42 : : extern "C" void SAL_CALL createRegistryInfo_FormController();
43 : : extern "C" void SAL_CALL createRegistryInfo_DefaultFormComponentInspectorModel();
44 : : extern "C" void SAL_CALL createRegistryInfo_DefaultHelpProvider();
45 : : extern "C" void SAL_CALL createRegistryInfo_OControlFontDialog();
46 : : extern "C" void SAL_CALL createRegistryInfo_OTabOrderDialog();
47 : : extern "C" void SAL_CALL createRegistryInfo_CellBindingPropertyHandler();
48 : : extern "C" void SAL_CALL createRegistryInfo_ButtonNavigationHandler();
49 : : extern "C" void SAL_CALL createRegistryInfo_EditPropertyHandler();
50 : : extern "C" void SAL_CALL createRegistryInfo_FormComponentPropertyHandler();
51 : : extern "C" void SAL_CALL createRegistryInfo_EFormsPropertyHandler();
52 : : extern "C" void SAL_CALL createRegistryInfo_XSDValidationPropertyHandler();
53 : : extern "C" void SAL_CALL createRegistryInfo_EventHandler();
54 : : extern "C" void SAL_CALL createRegistryInfo_GenericPropertyHandler();
55 : : extern "C" void SAL_CALL createRegistryInfo_ObjectInspectorModel();
56 : : extern "C" void SAL_CALL createRegistryInfo_SubmissionPropertyHandler();
57 : : extern "C" void SAL_CALL createRegistryInfo_StringRepresentation();
58 : : extern "C" void SAL_CALL createRegistryInfo_MasterDetailLinkDialog();
59 : : extern "C" void SAL_CALL createRegistryInfo_FormGeometryHandler();
60 : :
61 : : //---------------------------------------------------------------------------------------
62 : :
63 : 0 : extern "C" void SAL_CALL pcr_initializeModule()
64 : : {
65 : : static sal_Bool s_bInit = sal_False;
66 : 0 : if (!s_bInit)
67 : : {
68 : 0 : createRegistryInfo_OPropertyBrowserController();
69 : 0 : createRegistryInfo_FormController();
70 : 0 : createRegistryInfo_DefaultFormComponentInspectorModel();
71 : 0 : createRegistryInfo_DefaultHelpProvider();
72 : 0 : createRegistryInfo_OControlFontDialog();
73 : 0 : createRegistryInfo_OTabOrderDialog();
74 : 0 : createRegistryInfo_CellBindingPropertyHandler();
75 : 0 : createRegistryInfo_ButtonNavigationHandler();
76 : 0 : createRegistryInfo_EditPropertyHandler();
77 : 0 : createRegistryInfo_FormComponentPropertyHandler();
78 : 0 : createRegistryInfo_EFormsPropertyHandler();
79 : 0 : createRegistryInfo_XSDValidationPropertyHandler();
80 : 0 : createRegistryInfo_EventHandler();
81 : 0 : createRegistryInfo_GenericPropertyHandler();
82 : 0 : createRegistryInfo_ObjectInspectorModel();
83 : 0 : createRegistryInfo_SubmissionPropertyHandler();
84 : 0 : createRegistryInfo_StringRepresentation();
85 : 0 : createRegistryInfo_MasterDetailLinkDialog();
86 : 0 : createRegistryInfo_FormGeometryHandler();
87 : 0 : s_bInit = sal_True;
88 : : }
89 : 0 : }
90 : :
91 : : //---------------------------------------------------------------------------------------
92 : 0 : extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
93 : : const sal_Char* pImplementationName,
94 : : void* pServiceManager,
95 : : SAL_UNUSED_PARAMETER void* /*pRegistryKey*/)
96 : : {
97 : 0 : pcr_initializeModule();
98 : :
99 : 0 : Reference< XInterface > xRet;
100 : 0 : if (pServiceManager && pImplementationName)
101 : : {
102 : 0 : xRet = ::pcr::PcrModule::getInstance().getComponentFactory(
103 : 0 : ::rtl::OUString::createFromAscii(pImplementationName));
104 : : }
105 : :
106 : 0 : if (xRet.is())
107 : 0 : xRet->acquire();
108 : 0 : return xRet.get();
109 : : };
110 : :
111 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|