Bump version to 5.0-14
[LibreOffice.git] / dbaccess / source / ui / misc / uiservices.cxx
blob3595b6d069a81a50b7ea9385b391d69e0cb3e5ad
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <cppuhelper/factory.hxx>
21 #include <osl/diagnose.h>
22 #include "dbu_reghelper.hxx"
23 #include "uiservices.hxx"
25 using namespace ::dbaui;
26 using namespace ::com::sun::star::uno;
27 using namespace ::com::sun::star::lang;
28 using namespace ::com::sun::star::registry;
30 extern "C" void SAL_CALL createRegistryInfo_DBU()
32 static bool bInit = false;
33 if (!bInit)
35 createRegistryInfo_OTableFilterDialog();
36 createRegistryInfo_ODataSourcePropertyDialog();
37 createRegistryInfo_OSQLMessageDialog();
38 createRegistryInfo_OBrowser();
39 createRegistryInfo_OFormGridView();
40 createRegistryInfo_DBContentLoader();
41 createRegistryInfo_OInteractionHandler();
42 createRegistryInfo_SbaXGridControl();
43 createRegistryInfo_OQueryControl();
44 createRegistryInfo_OViewControl();
45 createRegistryInfo_OTableControl();
46 createRegistryInfo_ORelationControl();
47 createRegistryInfo_ComposerDialogs();
48 createRegistryInfo_ODBApplication();
49 createRegistryInfo_ODirectSQLDialog();
50 createRegistryInfo_OAdvancedSettingsDialog();
51 createRegistryInfo_ODBTypeWizDialog();
52 createRegistryInfo_ODBTypeWizDialogSetup();
53 createRegistryInfo_OUserSettingsDialog();
54 createRegistryInfo_OColumnControlModel();
55 createRegistryInfo_OColumnControl();
56 createRegistryInfo_OToolboxController();
57 createRegistryInfo_CopyTableWizard();
58 createRegistryInfo_OTextConnectionSettingsDialog();
59 createRegistryInfo_LimitBoxController();
60 bInit = true;
64 extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbu_component_getFactory(
65 const sal_Char* pImplementationName,
66 void* pServiceManager,
67 void* /*pRegistryKey*/)
69 createRegistryInfo_DBU();
71 Reference< XInterface > xRet;
72 if (pServiceManager && pImplementationName)
74 xRet = ::dbaui::OModuleRegistration::getComponentFactory(
75 OUString::createFromAscii(pImplementationName),
76 static_cast< XMultiServiceFactory* >(pServiceManager));
79 if (xRet.is())
80 xRet->acquire();
81 return xRet.get();
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */