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: composerdialogs.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 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>
38 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
39 #include <com/sun/star/sdbc/XConnection.hpp>
41 #ifndef _COM_SUN_STAR_SDB_XSINGLESELECTQUERYCOMPOSER_HPP_
42 #include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp>
44 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
45 #include <com/sun/star/beans/XPropertySet.hpp>
47 #ifndef _COM_SUN_STAR_SDBC_XROWSET_HPP_
48 #include <com/sun/star/sdbc/XRowSet.hpp>
50 /** === end UNO includes === **/
52 #ifndef _SVT_GENERICUNODIALOG_HXX_
53 #include <svtools/genericunodialog.hxx>
55 #ifndef _DBAUI_MODULE_DBU_HXX_
56 #include "moduledbu.hxx"
58 #ifndef _DBASHARED_APITOOLS_HXX_
59 #include "apitools.hxx"
62 //.........................................................................
65 //.........................................................................
67 //=====================================================================
69 //=====================================================================
71 typedef ::svt::OGenericUnoDialog ComposerDialog_BASE
;
72 typedef ::comphelper::OPropertyArrayUsageHelper
< ComposerDialog
> ComposerDialog_PBASE
;
75 :public ComposerDialog_BASE
76 ,public ComposerDialog_PBASE
78 OModuleClient m_aModuleClient
;
81 ::com::sun::star::uno::Reference
< ::com::sun::star::sdb::XSingleSelectQueryComposer
>
83 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XRowSet
>
88 ComposerDialog(const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
);
92 DECLARE_IMPLEMENTATION_ID( );
94 DECLARE_PROPERTYCONTAINER_DEFAULTS( );
98 virtual Dialog
* createComposerDialog(
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
105 // OGenericUnoDialog overridables
106 virtual Dialog
* createDialog(Window
* _pParent
);
109 //=====================================================================
110 //= RowsetFilterDialog
111 //=====================================================================
112 class RowsetFilterDialog
: public ComposerDialog
116 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
119 DECLARE_SERVICE_INFO_STATIC( );
123 virtual Dialog
* createComposerDialog(
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
140 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rxORB
143 DECLARE_SERVICE_INFO_STATIC( );
147 virtual Dialog
* createComposerDialog(
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 //.........................................................................
159 //.........................................................................
161 #endif // DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX