merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / uno / composerdialogs.hxx
blob27c8d725de2ca83da12840588e987cea95eabe5e
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: composerdialogs.hxx,v $
10 * $Revision: 1.5 $
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 DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
32 #define DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX
34 /** === begin UNO includes === **/
35 #ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
36 #include <com/sun/star/container/XNameAccess.hpp>
37 #endif
38 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
39 #include <com/sun/star/sdbc/XConnection.hpp>
40 #endif
41 #ifndef _COM_SUN_STAR_SDB_XSINGLESELECTQUERYCOMPOSER_HPP_
42 #include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp>
43 #endif
44 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
45 #include <com/sun/star/beans/XPropertySet.hpp>
46 #endif
47 #ifndef _COM_SUN_STAR_SDBC_XROWSET_HPP_
48 #include <com/sun/star/sdbc/XRowSet.hpp>
49 #endif
50 /** === end UNO includes === **/
52 #ifndef _SVT_GENERICUNODIALOG_HXX_
53 #include <svtools/genericunodialog.hxx>
54 #endif
55 #ifndef _DBAUI_MODULE_DBU_HXX_
56 #include "moduledbu.hxx"
57 #endif
58 #ifndef _DBASHARED_APITOOLS_HXX_
59 #include "apitools.hxx"
60 #endif
62 //.........................................................................
63 namespace dbaui
65 //.........................................................................
67 //=====================================================================
68 //= ComposerDialog
69 //=====================================================================
70 class ComposerDialog;
71 typedef ::svt::OGenericUnoDialog ComposerDialog_BASE;
72 typedef ::comphelper::OPropertyArrayUsageHelper< ComposerDialog > ComposerDialog_PBASE;
74 class ComposerDialog
75 :public ComposerDialog_BASE
76 ,public ComposerDialog_PBASE
78 OModuleClient m_aModuleClient;
79 protected:
80 // <properties>
81 ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer >
82 m_xComposer;
83 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >
84 m_xRowSet;
85 // </properties>
87 protected:
88 ComposerDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
89 ~ComposerDialog();
91 public:
92 DECLARE_IMPLEMENTATION_ID( );
94 DECLARE_PROPERTYCONTAINER_DEFAULTS( );
96 protected:
97 // own overridables
98 virtual Dialog* createComposerDialog(
99 Window* _pParent,
100 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
101 const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns
102 ) = 0;
104 private:
105 // OGenericUnoDialog overridables
106 virtual Dialog* createDialog(Window* _pParent);
109 //=====================================================================
110 //= RowsetFilterDialog
111 //=====================================================================
112 class RowsetFilterDialog : public ComposerDialog
114 public:
115 RowsetFilterDialog(
116 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
119 DECLARE_SERVICE_INFO_STATIC( );
121 protected:
122 // own overridables
123 virtual Dialog* createComposerDialog(
124 Window* _pParent,
125 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
126 const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns
129 // OGenericUnoDialog overridables
130 virtual void executedDialog( sal_Int16 _nExecutionResult );
133 //=====================================================================
134 //= RowsetOrderDialog
135 //=====================================================================
136 class RowsetOrderDialog : public ComposerDialog
138 public:
139 RowsetOrderDialog(
140 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
143 DECLARE_SERVICE_INFO_STATIC( );
145 protected:
146 // own overridables
147 virtual Dialog* createComposerDialog(
148 Window* _pParent,
149 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
150 const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns
153 // OGenericUnoDialog overridables
154 virtual void executedDialog( sal_Int16 _nExecutionResult );
157 //.........................................................................
158 } // namespace dbaui
159 //.........................................................................
161 #endif // DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX