Files
libreoffice/dbaccess/source/ui/misc/uiservices.cxx

85 lines
3.1 KiB
C++
Raw Normal View History

/* -*- 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>
#include "dbu_reghelper.hxx"
#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;
extern "C" void SAL_CALL createRegistryInfo_DBU()
2000-10-05 09:09:48 +00:00
{
static bool bInit = false;
2000-10-05 09:09:48 +00:00
if (!bInit)
{
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();
createRegistryInfo_OViewControl();
2001-02-14 13:37:35 +00:00
createRegistryInfo_OTableControl();
2001-02-28 09:11:33 +00:00
createRegistryInfo_ORelationControl();
createRegistryInfo_ComposerDialogs();
createRegistryInfo_ODBApplication();
createRegistryInfo_ODirectSQLDialog();
createRegistryInfo_OAdvancedSettingsDialog();
createRegistryInfo_ODBTypeWizDialog();
createRegistryInfo_ODBTypeWizDialogSetup();
createRegistryInfo_OUserSettingsDialog();
createRegistryInfo_OColumnControlModel();
createRegistryInfo_OColumnControl();
createRegistryInfo_OToolboxController();
createRegistryInfo_CopyTableWizard();
createRegistryInfo_OTextConnectionSettingsDialog();
createRegistryInfo_LimitBoxController();
bInit = true;
2000-10-05 09:09:48 +00: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,
void* /*pRegistryKey*/)
2000-10-05 09:09:48 +00:00
{
createRegistryInfo_DBU();
2000-10-05 09:09:48 +00:00
Reference< XInterface > xRet;
if (pServiceManager && pImplementationName)
{
xRet = ::dbaui::OModuleRegistration::getComponentFactory(
OUString::createFromAscii(pImplementationName),
2000-10-05 09:09:48 +00:00
static_cast< XMultiServiceFactory* >(pServiceManager));
}
if (xRet.is())
xRet->acquire();
return xRet.get();
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */