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 :
20 :
21 : #include "modulepcr.hxx"
22 : #include "pcrservices.hxx"
23 :
24 : using namespace ::com::sun::star::uno;
25 : using namespace ::com::sun::star::lang;
26 : using namespace ::com::sun::star::registry;
27 :
28 16 : extern "C" void SAL_CALL pcr_initializeModule()
29 : {
30 : static bool s_bInit = false;
31 16 : if (!s_bInit)
32 : {
33 2 : createRegistryInfo_OPropertyBrowserController();
34 2 : createRegistryInfo_FormController();
35 2 : createRegistryInfo_DefaultFormComponentInspectorModel();
36 2 : createRegistryInfo_DefaultHelpProvider();
37 2 : createRegistryInfo_OControlFontDialog();
38 2 : createRegistryInfo_OTabOrderDialog();
39 2 : createRegistryInfo_CellBindingPropertyHandler();
40 2 : createRegistryInfo_ButtonNavigationHandler();
41 2 : createRegistryInfo_EditPropertyHandler();
42 2 : createRegistryInfo_FormComponentPropertyHandler();
43 2 : createRegistryInfo_EFormsPropertyHandler();
44 2 : createRegistryInfo_XSDValidationPropertyHandler();
45 2 : createRegistryInfo_EventHandler();
46 2 : createRegistryInfo_GenericPropertyHandler();
47 2 : createRegistryInfo_ObjectInspectorModel();
48 2 : createRegistryInfo_SubmissionPropertyHandler();
49 2 : createRegistryInfo_StringRepresentation();
50 2 : createRegistryInfo_MasterDetailLinkDialog();
51 2 : createRegistryInfo_FormGeometryHandler();
52 2 : s_bInit = true;
53 : }
54 16 : }
55 :
56 :
57 16 : extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL pcr_component_getFactory(
58 : const sal_Char* pImplementationName,
59 : void* pServiceManager,
60 : SAL_UNUSED_PARAMETER void* /*pRegistryKey*/)
61 : {
62 16 : pcr_initializeModule();
63 :
64 16 : Reference< XInterface > xRet;
65 16 : if (pServiceManager && pImplementationName)
66 : {
67 32 : xRet = ::pcr::PcrModule::getInstance().getComponentFactory(
68 16 : OUString::createFromAscii(pImplementationName));
69 : }
70 :
71 16 : if (xRet.is())
72 16 : xRet->acquire();
73 16 : return xRet.get();
74 : };
75 :
76 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|