1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unoDirectSql.hxx,v $
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_UNODIRECTSQL_HXX
32 #define DBAUI_UNODIRECTSQL_HXX
34 #ifndef _SVT_GENERICUNODIALOG_HXX_
35 #include <svtools/genericunodialog.hxx>
37 #ifndef _DBASHARED_APITOOLS_HXX_
38 #include "apitools.hxx"
40 #ifndef _COM_SUN_STAR_SDB_XSQLQUERYCOMPOSER_HPP_
41 #include <com/sun/star/sdb/XSQLQueryComposer.hpp>
43 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
44 #include <com/sun/star/beans/XPropertySet.hpp>
46 #ifndef _COM_SUN_STAR_SDBC_XROWSET_HPP_
47 #include <com/sun/star/sdbc/XRowSet.hpp>
49 #ifndef _DBAUI_MODULE_DBU_HXX_
50 #include "moduledbu.hxx"
52 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
53 #include <com/sun/star/sdbc/XConnection.hpp>
56 //.........................................................................
59 //.........................................................................
61 //=====================================================================
63 //=====================================================================
64 class ODirectSQLDialog
;
65 typedef ::svt::OGenericUnoDialog ODirectSQLDialog_BASE
;
66 typedef ::comphelper::OPropertyArrayUsageHelper
< ODirectSQLDialog
> ODirectSQLDialog_PBASE
;
68 class ODirectSQLDialog
69 :public ODirectSQLDialog_BASE
70 ,public ODirectSQLDialog_PBASE
72 OModuleClient m_aModuleClient
;
73 ::rtl::OUString m_sInitialSelection
;
74 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
> m_xActiveConnection
;
76 ODirectSQLDialog(const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
);
77 virtual ~ODirectSQLDialog();
80 DECLARE_IMPLEMENTATION_ID( );
82 DECLARE_SERVICE_INFO_STATIC( );
84 DECLARE_PROPERTYCONTAINER_DEFAULTS( );
87 // OGenericUnoDialog overridables
88 virtual Dialog
* createDialog(Window
* _pParent
);
89 virtual void implInitialize(const com::sun::star::uno::Any
& _rValue
);
92 //.........................................................................
94 //.........................................................................
96 #endif // DBAUI_UNODIRECTSQL_HXX