1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX 29*cdf0e10cSrcweir #define DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir /** === begin UNO includes === **/ 32*cdf0e10cSrcweir #ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_ 33*cdf0e10cSrcweir #include <com/sun/star/container/XNameAccess.hpp> 34*cdf0e10cSrcweir #endif 35*cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_ 36*cdf0e10cSrcweir #include <com/sun/star/sdbc/XConnection.hpp> 37*cdf0e10cSrcweir #endif 38*cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDB_XSINGLESELECTQUERYCOMPOSER_HPP_ 39*cdf0e10cSrcweir #include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp> 40*cdf0e10cSrcweir #endif 41*cdf0e10cSrcweir #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_ 42*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 43*cdf0e10cSrcweir #endif 44*cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SDBC_XROWSET_HPP_ 45*cdf0e10cSrcweir #include <com/sun/star/sdbc/XRowSet.hpp> 46*cdf0e10cSrcweir #endif 47*cdf0e10cSrcweir /** === end UNO includes === **/ 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir #ifndef _SVT_GENERICUNODIALOG_HXX_ 50*cdf0e10cSrcweir #include <svtools/genericunodialog.hxx> 51*cdf0e10cSrcweir #endif 52*cdf0e10cSrcweir #ifndef _DBAUI_MODULE_DBU_HXX_ 53*cdf0e10cSrcweir #include "moduledbu.hxx" 54*cdf0e10cSrcweir #endif 55*cdf0e10cSrcweir #ifndef _DBASHARED_APITOOLS_HXX_ 56*cdf0e10cSrcweir #include "apitools.hxx" 57*cdf0e10cSrcweir #endif 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir //......................................................................... 60*cdf0e10cSrcweir namespace dbaui 61*cdf0e10cSrcweir { 62*cdf0e10cSrcweir //......................................................................... 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir //===================================================================== 65*cdf0e10cSrcweir //= ComposerDialog 66*cdf0e10cSrcweir //===================================================================== 67*cdf0e10cSrcweir class ComposerDialog; 68*cdf0e10cSrcweir typedef ::svt::OGenericUnoDialog ComposerDialog_BASE; 69*cdf0e10cSrcweir typedef ::comphelper::OPropertyArrayUsageHelper< ComposerDialog > ComposerDialog_PBASE; 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir class ComposerDialog 72*cdf0e10cSrcweir :public ComposerDialog_BASE 73*cdf0e10cSrcweir ,public ComposerDialog_PBASE 74*cdf0e10cSrcweir { 75*cdf0e10cSrcweir OModuleClient m_aModuleClient; 76*cdf0e10cSrcweir protected: 77*cdf0e10cSrcweir // <properties> 78*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer > 79*cdf0e10cSrcweir m_xComposer; 80*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet > 81*cdf0e10cSrcweir m_xRowSet; 82*cdf0e10cSrcweir // </properties> 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir protected: 85*cdf0e10cSrcweir ComposerDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB); 86*cdf0e10cSrcweir ~ComposerDialog(); 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir public: 89*cdf0e10cSrcweir DECLARE_IMPLEMENTATION_ID( ); 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir DECLARE_PROPERTYCONTAINER_DEFAULTS( ); 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir protected: 94*cdf0e10cSrcweir // own overridables 95*cdf0e10cSrcweir virtual Dialog* createComposerDialog( 96*cdf0e10cSrcweir Window* _pParent, 97*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection, 98*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns 99*cdf0e10cSrcweir ) = 0; 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir private: 102*cdf0e10cSrcweir // OGenericUnoDialog overridables 103*cdf0e10cSrcweir virtual Dialog* createDialog(Window* _pParent); 104*cdf0e10cSrcweir }; 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir //===================================================================== 107*cdf0e10cSrcweir //= RowsetFilterDialog 108*cdf0e10cSrcweir //===================================================================== 109*cdf0e10cSrcweir class RowsetFilterDialog : public ComposerDialog 110*cdf0e10cSrcweir { 111*cdf0e10cSrcweir public: 112*cdf0e10cSrcweir RowsetFilterDialog( 113*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB 114*cdf0e10cSrcweir ); 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir DECLARE_SERVICE_INFO_STATIC( ); 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir protected: 119*cdf0e10cSrcweir // own overridables 120*cdf0e10cSrcweir virtual Dialog* createComposerDialog( 121*cdf0e10cSrcweir Window* _pParent, 122*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection, 123*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns 124*cdf0e10cSrcweir ); 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir // OGenericUnoDialog overridables 127*cdf0e10cSrcweir virtual void executedDialog( sal_Int16 _nExecutionResult ); 128*cdf0e10cSrcweir }; 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir //===================================================================== 131*cdf0e10cSrcweir //= RowsetOrderDialog 132*cdf0e10cSrcweir //===================================================================== 133*cdf0e10cSrcweir class RowsetOrderDialog : public ComposerDialog 134*cdf0e10cSrcweir { 135*cdf0e10cSrcweir public: 136*cdf0e10cSrcweir RowsetOrderDialog( 137*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB 138*cdf0e10cSrcweir ); 139*cdf0e10cSrcweir 140*cdf0e10cSrcweir DECLARE_SERVICE_INFO_STATIC( ); 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir protected: 143*cdf0e10cSrcweir // own overridables 144*cdf0e10cSrcweir virtual Dialog* createComposerDialog( 145*cdf0e10cSrcweir Window* _pParent, 146*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection, 147*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rxColumns 148*cdf0e10cSrcweir ); 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir // OGenericUnoDialog overridables 151*cdf0e10cSrcweir virtual void executedDialog( sal_Int16 _nExecutionResult ); 152*cdf0e10cSrcweir }; 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir //......................................................................... 155*cdf0e10cSrcweir } // namespace dbaui 156*cdf0e10cSrcweir //......................................................................... 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir #endif // DBACCESS_SOURCE_UI_UNO_COMPOSERDIALOGS_HXX 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir 161