LibreOffice Module dbaccess (master) 1
advancedsettingsdlg.hxx
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#pragma once
21
22#include "IItemSetHelper.hxx"
23#include <sfx2/tabdlg.hxx>
24#include <memory>
25
26namespace dbaui
27{
28
29 // AdvancedSettingsDialog
30 class ODbDataSourceAdministrationHelper;
34 , public IItemSetHelper
36 {
37 std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
38
39 protected:
40 virtual void PageCreated(const OUString& rId, SfxTabPage& _rPage) override;
41 virtual short Ok() override;
42
43 public:
45 SfxItemSet* _pItems,
46 const css::uno::Reference< css::uno::XComponentContext >& _rxORB,
47 const css::uno::Any& _aDataSourceName);
48
49 virtual ~AdvancedSettingsDialog() override;
50
52 static bool doesHaveAnyAdvancedSettings( const OUString& _sURL );
53
54 virtual const SfxItemSet* getOutputSet() const override;
55 virtual SfxItemSet* getWriteOutputSet() override;
56
57 // forwards to ODbDataSourceAdministrationHelper
58 virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override;
59 virtual std::pair< css::uno::Reference< css::sdbc::XConnection >,bool> createConnection() override;
60 virtual css::uno::Reference< css::sdbc::XDriver > getDriver() override;
61 virtual OUString getDatasourceType(const SfxItemSet& _rSet) const override;
62 virtual void clearPassword() override;
63 virtual void saveDatasource() override;
64 virtual void setTitle(const OUString& _sTitle) override;
65 virtual void enableConfirmSettings( bool _bEnable ) override;
66 };
67
68} // namespace dbaui
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
implements the advanced page dlg of the data source properties.
virtual ~AdvancedSettingsDialog() override
virtual void PageCreated(const OUString &rId, SfxTabPage &_rPage) override
virtual short Ok() override
AdvancedSettingsDialog(weld::Window *pParent, SfxItemSet *_pItems, const css::uno::Reference< css::uno::XComponentContext > &_rxORB, const css::uno::Any &_aDataSourceName)
static bool doesHaveAnyAdvancedSettings(const OUString &_sURL)
determines whether or not the given data source type has any advanced setting
virtual void saveDatasource() override
virtual void setTitle(const OUString &_sTitle) override
virtual OUString getDatasourceType(const SfxItemSet &_rSet) const override
std::unique_ptr< ODbDataSourceAdministrationHelper > m_pImpl
virtual std::pair< css::uno::Reference< css::sdbc::XConnection >, bool > createConnection() override
virtual void enableConfirmSettings(bool _bEnable) override
enables or disables the user's possibility to confirm the settings
virtual css::uno::Reference< css::sdbc::XDriver > getDriver() override
virtual SfxItemSet * getWriteOutputSet() override
virtual css::uno::Reference< css::uno::XComponentContext > getORB() const override
virtual const SfxItemSet * getOutputSet() const override
virtual void clearPassword() override