merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / uno / unoDirectSql.hxx
blobb7c8850fb7194c059f6659069894b193b5e2ec67
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: unoDirectSql.hxx,v $
10 * $Revision: 1.6 $
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>
36 #endif
37 #ifndef _DBASHARED_APITOOLS_HXX_
38 #include "apitools.hxx"
39 #endif
40 #ifndef _COM_SUN_STAR_SDB_XSQLQUERYCOMPOSER_HPP_
41 #include <com/sun/star/sdb/XSQLQueryComposer.hpp>
42 #endif
43 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
44 #include <com/sun/star/beans/XPropertySet.hpp>
45 #endif
46 #ifndef _COM_SUN_STAR_SDBC_XROWSET_HPP_
47 #include <com/sun/star/sdbc/XRowSet.hpp>
48 #endif
49 #ifndef _DBAUI_MODULE_DBU_HXX_
50 #include "moduledbu.hxx"
51 #endif
52 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
53 #include <com/sun/star/sdbc/XConnection.hpp>
54 #endif
56 //.........................................................................
57 namespace dbaui
59 //.........................................................................
61 //=====================================================================
62 //= ODirectSQLDialog
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;
75 protected:
76 ODirectSQLDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
77 virtual ~ODirectSQLDialog();
79 public:
80 DECLARE_IMPLEMENTATION_ID( );
82 DECLARE_SERVICE_INFO_STATIC( );
84 DECLARE_PROPERTYCONTAINER_DEFAULTS( );
86 protected:
87 // OGenericUnoDialog overridables
88 virtual Dialog* createDialog(Window* _pParent);
89 virtual void implInitialize(const com::sun::star::uno::Any& _rValue);
92 //.........................................................................
93 } // namespace dbaui
94 //.........................................................................
96 #endif // DBAUI_UNODIRECTSQL_HXX