tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / dbaccess / source / ui / inc / TablesSingleDlg.hxx
blobc75fa1eb3da29c30286404825e9ffc74b809a0b4
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 <sfx2/basedlgs.hxx>
23 #include "IItemSetHelper.hxx"
24 #include <com/sun/star/beans/PropertyValue.hpp>
26 #include <memory>
28 namespace com::sun::star {
29 namespace beans {
30 class XPropertySet;
32 namespace uno {
33 class XComponentContext;
37 namespace dbaui
39 class ODbDataSourceAdministrationHelper;
40 // OTableSubscriptionDialog
41 class OTableSubscriptionDialog : public SfxSingleTabDialogController, public IItemSetHelper
43 std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
44 bool m_bStopExecution; // set when the dialog should not be executed
46 std::unique_ptr<SfxItemSet> m_pOutSet;
47 public:
49 OTableSubscriptionDialog(weld::Window* pParent
50 ,const SfxItemSet* _pItems
51 ,const css::uno::Reference< css::uno::XComponentContext >& _rxORB
52 ,const css::uno::Any& _aDataSourceName
54 virtual ~OTableSubscriptionDialog() override;
56 // forwards from ODbDataSourceAdministrationHelper
57 void successfullyConnected();
58 bool getCurrentSettings(css::uno::Sequence< css::beans::PropertyValue >& _rDriverParams);
59 void clearPassword();
60 css::uno::Reference< css::beans::XPropertySet > const & getCurrentDataSource();
61 void endExecution() { m_bStopExecution = true; }
63 virtual const SfxItemSet* getOutputSet() const override;
64 virtual SfxItemSet* getWriteOutputSet() override;
66 virtual short run() override;
69 } // namespace dbaui
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */