2010-10-12 15:59:03 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-10-05 09:09:48 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 15:14:02 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-10-05 09:09:48 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-10-05 09:09:48 +00:00
|
|
|
*
|
2008-04-10 15:14:02 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-10-05 09:09:48 +00:00
|
|
|
*
|
2008-04-10 15:14:02 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-10-05 09:09:48 +00:00
|
|
|
*
|
2008-04-10 15:14:02 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-10-05 09:09:48 +00:00
|
|
|
*
|
2008-04-10 15:14:02 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-10-05 09:09:48 +00:00
|
|
|
*
|
2008-04-10 15:14:02 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-10-05 09:09:48 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 06:19:06 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_dbaccess.hxx"
|
|
|
|
|
2000-10-05 09:09:48 +00:00
|
|
|
#include <cppuhelper/factory.hxx>
|
|
|
|
#include <osl/diagnose.h>
|
2000-12-15 14:54:12 +00:00
|
|
|
#include "dbu_reghelper.hxx"
|
2007-07-06 07:38:21 +00:00
|
|
|
#include "dbaccessdllapi.h"
|
2000-10-05 09:09:48 +00:00
|
|
|
|
|
|
|
/********************************************************************************************/
|
|
|
|
|
2001-01-09 15:11:54 +00:00
|
|
|
using namespace ::dbaui;
|
2000-10-05 09:09:48 +00:00
|
|
|
using namespace ::com::sun::star::uno;
|
|
|
|
using namespace ::com::sun::star::lang;
|
|
|
|
using namespace ::com::sun::star::registry;
|
|
|
|
|
|
|
|
//***************************************************************************************
|
|
|
|
//
|
|
|
|
// registry functions
|
2004-08-02 15:11:49 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OTableFilterDialog();
|
|
|
|
extern "C" void SAL_CALL createRegistryInfo_ODataSourcePropertyDialog();
|
2000-10-05 09:09:48 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OSQLMessageDialog();
|
2000-10-26 13:54:20 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OBrowser();
|
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OFormGridView();
|
|
|
|
extern "C" void SAL_CALL createRegistryInfo_DBContentLoader();
|
|
|
|
extern "C" void SAL_CALL writeDBLoaderInfo(void* pRegistryKey);
|
2000-10-25 12:00:10 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OInteractionHandler();
|
2000-11-14 12:42:40 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_SbaXGridControl();
|
2001-01-09 15:11:54 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OQueryControl();
|
2008-04-04 13:03:26 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OViewControl();
|
2001-02-14 13:37:35 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OTableControl();
|
2001-02-28 09:11:33 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_ORelationControl();
|
2005-01-05 11:37:18 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_ComposerDialogs();
|
2004-08-02 15:11:49 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_ODBApplication();
|
|
|
|
extern "C" void SAL_CALL createRegistryInfo_ODirectSQLDialog();
|
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OAdvancedSettingsDialog();
|
|
|
|
extern "C" void SAL_CALL createRegistryInfo_ODBTypeWizDialog();
|
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OUserSettingsDialog();
|
2004-10-27 12:07:50 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_ODBTypeWizDialogSetup();
|
2004-05-19 12:56:12 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OColumnControlModel();
|
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OColumnControl();
|
2004-09-09 08:47:32 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OToolboxController();
|
2004-11-17 13:53:51 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OStatusbarController();
|
2008-01-30 07:53:51 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_CopyTableWizard();
|
2008-03-07 10:25:30 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_OTextConnectionSettingsDialog();
|
2000-10-05 09:09:48 +00:00
|
|
|
|
|
|
|
//***************************************************************************************
|
2000-12-15 15:46:23 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_DBU()
|
2000-10-05 09:09:48 +00:00
|
|
|
{
|
|
|
|
static sal_Bool bInit = sal_False;
|
|
|
|
if (!bInit)
|
|
|
|
{
|
2004-08-02 15:11:49 +00:00
|
|
|
createRegistryInfo_OTableFilterDialog();
|
|
|
|
createRegistryInfo_ODataSourcePropertyDialog();
|
2000-10-05 09:09:48 +00:00
|
|
|
createRegistryInfo_OSQLMessageDialog();
|
2000-10-26 13:54:20 +00:00
|
|
|
createRegistryInfo_OBrowser();
|
|
|
|
createRegistryInfo_OFormGridView();
|
|
|
|
createRegistryInfo_DBContentLoader();
|
2000-10-25 12:00:10 +00:00
|
|
|
createRegistryInfo_OInteractionHandler();
|
2000-11-14 12:42:40 +00:00
|
|
|
createRegistryInfo_SbaXGridControl();
|
2001-01-09 15:11:54 +00:00
|
|
|
createRegistryInfo_OQueryControl();
|
2008-04-04 13:03:26 +00:00
|
|
|
createRegistryInfo_OViewControl();
|
2001-02-14 13:37:35 +00:00
|
|
|
createRegistryInfo_OTableControl();
|
2001-02-28 09:11:33 +00:00
|
|
|
createRegistryInfo_ORelationControl();
|
2005-01-05 11:37:18 +00:00
|
|
|
createRegistryInfo_ComposerDialogs();
|
2004-08-02 15:11:49 +00:00
|
|
|
createRegistryInfo_ODBApplication();
|
|
|
|
createRegistryInfo_ODirectSQLDialog();
|
|
|
|
createRegistryInfo_OAdvancedSettingsDialog();
|
|
|
|
createRegistryInfo_ODBTypeWizDialog();
|
2004-10-27 12:07:50 +00:00
|
|
|
createRegistryInfo_ODBTypeWizDialogSetup();
|
2008-01-30 07:53:51 +00:00
|
|
|
createRegistryInfo_OUserSettingsDialog();
|
2004-05-19 12:56:12 +00:00
|
|
|
createRegistryInfo_OColumnControlModel();
|
|
|
|
createRegistryInfo_OColumnControl();
|
2004-09-09 08:47:32 +00:00
|
|
|
createRegistryInfo_OToolboxController();
|
2004-11-17 13:53:51 +00:00
|
|
|
createRegistryInfo_OStatusbarController();
|
2008-01-30 07:53:51 +00:00
|
|
|
createRegistryInfo_CopyTableWizard();
|
2008-03-07 10:25:30 +00:00
|
|
|
createRegistryInfo_OTextConnectionSettingsDialog();
|
2000-10-05 09:09:48 +00:00
|
|
|
bInit = sal_True;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------
|
2011-04-19 06:14:23 +02:00
|
|
|
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
|
2000-10-05 09:09:48 +00:00
|
|
|
const sal_Char* pImplementationName,
|
|
|
|
void* pServiceManager,
|
2006-06-20 02:24:41 +00:00
|
|
|
void* /*pRegistryKey*/)
|
2000-10-05 09:09:48 +00:00
|
|
|
{
|
2011-07-02 17:28:27 +02:00
|
|
|
createRegistryInfo_DBU();
|
|
|
|
|
2000-10-05 09:09:48 +00:00
|
|
|
Reference< XInterface > xRet;
|
|
|
|
if (pServiceManager && pImplementationName)
|
|
|
|
{
|
2000-12-15 14:54:12 +00:00
|
|
|
xRet = ::dbaui::OModuleRegistration::getComponentFactory(
|
2000-10-05 09:09:48 +00:00
|
|
|
::rtl::OUString::createFromAscii(pImplementationName),
|
|
|
|
static_cast< XMultiServiceFactory* >(pServiceManager));
|
|
|
|
}
|
|
|
|
|
|
|
|
if (xRet.is())
|
|
|
|
xRet->acquire();
|
|
|
|
return xRet.get();
|
|
|
|
};
|
2010-10-12 15:59:03 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|