xref: /aoo42x/main/dbaccess/source/ui/inc/unoadmin.hxx (revision 2e2212a7)
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_UNOADMIN_
25 #define _DBAUI_UNOADMIN_
26 
27 #ifndef _SVT_GENERICUNODIALOG_HXX_
28 #include <svtools/genericunodialog.hxx>
29 #endif
30 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
31 #include <com/sun/star/sdbc/XConnection.hpp>
32 #endif
33 #ifndef _DBAUI_DSNTYPES_HXX_
34 #include "dsntypes.hxx"
35 #endif
36 #ifndef _DBAUI_MODULE_DBU_HXX_
37 #include "moduledbu.hxx"
38 #endif
39 
40 class SfxItemSet;
41 class SfxItemPool;
42 class SfxPoolItem;
43 
44 //.........................................................................
45 namespace dbaui
46 {
47 //.........................................................................
48 
49 class IDatabaseSettingsDialog;
50 
51 //=========================================================================
52 //= ODatabaseAdministrationDialog
53 //=========================================================================
54 typedef ::svt::OGenericUnoDialog ODatabaseAdministrationDialogBase;
55 class ODatabaseAdministrationDialog
56 		:public ODatabaseAdministrationDialogBase
57 {
58 	OModuleClient    m_aModuleClient;
59 protected:
60 	SfxItemSet*				m_pDatasourceItems;		// item set for the dialog
61 	SfxItemPool*			m_pItemPool;			// item pool for the item set for the dialog
62 	SfxPoolItem**			m_pItemPoolDefaults;	// pool defaults
63 	::dbaccess::ODsnTypeCollection*
64                             m_pCollection;			// datasource type collection
65 
66 	::com::sun::star::uno::Any			m_aInitialSelection;
67 	::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xActiveConnection;
68 
69 protected:
70 	ODatabaseAdministrationDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
71 	virtual ~ODatabaseAdministrationDialog();
72 protected:
73 // OGenericUnoDialog overridables
74 	virtual void destroyDialog();
75 	virtual void implInitialize(const com::sun::star::uno::Any& _rValue);
76 };
77 
78 //.........................................................................
79 }	// namespace dbaui
80 //.........................................................................
81 
82 #endif // _DBAUI_UNOADMIN_
83 
84