1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _DBAUI_UNOADMIN_ 29 #define _DBAUI_UNOADMIN_ 30 31 #ifndef _SVT_GENERICUNODIALOG_HXX_ 32 #include <svtools/genericunodialog.hxx> 33 #endif 34 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_ 35 #include <com/sun/star/sdbc/XConnection.hpp> 36 #endif 37 #ifndef _DBAUI_DSNTYPES_HXX_ 38 #include "dsntypes.hxx" 39 #endif 40 #ifndef _DBAUI_MODULE_DBU_HXX_ 41 #include "moduledbu.hxx" 42 #endif 43 44 class SfxItemSet; 45 class SfxItemPool; 46 class SfxPoolItem; 47 48 //......................................................................... 49 namespace dbaui 50 { 51 //......................................................................... 52 53 class IDatabaseSettingsDialog; 54 55 //========================================================================= 56 //= ODatabaseAdministrationDialog 57 //========================================================================= 58 typedef ::svt::OGenericUnoDialog ODatabaseAdministrationDialogBase; 59 class ODatabaseAdministrationDialog 60 :public ODatabaseAdministrationDialogBase 61 { 62 OModuleClient m_aModuleClient; 63 protected: 64 SfxItemSet* m_pDatasourceItems; // item set for the dialog 65 SfxItemPool* m_pItemPool; // item pool for the item set for the dialog 66 SfxPoolItem** m_pItemPoolDefaults; // pool defaults 67 ::dbaccess::ODsnTypeCollection* 68 m_pCollection; // datasource type collection 69 70 ::com::sun::star::uno::Any m_aInitialSelection; 71 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xActiveConnection; 72 73 protected: 74 ODatabaseAdministrationDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB); 75 virtual ~ODatabaseAdministrationDialog(); 76 protected: 77 // OGenericUnoDialog overridables 78 virtual void destroyDialog(); 79 virtual void implInitialize(const com::sun::star::uno::Any& _rValue); 80 }; 81 82 //......................................................................... 83 } // namespace dbaui 84 //......................................................................... 85 86 #endif // _DBAUI_UNOADMIN_ 87 88