LibreOffice Module dbaccess (master) 1
TablesSingleDlg.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 <sfx2/basedlgs.hxx>
23#include "IItemSetHelper.hxx"
24#include <com/sun/star/beans/PropertyValue.hpp>
25
26#include <memory>
27
28namespace com::sun::star {
29 namespace beans {
30 class XPropertySet;
31 }
32 namespace uno {
33 class XComponentContext;
34 }
35}
36
37namespace dbaui
38{
39class ODbDataSourceAdministrationHelper;
40 // OTableSubscriptionDialog
42 {
43 std::unique_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
44 bool m_bStopExecution; // set when the dialog should not be executed
45
46 std::unique_ptr<SfxItemSet> m_pOutSet;
47 public:
48
50 ,const SfxItemSet* _pItems
51 ,const css::uno::Reference< css::uno::XComponentContext >& _rxORB
52 ,const css::uno::Any& _aDataSourceName
53 );
54 virtual ~OTableSubscriptionDialog() override;
55
56 // forwards from ODbDataSourceAdministrationHelper
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; }
62
63 virtual const SfxItemSet* getOutputSet() const override;
64 virtual SfxItemSet* getWriteOutputSet() override;
65
66 virtual short run() override;
67 };
68
69} // namespace dbaui
70
71/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual const SfxItemSet * getOutputSet() const override
virtual short run() override
virtual ~OTableSubscriptionDialog() override
std::unique_ptr< ODbDataSourceAdministrationHelper > m_pImpl
virtual SfxItemSet * getWriteOutputSet() override
bool getCurrentSettings(css::uno::Sequence< css::beans::PropertyValue > &_rDriverParams)
css::uno::Reference< css::beans::XPropertySet > const & getCurrentDataSource()
OTableSubscriptionDialog(weld::Window *pParent, const SfxItemSet *_pItems, const css::uno::Reference< css::uno::XComponentContext > &_rxORB, const css::uno::Any &_aDataSourceName)
std::unique_ptr< SfxItemSet > m_pOutSet
class SAL_NO_VTABLE XPropertySet