1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef DBAUI_ITEMSETHELPER_HXX
25 #define DBAUI_ITEMSETHELPER_HXX
26 
27 #ifndef _SAL_TYPES_H_
28 #include <sal/types.h>
29 #endif
30 #ifndef _COMPHELPER_UNO3_HXX_
31 #include <comphelper/uno3.hxx>
32 #endif
33 #ifndef _DBAUI_DSNTYPES_HXX_
34 #include "dsntypes.hxx"
35 #endif
36 
37 FORWARD_DECLARE_INTERFACE(beans,XPropertySet)
38 FORWARD_DECLARE_INTERFACE(sdbc,XConnection)
39 FORWARD_DECLARE_INTERFACE(sdbc,XDriver)
40 FORWARD_DECLARE_INTERFACE(lang,XMultiServiceFactory)
41 
42 class SfxItemSet;
43 namespace dbaui
44 {
45 	class SAL_NO_VTABLE IItemSetHelper
46 	{
47 	public:
48 		virtual const SfxItemSet* getOutputSet() const = 0;
49 		virtual SfxItemSet* getWriteOutputSet() = 0;
50 	};
51 
52 	class SAL_NO_VTABLE IDatabaseSettingsDialog
53 	{
54 	public:
55 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getORB() const = 0;
56 		virtual ::std::pair< ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >,sal_Bool> createConnection() = 0;
57 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDriver >	getDriver() = 0;
58 		virtual ::rtl::OUString getDatasourceType(const SfxItemSet& _rSet) const = 0;
59 		virtual void clearPassword() = 0;
60 		virtual sal_Bool saveDatasource() = 0;
61 		virtual void setTitle(const ::rtl::OUString& _sTitle) = 0;
62 
63         /** enables or disables the user's possibility to confirm the settings
64 
65             In a wizard, disabling this will usually disable the "Finish" button.
66             In a normal tab dialog, this will usually disable the "OK" button.
67         */
68         virtual void enableConfirmSettings( bool _bEnable ) = 0;
69 	};
70 }
71 #endif // DBAUI_ITEMSETHELPER_HXX
72 
73