Bump version to 5.0-14
[LibreOffice.git] / dbaccess / source / ui / inc / IItemSetHelper.hxx
blob4854955b67b93ad5610aa1cb868fb986d61e0826
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 #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_IITEMSETHELPER_HXX
21 #define INCLUDED_DBACCESS_SOURCE_UI_INC_IITEMSETHELPER_HXX
23 #include <sal/types.h>
24 #include <comphelper/uno3.hxx>
25 #include "dsntypes.hxx"
27 namespace com { namespace sun { namespace star {
28 namespace sdbc {
29 class XConnection;
30 class XDriver;
32 namespace lang {
33 class XMultiServiceFactory;
35 }}}
37 class SfxItemSet;
38 namespace dbaui
40 class SAL_NO_VTABLE IItemSetHelper
42 public:
43 virtual const SfxItemSet* getOutputSet() const = 0;
44 virtual SfxItemSet* getWriteOutputSet() = 0;
46 protected:
47 ~IItemSetHelper() {}
50 class SAL_NO_VTABLE IDatabaseSettingsDialog
52 public:
53 virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getORB() const = 0;
54 virtual ::std::pair< ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >,sal_Bool> createConnection() = 0;
55 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDriver > getDriver() = 0;
56 virtual OUString getDatasourceType(const SfxItemSet& _rSet) const = 0;
57 virtual void clearPassword() = 0;
58 virtual bool saveDatasource() = 0;
59 virtual void setTitle(const OUString& _sTitle) = 0;
61 /** enables or disables the user's possibility to confirm the settings
63 In a wizard, disabling this will usually disable the "Finish" button.
64 In a normal tab dialog, this will usually disable the "OK" button.
66 virtual void enableConfirmSettings( bool _bEnable ) = 0;
68 protected:
69 ~IDatabaseSettingsDialog() {}
72 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_IITEMSETHELPER_HXX
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */