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_UNODIRECTSQL_HXX 29 #define DBAUI_UNODIRECTSQL_HXX 30 31 #ifndef _SVT_GENERICUNODIALOG_HXX_ 32 #include <svtools/genericunodialog.hxx> 33 #endif 34 #ifndef _DBASHARED_APITOOLS_HXX_ 35 #include "apitools.hxx" 36 #endif 37 #ifndef _COM_SUN_STAR_SDB_XSQLQUERYCOMPOSER_HPP_ 38 #include <com/sun/star/sdb/XSQLQueryComposer.hpp> 39 #endif 40 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_ 41 #include <com/sun/star/beans/XPropertySet.hpp> 42 #endif 43 #ifndef _COM_SUN_STAR_SDBC_XROWSET_HPP_ 44 #include <com/sun/star/sdbc/XRowSet.hpp> 45 #endif 46 #ifndef _DBAUI_MODULE_DBU_HXX_ 47 #include "moduledbu.hxx" 48 #endif 49 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_ 50 #include <com/sun/star/sdbc/XConnection.hpp> 51 #endif 52 53 //......................................................................... 54 namespace dbaui 55 { 56 //......................................................................... 57 58 //===================================================================== 59 //= ODirectSQLDialog 60 //===================================================================== 61 class ODirectSQLDialog; 62 typedef ::svt::OGenericUnoDialog ODirectSQLDialog_BASE; 63 typedef ::comphelper::OPropertyArrayUsageHelper< ODirectSQLDialog > ODirectSQLDialog_PBASE; 64 65 class ODirectSQLDialog 66 :public ODirectSQLDialog_BASE 67 ,public ODirectSQLDialog_PBASE 68 { 69 OModuleClient m_aModuleClient; 70 ::rtl::OUString m_sInitialSelection; 71 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xActiveConnection; 72 protected: 73 ODirectSQLDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB); 74 virtual ~ODirectSQLDialog(); 75 76 public: 77 DECLARE_IMPLEMENTATION_ID( ); 78 79 DECLARE_SERVICE_INFO_STATIC( ); 80 81 DECLARE_PROPERTYCONTAINER_DEFAULTS( ); 82 83 protected: 84 // OGenericUnoDialog overridables 85 virtual Dialog* createDialog(Window* _pParent); 86 virtual void implInitialize(const com::sun::star::uno::Any& _rValue); 87 }; 88 89 //......................................................................... 90 } // namespace dbaui 91 //......................................................................... 92 93 #endif // DBAUI_UNODIRECTSQL_HXX 94 95