android: Update app icon to new startcenter icon
[LibreOffice.git] / dbaccess / source / ui / uno / DBTypeWizDlg.cxx
blob8c9d165963864c42317de9f8faa31445c35f7d52
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 "DBTypeWizDlg.hxx"
21 #include <dbwiz.hxx>
22 #include <vcl/svapp.hxx>
24 using namespace dbaui;
26 extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
27 org_openoffice_comp_dbu_ODBTypeWizDialog_get_implementation(
28 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& )
30 return cppu::acquire(new ODBTypeWizDialog(context));
33 namespace dbaui
36 using namespace ::com::sun::star::uno;
37 using namespace ::com::sun::star::lang;
38 using namespace ::com::sun::star::beans;
40 ODBTypeWizDialog::ODBTypeWizDialog(const Reference< XComponentContext >& _rxORB)
41 :ODatabaseAdministrationDialog(_rxORB)
45 Sequence<sal_Int8> SAL_CALL ODBTypeWizDialog::getImplementationId( )
47 return css::uno::Sequence<sal_Int8>();
50 OUString SAL_CALL ODBTypeWizDialog::getImplementationName()
52 return "org.openoffice.comp.dbu.ODBTypeWizDialog";
55 css::uno::Sequence<OUString> SAL_CALL ODBTypeWizDialog::getSupportedServiceNames()
57 return { "com.sun.star.sdb.DataSourceTypeChangeDialog" };
60 Reference<XPropertySetInfo> SAL_CALL ODBTypeWizDialog::getPropertySetInfo()
62 Reference<XPropertySetInfo> xInfo( createPropertySetInfo( getInfoHelper() ) );
63 return xInfo;
66 ::cppu::IPropertyArrayHelper& ODBTypeWizDialog::getInfoHelper()
68 return *getArrayHelper();
71 ::cppu::IPropertyArrayHelper* ODBTypeWizDialog::createArrayHelper( ) const
73 Sequence< Property > aProps;
74 describeProperties(aProps);
75 return new ::cppu::OPropertyArrayHelper(aProps);
78 std::unique_ptr<weld::DialogController> ODBTypeWizDialog::createDialog(const css::uno::Reference<css::awt::XWindow>& rParent)
80 return std::make_unique<ODbTypeWizDialog>(Application::GetFrameWeld(rParent), m_pDatasourceItems.get(), m_aContext, m_aInitialSelection);
83 } // namespace dbaui
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */