196de5490SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 396de5490SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 496de5490SAndrew Rist * or more contributor license agreements. See the NOTICE file 596de5490SAndrew Rist * distributed with this work for additional information 696de5490SAndrew Rist * regarding copyright ownership. The ASF licenses this file 796de5490SAndrew Rist * to you under the Apache License, Version 2.0 (the 896de5490SAndrew Rist * "License"); you may not use this file except in compliance 996de5490SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 1196de5490SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 1396de5490SAndrew Rist * Unless required by applicable law or agreed to in writing, 1496de5490SAndrew Rist * software distributed under the License is distributed on an 1596de5490SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1696de5490SAndrew Rist * KIND, either express or implied. See the License for the 1796de5490SAndrew Rist * specific language governing permissions and limitations 1896de5490SAndrew Rist * under the License. 19cdf0e10cSrcweir * 2096de5490SAndrew Rist *************************************************************/ 2196de5490SAndrew Rist 2296de5490SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25*b63233d8Sdamjan #include "precompiled_dbui.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_CopyTableWizard(); 74cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OTextConnectionSettingsDialog(); 75cdf0e10cSrcweir 76cdf0e10cSrcweir //*************************************************************************************** 77cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_DBU() 78cdf0e10cSrcweir { 79cdf0e10cSrcweir static sal_Bool bInit = sal_False; 80cdf0e10cSrcweir if (!bInit) 81cdf0e10cSrcweir { 82cdf0e10cSrcweir createRegistryInfo_OTableFilterDialog(); 83cdf0e10cSrcweir createRegistryInfo_ODataSourcePropertyDialog(); 84cdf0e10cSrcweir createRegistryInfo_OSQLMessageDialog(); 85cdf0e10cSrcweir createRegistryInfo_OBrowser(); 86cdf0e10cSrcweir createRegistryInfo_OFormGridView(); 87cdf0e10cSrcweir createRegistryInfo_DBContentLoader(); 88cdf0e10cSrcweir createRegistryInfo_OInteractionHandler(); 89cdf0e10cSrcweir createRegistryInfo_SbaXGridControl(); 90cdf0e10cSrcweir createRegistryInfo_OQueryControl(); 91cdf0e10cSrcweir createRegistryInfo_OViewControl(); 92cdf0e10cSrcweir createRegistryInfo_OTableControl(); 93cdf0e10cSrcweir createRegistryInfo_ORelationControl(); 94cdf0e10cSrcweir createRegistryInfo_ComposerDialogs(); 95cdf0e10cSrcweir createRegistryInfo_ODBApplication(); 96cdf0e10cSrcweir createRegistryInfo_ODirectSQLDialog(); 97cdf0e10cSrcweir createRegistryInfo_OAdvancedSettingsDialog(); 98cdf0e10cSrcweir createRegistryInfo_ODBTypeWizDialog(); 99cdf0e10cSrcweir createRegistryInfo_ODBTypeWizDialogSetup(); 100cdf0e10cSrcweir createRegistryInfo_OUserSettingsDialog(); 101cdf0e10cSrcweir createRegistryInfo_OColumnControlModel(); 102cdf0e10cSrcweir createRegistryInfo_OColumnControl(); 103cdf0e10cSrcweir createRegistryInfo_OToolboxController(); 104cdf0e10cSrcweir createRegistryInfo_CopyTableWizard(); 105cdf0e10cSrcweir createRegistryInfo_OTextConnectionSettingsDialog(); 106cdf0e10cSrcweir bInit = sal_True; 107cdf0e10cSrcweir } 108cdf0e10cSrcweir } 109cdf0e10cSrcweir 110cdf0e10cSrcweir //--------------------------------------------------------------------------------------- 111cdf0e10cSrcweir 112cdf0e10cSrcweir extern "C" DBACCESS_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment( 113cdf0e10cSrcweir const sal_Char **ppEnvTypeName, 114cdf0e10cSrcweir uno_Environment ** 115cdf0e10cSrcweir ) 116cdf0e10cSrcweir { 117cdf0e10cSrcweir createRegistryInfo_DBU(); 118cdf0e10cSrcweir *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 119cdf0e10cSrcweir } 120cdf0e10cSrcweir 121cdf0e10cSrcweir //--------------------------------------------------------------------------------------- 122cdf0e10cSrcweir extern "C" DBACCESS_DLLPUBLIC void* SAL_CALL component_getFactory( 123cdf0e10cSrcweir const sal_Char* pImplementationName, 124cdf0e10cSrcweir void* pServiceManager, 125cdf0e10cSrcweir void* /*pRegistryKey*/) 126cdf0e10cSrcweir { 127cdf0e10cSrcweir Reference< XInterface > xRet; 128cdf0e10cSrcweir if (pServiceManager && pImplementationName) 129cdf0e10cSrcweir { 130cdf0e10cSrcweir xRet = ::dbaui::OModuleRegistration::getComponentFactory( 131cdf0e10cSrcweir ::rtl::OUString::createFromAscii(pImplementationName), 132cdf0e10cSrcweir static_cast< XMultiServiceFactory* >(pServiceManager)); 133cdf0e10cSrcweir } 134cdf0e10cSrcweir 135cdf0e10cSrcweir if (xRet.is()) 136cdf0e10cSrcweir xRet->acquire(); 137cdf0e10cSrcweir return xRet.get(); 138cdf0e10cSrcweir }; 139