1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: IItemSetHelper.hxx,v $
10 * $Revision: 1.7.68.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef DBAUI_ITEMSETHELPER_HXX
32 #define DBAUI_ITEMSETHELPER_HXX
35 #include <sal/types.h>
37 #ifndef _COMPHELPER_UNO3_HXX_
38 #include <comphelper/uno3.hxx>
40 #ifndef _DBAUI_DSNTYPES_HXX_
41 #include "dsntypes.hxx"
44 FORWARD_DECLARE_INTERFACE(beans
,XPropertySet
)
45 FORWARD_DECLARE_INTERFACE(sdbc
,XConnection
)
46 FORWARD_DECLARE_INTERFACE(sdbc
,XDriver
)
47 FORWARD_DECLARE_INTERFACE(lang
,XMultiServiceFactory
)
52 class SAL_NO_VTABLE IItemSetHelper
55 virtual const SfxItemSet
* getOutputSet() const = 0;
56 virtual SfxItemSet
* getWriteOutputSet() = 0;
59 class SAL_NO_VTABLE IDatabaseSettingsDialog
62 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
> getORB() const = 0;
63 virtual ::std::pair
< ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>,sal_Bool
> createConnection() = 0;
64 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XDriver
> getDriver() = 0;
65 virtual ::rtl::OUString
getDatasourceType(const SfxItemSet
& _rSet
) const = 0;
66 virtual void clearPassword() = 0;
67 virtual sal_Bool
saveDatasource() = 0;
68 virtual void setTitle(const ::rtl::OUString
& _sTitle
) = 0;
70 /** enables or disables the user's possibility to confirm the settings
72 In a wizard, disabling this will usually disable the "Finish" button.
73 In a normal tab dialog, this will usually disable the "OK" button.
75 virtual void enableConfirmSettings( bool _bEnable
) = 0;
78 #endif // DBAUI_ITEMSETHELPER_HXX