Bump for 3.6-28
[LibreOffice.git] / extensions / source / propctrlr / pcrservices.cxx
blobffde3d8284510387b9b74655353d5877b71c5ae6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
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.
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).
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.
27 ************************************************************************/
30 #include "modulepcr.hxx"
32 //---------------------------------------------------------------------------------------
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;
39 //---------------------------------------------------------------------------------------
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();
61 //---------------------------------------------------------------------------------------
63 extern "C" void SAL_CALL pcr_initializeModule()
65 static sal_Bool s_bInit = sal_False;
66 if (!s_bInit)
68 createRegistryInfo_OPropertyBrowserController();
69 createRegistryInfo_FormController();
70 createRegistryInfo_DefaultFormComponentInspectorModel();
71 createRegistryInfo_DefaultHelpProvider();
72 createRegistryInfo_OControlFontDialog();
73 createRegistryInfo_OTabOrderDialog();
74 createRegistryInfo_CellBindingPropertyHandler();
75 createRegistryInfo_ButtonNavigationHandler();
76 createRegistryInfo_EditPropertyHandler();
77 createRegistryInfo_FormComponentPropertyHandler();
78 createRegistryInfo_EFormsPropertyHandler();
79 createRegistryInfo_XSDValidationPropertyHandler();
80 createRegistryInfo_EventHandler();
81 createRegistryInfo_GenericPropertyHandler();
82 createRegistryInfo_ObjectInspectorModel();
83 createRegistryInfo_SubmissionPropertyHandler();
84 createRegistryInfo_StringRepresentation();
85 createRegistryInfo_MasterDetailLinkDialog();
86 createRegistryInfo_FormGeometryHandler();
87 s_bInit = sal_True;
91 //---------------------------------------------------------------------------------------
92 extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
93 const sal_Char* pImplementationName,
94 void* pServiceManager,
95 SAL_UNUSED_PARAMETER void* /*pRegistryKey*/)
97 pcr_initializeModule();
99 Reference< XInterface > xRet;
100 if (pServiceManager && pImplementationName)
102 xRet = ::pcr::PcrModule::getInstance().getComponentFactory(
103 ::rtl::OUString::createFromAscii(pImplementationName));
106 if (xRet.is())
107 xRet->acquire();
108 return xRet.get();
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */