bump product version to 5.0.4.1
[LibreOffice.git] / extensions / source / propctrlr / pcrservices.cxx
blob0985d4c91ac163511abaf1c7b6cbb9b28334923a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
21 #include "modulepcr.hxx"
22 #include "pcrservices.hxx"
24 using namespace ::com::sun::star::uno;
25 using namespace ::com::sun::star::lang;
26 using namespace ::com::sun::star::registry;
28 extern "C" void SAL_CALL pcr_initializeModule()
30 static bool s_bInit = false;
31 if (!s_bInit)
33 createRegistryInfo_OPropertyBrowserController();
34 createRegistryInfo_FormController();
35 createRegistryInfo_DefaultFormComponentInspectorModel();
36 createRegistryInfo_DefaultHelpProvider();
37 createRegistryInfo_OControlFontDialog();
38 createRegistryInfo_OTabOrderDialog();
39 createRegistryInfo_CellBindingPropertyHandler();
40 createRegistryInfo_ButtonNavigationHandler();
41 createRegistryInfo_EditPropertyHandler();
42 createRegistryInfo_FormComponentPropertyHandler();
43 createRegistryInfo_EFormsPropertyHandler();
44 createRegistryInfo_XSDValidationPropertyHandler();
45 createRegistryInfo_EventHandler();
46 createRegistryInfo_GenericPropertyHandler();
47 createRegistryInfo_ObjectInspectorModel();
48 createRegistryInfo_SubmissionPropertyHandler();
49 createRegistryInfo_StringRepresentation();
50 createRegistryInfo_MasterDetailLinkDialog();
51 createRegistryInfo_FormGeometryHandler();
52 s_bInit = true;
57 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*/)
62 pcr_initializeModule();
64 Reference< XInterface > xRet;
65 if (pServiceManager && pImplementationName)
67 xRet = ::pcr::PcrModule::getInstance().getComponentFactory(
68 OUString::createFromAscii(pImplementationName));
71 if (xRet.is())
72 xRet->acquire();
73 return xRet.get();
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */