tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / dbaccess / source / ui / inc / advancedsettingsdlg.hxx
blob7c38562145a5ab080cef57f0c8fb2516246561bf
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 #pragma once
22 #include "IItemSetHelper.hxx"
23 #include <sfx2/tabdlg.hxx>
24 #include <memory>
26 namespace dbaui
29 // AdvancedSettingsDialog
30 class ODbDataSourceAdministrationHelper;
31 /** implements the advanced page dlg of the data source properties.
33 class AdvancedSettingsDialog : public SfxTabDialogController
34 , public IItemSetHelper
35 , public IDatabaseSettingsDialog
37 std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
39 protected:
40 virtual void PageCreated(const OUString& rId, SfxTabPage& _rPage) override;
41 virtual short Ok() override;
43 public:
44 AdvancedSettingsDialog(weld::Window* pParent,
45 SfxItemSet* _pItems,
46 const css::uno::Reference< css::uno::XComponentContext >& _rxORB,
47 const css::uno::Any& _aDataSourceName);
49 virtual ~AdvancedSettingsDialog() override;
51 /// determines whether or not the given data source type has any advanced setting
52 static bool doesHaveAnyAdvancedSettings( const OUString& _sURL );
54 virtual const SfxItemSet* getOutputSet() const override;
55 virtual SfxItemSet* getWriteOutputSet() override;
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;
68 } // namespace dbaui
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */