1*96de5490SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*96de5490SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*96de5490SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*96de5490SAndrew Rist * distributed with this work for additional information 6*96de5490SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*96de5490SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*96de5490SAndrew Rist * "License"); you may not use this file except in compliance 9*96de5490SAndrew Rist * with the License. You may obtain a copy of the License at 10*96de5490SAndrew Rist * 11*96de5490SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*96de5490SAndrew Rist * 13*96de5490SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*96de5490SAndrew Rist * software distributed under the License is distributed on an 15*96de5490SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*96de5490SAndrew Rist * KIND, either express or implied. See the License for the 17*96de5490SAndrew Rist * specific language governing permissions and limitations 18*96de5490SAndrew Rist * under the License. 19*96de5490SAndrew Rist * 20*96de5490SAndrew Rist *************************************************************/ 21*96de5490SAndrew Rist 22*96de5490SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_dbaccess.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #ifndef _CPPUHELPER_FACTORY_HXX_ 28cdf0e10cSrcweir #include <cppuhelper/factory.hxx> 29cdf0e10cSrcweir #endif 30cdf0e10cSrcweir #ifndef _OSL_DIAGNOSE_H_ 31cdf0e10cSrcweir #include <osl/diagnose.h> 32cdf0e10cSrcweir #endif 33cdf0e10cSrcweir #ifndef _DBU_REGHELPER_HXX_ 34cdf0e10cSrcweir #include "dbu_reghelper.hxx" 35cdf0e10cSrcweir #endif 36cdf0e10cSrcweir #ifndef INCLUDED_DBACCESSDLLAPI_H 37cdf0e10cSrcweir #include "dbaccessdllapi.h" 38cdf0e10cSrcweir #endif 39cdf0e10cSrcweir 40cdf0e10cSrcweir /********************************************************************************************/ 41cdf0e10cSrcweir 42cdf0e10cSrcweir using namespace ::dbaui; 43cdf0e10cSrcweir using namespace ::com::sun::star::uno; 44cdf0e10cSrcweir using namespace ::com::sun::star::lang; 45cdf0e10cSrcweir using namespace ::com::sun::star::registry; 46cdf0e10cSrcweir 47cdf0e10cSrcweir //*************************************************************************************** 48cdf0e10cSrcweir // 49cdf0e10cSrcweir // registry functions 50cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OTableFilterDialog(); 51cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_ODataSourcePropertyDialog(); 52cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OSQLMessageDialog(); 53cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OBrowser(); 54cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OFormGridView(); 55cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_DBContentLoader(); 56cdf0e10cSrcweir extern "C" void SAL_CALL writeDBLoaderInfo(void* pRegistryKey); 57cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OInteractionHandler(); 58cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_SbaXGridControl(); 59cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OQueryControl(); 60cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OViewControl(); 61cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OTableControl(); 62cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_ORelationControl(); 63cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_ComposerDialogs(); 64cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_ODBApplication(); 65cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_ODirectSQLDialog(); 66cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OAdvancedSettingsDialog(); 67cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_ODBTypeWizDialog(); 68cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OUserSettingsDialog(); 69cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_ODBTypeWizDialogSetup(); 70cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OColumnControlModel(); 71cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OColumnControl(); 72cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OToolboxController(); 73cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OStatusbarController(); 74cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_CopyTableWizard(); 75cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OTextConnectionSettingsDialog(); 76cdf0e10cSrcweir 77cdf0e10cSrcweir //*************************************************************************************** 78cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_DBU() 79cdf0e10cSrcweir { 80cdf0e10cSrcweir static sal_Bool bInit = sal_False; 81cdf0e10cSrcweir if (!bInit) 82cdf0e10cSrcweir { 83cdf0e10cSrcweir createRegistryInfo_OTableFilterDialog(); 84cdf0e10cSrcweir createRegistryInfo_ODataSourcePropertyDialog(); 85cdf0e10cSrcweir createRegistryInfo_OSQLMessageDialog(); 86cdf0e10cSrcweir createRegistryInfo_OBrowser(); 87cdf0e10cSrcweir createRegistryInfo_OFormGridView(); 88cdf0e10cSrcweir createRegistryInfo_DBContentLoader(); 89cdf0e10cSrcweir createRegistryInfo_OInteractionHandler(); 90cdf0e10cSrcweir createRegistryInfo_SbaXGridControl(); 91cdf0e10cSrcweir createRegistryInfo_OQueryControl(); 92cdf0e10cSrcweir createRegistryInfo_OViewControl(); 93cdf0e10cSrcweir createRegistryInfo_OTableControl(); 94cdf0e10cSrcweir createRegistryInfo_ORelationControl(); 95cdf0e10cSrcweir createRegistryInfo_ComposerDialogs(); 96cdf0e10cSrcweir createRegistryInfo_ODBApplication(); 97cdf0e10cSrcweir createRegistryInfo_ODirectSQLDialog(); 98cdf0e10cSrcweir createRegistryInfo_OAdvancedSettingsDialog(); 99cdf0e10cSrcweir createRegistryInfo_ODBTypeWizDialog(); 100cdf0e10cSrcweir createRegistryInfo_ODBTypeWizDialogSetup(); 101cdf0e10cSrcweir createRegistryInfo_OUserSettingsDialog(); 102cdf0e10cSrcweir createRegistryInfo_OColumnControlModel(); 103cdf0e10cSrcweir createRegistryInfo_OColumnControl(); 104cdf0e10cSrcweir createRegistryInfo_OToolboxController(); 105cdf0e10cSrcweir createRegistryInfo_OStatusbarController(); 106cdf0e10cSrcweir createRegistryInfo_CopyTableWizard(); 107cdf0e10cSrcweir createRegistryInfo_OTextConnectionSettingsDialog(); 108cdf0e10cSrcweir bInit = sal_True; 109cdf0e10cSrcweir } 110cdf0e10cSrcweir } 111cdf0e10cSrcweir 112cdf0e10cSrcweir //--------------------------------------------------------------------------------------- 113cdf0e10cSrcweir 114cdf0e10cSrcweir extern "C" DBACCESS_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment( 115cdf0e10cSrcweir const sal_Char **ppEnvTypeName, 116cdf0e10cSrcweir uno_Environment ** 117cdf0e10cSrcweir ) 118cdf0e10cSrcweir { 119cdf0e10cSrcweir createRegistryInfo_DBU(); 120cdf0e10cSrcweir *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 121cdf0e10cSrcweir } 122cdf0e10cSrcweir 123cdf0e10cSrcweir //--------------------------------------------------------------------------------------- 124cdf0e10cSrcweir extern "C" DBACCESS_DLLPUBLIC void* SAL_CALL component_getFactory( 125cdf0e10cSrcweir const sal_Char* pImplementationName, 126cdf0e10cSrcweir void* pServiceManager, 127cdf0e10cSrcweir void* /*pRegistryKey*/) 128cdf0e10cSrcweir { 129cdf0e10cSrcweir Reference< XInterface > xRet; 130cdf0e10cSrcweir if (pServiceManager && pImplementationName) 131cdf0e10cSrcweir { 132cdf0e10cSrcweir xRet = ::dbaui::OModuleRegistration::getComponentFactory( 133cdf0e10cSrcweir ::rtl::OUString::createFromAscii(pImplementationName), 134cdf0e10cSrcweir static_cast< XMultiServiceFactory* >(pServiceManager)); 135cdf0e10cSrcweir } 136cdf0e10cSrcweir 137cdf0e10cSrcweir if (xRet.is()) 138cdf0e10cSrcweir xRet->acquire(); 139cdf0e10cSrcweir return xRet.get(); 140cdf0e10cSrcweir }; 141