xref: /AOO41X/main/dbaccess/source/ui/uno/unoDirectSql.hxx (revision 2e2212a7c22e96cf6f6fab0dd042c34a45a64bd6)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef DBAUI_UNODIRECTSQL_HXX
25 #define DBAUI_UNODIRECTSQL_HXX
26 
27 #ifndef _SVT_GENERICUNODIALOG_HXX_
28 #include <svtools/genericunodialog.hxx>
29 #endif
30 #ifndef _DBASHARED_APITOOLS_HXX_
31 #include "apitools.hxx"
32 #endif
33 #ifndef _COM_SUN_STAR_SDB_XSQLQUERYCOMPOSER_HPP_
34 #include <com/sun/star/sdb/XSQLQueryComposer.hpp>
35 #endif
36 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
37 #include <com/sun/star/beans/XPropertySet.hpp>
38 #endif
39 #ifndef _COM_SUN_STAR_SDBC_XROWSET_HPP_
40 #include <com/sun/star/sdbc/XRowSet.hpp>
41 #endif
42 #ifndef _DBAUI_MODULE_DBU_HXX_
43 #include "moduledbu.hxx"
44 #endif
45 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
46 #include <com/sun/star/sdbc/XConnection.hpp>
47 #endif
48 
49 //.........................................................................
50 namespace dbaui
51 {
52 //.........................................................................
53 
54     //=====================================================================
55     //= ODirectSQLDialog
56     //=====================================================================
57     class ODirectSQLDialog;
58     typedef ::svt::OGenericUnoDialog                                        ODirectSQLDialog_BASE;
59     typedef ::comphelper::OPropertyArrayUsageHelper< ODirectSQLDialog >     ODirectSQLDialog_PBASE;
60 
61     class ODirectSQLDialog
62             :public ODirectSQLDialog_BASE
63             ,public ODirectSQLDialog_PBASE
64     {
65         OModuleClient m_aModuleClient;
66         ::rtl::OUString m_sInitialSelection;
67         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xActiveConnection;
68     protected:
69         ODirectSQLDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
70         virtual ~ODirectSQLDialog();
71 
72     public:
73         DECLARE_IMPLEMENTATION_ID( );
74 
75         DECLARE_SERVICE_INFO_STATIC( );
76 
77         DECLARE_PROPERTYCONTAINER_DEFAULTS( );
78 
79     protected:
80         // OGenericUnoDialog overridables
81         virtual Dialog* createDialog(Window* _pParent);
82         virtual void implInitialize(const com::sun::star::uno::Any& _rValue);
83     };
84 
85 //.........................................................................
86 }   // namespace dbaui
87 //.........................................................................
88 
89 #endif // DBAUI_UNODIRECTSQL_HXX
90 
91