merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / inc / unoadmin.hxx
blob21f4661e0421e3006948c8a99bd878bc5cdeac32
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unoadmin.hxx,v $
10 * $Revision: 1.13.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_UNOADMIN_
32 #define _DBAUI_UNOADMIN_
34 #ifndef _SVT_GENERICUNODIALOG_HXX_
35 #include <svtools/genericunodialog.hxx>
36 #endif
37 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
38 #include <com/sun/star/sdbc/XConnection.hpp>
39 #endif
40 #ifndef _DBAUI_DSNTYPES_HXX_
41 #include "dsntypes.hxx"
42 #endif
43 #ifndef _DBAUI_MODULE_DBU_HXX_
44 #include "moduledbu.hxx"
45 #endif
47 class SfxItemSet;
48 class SfxItemPool;
49 class SfxPoolItem;
51 //.........................................................................
52 namespace dbaui
54 //.........................................................................
56 class IDatabaseSettingsDialog;
58 //=========================================================================
59 //= ODatabaseAdministrationDialog
60 //=========================================================================
61 typedef ::svt::OGenericUnoDialog ODatabaseAdministrationDialogBase;
62 class ODatabaseAdministrationDialog
63 :public ODatabaseAdministrationDialogBase
65 OModuleClient m_aModuleClient;
66 protected:
67 SfxItemSet* m_pDatasourceItems; // item set for the dialog
68 SfxItemPool* m_pItemPool; // item pool for the item set for the dialog
69 SfxPoolItem** m_pItemPoolDefaults; // pool defaults
70 ::dbaccess::ODsnTypeCollection*
71 m_pCollection; // datasource type collection
73 ::com::sun::star::uno::Any m_aInitialSelection;
74 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xActiveConnection;
76 protected:
77 ODatabaseAdministrationDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
78 virtual ~ODatabaseAdministrationDialog();
79 protected:
80 // OGenericUnoDialog overridables
81 virtual void destroyDialog();
82 virtual void implInitialize(const com::sun::star::uno::Any& _rValue);
85 //.........................................................................
86 } // namespace dbaui
87 //.........................................................................
89 #endif // _DBAUI_UNOADMIN_