2010-10-12 15:59:03 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-14 17:39:53 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
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"
|
2014-04-13 22:40:55 +02:00
|
|
|
#include "uiservices.hxx"
|
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;
|
|
|
|
|
2000-12-15 15:46:23 +00:00
|
|
|
extern "C" void SAL_CALL createRegistryInfo_DBU()
|
2000-10-05 09:09:48 +00:00
|
|
|
{
|
2014-04-17 11:16:55 +02:00
|
|
|
static bool bInit = false;
|
2000-10-05 09:09:48 +00:00
|
|
|
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();
|
2008-01-30 07:53:51 +00:00
|
|
|
createRegistryInfo_CopyTableWizard();
|
2008-03-07 10:25:30 +00:00
|
|
|
createRegistryInfo_OTextConnectionSettingsDialog();
|
2013-02-04 15:21:33 +01:00
|
|
|
createRegistryInfo_LimitBoxController();
|
2014-04-17 11:16:55 +02:00
|
|
|
bInit = true;
|
2000-10-05 09:09:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-07-13 17:56:47 +02:00
|
|
|
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbu_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(
|
2013-04-07 12:06:47 +02:00
|
|
|
OUString::createFromAscii(pImplementationName),
|
2000-10-05 09:09:48 +00:00
|
|
|
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: */
|