LibreOffice Module dbaccess (master) 1
UserSettingsDlg.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#include "UserSettingsDlg.hxx"
21#include <UserAdminDlg.hxx>
22#include <vcl/svapp.hxx>
23
24using namespace dbaui;
25
26extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
28 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& )
29{
30 return cppu::acquire(new OUserSettingsDialog(context));
31}
32
33namespace dbaui
34{
35
36 using namespace ::com::sun::star::uno;
37 using namespace ::com::sun::star::lang;
38 using namespace ::com::sun::star::beans;
39
42{
43}
44
46{
47 return css::uno::Sequence<sal_Int8>();
48}
49
51{
52 return "org.openoffice.comp.dbu.OUserSettingsDialog";
53}
54
55css::uno::Sequence<OUString> SAL_CALL OUserSettingsDialog::getSupportedServiceNames()
56{
57 return { "com.sun.star.sdb.UserAdministrationDialog" };
58}
59
61{
62 Reference<XPropertySetInfo> xInfo( createPropertySetInfo( getInfoHelper() ) );
63 return xInfo;
64}
65
67{
68 return *getArrayHelper();
69}
70
72{
74 describeProperties(aProps);
75 return new ::cppu::OPropertyArrayHelper(aProps);
76}
77
78std::unique_ptr<weld::DialogController> OUserSettingsDialog::createDialog(const css::uno::Reference<css::awt::XWindow>& rParent)
79{
80 return std::make_unique<OUserAdminDlg>(Application::GetFrameWeld(rParent), m_pDatasourceItems.get(), m_aContext, m_aInitialSelection, m_xActiveConnection);
81}
82
83} // namespace dbaui
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * org_openoffice_comp_dbu_OUserSettingsDialog_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
static weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow)
css::uno::Reference< css::sdbc::XConnection > m_xActiveConnection
Definition: unoadmin.hxx:47
std::unique_ptr< SfxItemSet > m_pDatasourceItems
Definition: unoadmin.hxx:39
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual std::unique_ptr< weld::DialogController > createDialog(const css::uno::Reference< css::awt::XWindow > &rParent) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
OUserSettingsDialog(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::uno::XComponentContext > m_aContext