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 <cppuhelper/factory.hxx>
31 #include <osl/diagnose.h>
32 #include "dbu_reghelper.hxx"
33 #include "dbaccessdllapi.h"
35 /********************************************************************************************/
37 using namespace ::dbaui
;
38 using namespace ::com::sun::star::uno
;
39 using namespace ::com::sun::star::lang
;
40 using namespace ::com::sun::star::registry
;
42 //***************************************************************************************
45 extern "C" void SAL_CALL
createRegistryInfo_OTableFilterDialog();
46 extern "C" void SAL_CALL
createRegistryInfo_ODataSourcePropertyDialog();
47 extern "C" void SAL_CALL
createRegistryInfo_OSQLMessageDialog();
48 extern "C" void SAL_CALL
createRegistryInfo_OBrowser();
49 extern "C" void SAL_CALL
createRegistryInfo_OFormGridView();
50 extern "C" void SAL_CALL
createRegistryInfo_DBContentLoader();
51 extern "C" void SAL_CALL
writeDBLoaderInfo(void* pRegistryKey
);
52 extern "C" void SAL_CALL
createRegistryInfo_OInteractionHandler();
53 extern "C" void SAL_CALL
createRegistryInfo_SbaXGridControl();
54 extern "C" void SAL_CALL
createRegistryInfo_OQueryControl();
55 extern "C" void SAL_CALL
createRegistryInfo_OViewControl();
56 extern "C" void SAL_CALL
createRegistryInfo_OTableControl();
57 extern "C" void SAL_CALL
createRegistryInfo_ORelationControl();
58 extern "C" void SAL_CALL
createRegistryInfo_ComposerDialogs();
59 extern "C" void SAL_CALL
createRegistryInfo_ODBApplication();
60 extern "C" void SAL_CALL
createRegistryInfo_ODirectSQLDialog();
61 extern "C" void SAL_CALL
createRegistryInfo_OAdvancedSettingsDialog();
62 extern "C" void SAL_CALL
createRegistryInfo_ODBTypeWizDialog();
63 extern "C" void SAL_CALL
createRegistryInfo_OUserSettingsDialog();
64 extern "C" void SAL_CALL
createRegistryInfo_ODBTypeWizDialogSetup();
65 extern "C" void SAL_CALL
createRegistryInfo_OColumnControlModel();
66 extern "C" void SAL_CALL
createRegistryInfo_OColumnControl();
67 extern "C" void SAL_CALL
createRegistryInfo_OToolboxController();
68 extern "C" void SAL_CALL
createRegistryInfo_OStatusbarController();
69 extern "C" void SAL_CALL
createRegistryInfo_CopyTableWizard();
70 extern "C" void SAL_CALL
createRegistryInfo_OTextConnectionSettingsDialog();
72 //***************************************************************************************
73 extern "C" void SAL_CALL
createRegistryInfo_DBU()
75 static sal_Bool bInit
= sal_False
;
78 createRegistryInfo_OTableFilterDialog();
79 createRegistryInfo_ODataSourcePropertyDialog();
80 createRegistryInfo_OSQLMessageDialog();
81 createRegistryInfo_OBrowser();
82 createRegistryInfo_OFormGridView();
83 createRegistryInfo_DBContentLoader();
84 createRegistryInfo_OInteractionHandler();
85 createRegistryInfo_SbaXGridControl();
86 createRegistryInfo_OQueryControl();
87 createRegistryInfo_OViewControl();
88 createRegistryInfo_OTableControl();
89 createRegistryInfo_ORelationControl();
90 createRegistryInfo_ComposerDialogs();
91 createRegistryInfo_ODBApplication();
92 createRegistryInfo_ODirectSQLDialog();
93 createRegistryInfo_OAdvancedSettingsDialog();
94 createRegistryInfo_ODBTypeWizDialog();
95 createRegistryInfo_ODBTypeWizDialogSetup();
96 createRegistryInfo_OUserSettingsDialog();
97 createRegistryInfo_OColumnControlModel();
98 createRegistryInfo_OColumnControl();
99 createRegistryInfo_OToolboxController();
100 createRegistryInfo_OStatusbarController();
101 createRegistryInfo_CopyTableWizard();
102 createRegistryInfo_OTextConnectionSettingsDialog();
107 //---------------------------------------------------------------------------------------
108 extern "C" SAL_DLLPUBLIC_EXPORT
void* SAL_CALL
dbu_component_getFactory(
109 const sal_Char
* pImplementationName
,
110 void* pServiceManager
,
111 void* /*pRegistryKey*/)
113 createRegistryInfo_DBU();
115 Reference
< XInterface
> xRet
;
116 if (pServiceManager
&& pImplementationName
)
118 xRet
= ::dbaui::OModuleRegistration::getComponentFactory(
119 ::rtl::OUString::createFromAscii(pImplementationName
),
120 static_cast< XMultiServiceFactory
* >(pServiceManager
));
128 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */