bump product version to 6.3.0.0.beta1
[LibreOffice.git] / extensions / source / propctrlr / pcrservices.cxx
blob8156ffeb603a09239a47a6543ec8f60fb449c29b
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"
23 #include <mutex>
25 using namespace ::com::sun::star::uno;
26 using namespace ::com::sun::star::lang;
27 using namespace ::com::sun::star::registry;
29 extern "C" {
31 static void pcr_initializeModule()
33 std::once_flag aInit;
34 std::call_once(aInit, [&]()
36 createRegistryInfo_OPropertyBrowserController();
37 createRegistryInfo_FormController();
38 createRegistryInfo_DefaultFormComponentInspectorModel();
39 createRegistryInfo_DefaultHelpProvider();
40 createRegistryInfo_OControlFontDialog();
41 createRegistryInfo_OTabOrderDialog();
42 createRegistryInfo_CellBindingPropertyHandler();
43 createRegistryInfo_ButtonNavigationHandler();
44 createRegistryInfo_EditPropertyHandler();
45 createRegistryInfo_FormComponentPropertyHandler();
46 createRegistryInfo_EFormsPropertyHandler();
47 createRegistryInfo_XSDValidationPropertyHandler();
48 createRegistryInfo_EventHandler();
49 createRegistryInfo_GenericPropertyHandler();
50 createRegistryInfo_ObjectInspectorModel();
51 createRegistryInfo_SubmissionPropertyHandler();
52 createRegistryInfo_StringRepresentation();
53 createRegistryInfo_MasterDetailLinkDialog();
54 createRegistryInfo_FormGeometryHandler();
55 return true;
56 });
61 extern "C" SAL_DLLPUBLIC_EXPORT void* pcr_component_getFactory(
62 const sal_Char* pImplementationName,
63 void* pServiceManager,
64 SAL_UNUSED_PARAMETER void* /*pRegistryKey*/)
66 pcr_initializeModule();
68 Reference< XInterface > xRet;
69 if (pServiceManager && pImplementationName)
71 xRet = ::pcr::PcrModule::getInstance().getComponentFactory(
72 OUString::createFromAscii(pImplementationName));
75 if (xRet.is())
76 xRet->acquire();
77 return xRet.get();
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */