merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / inc / TablesSingleDlg.hxx
blob24d21a1892cbd017f1f361f7aaaa0fa46ad3463d
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: TablesSingleDlg.hxx,v $
10 * $Revision: 1.4 $
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_TABLESSINGLEDLG_HXX_
32 #define _DBAUI_TABLESSINGLEDLG_HXX_
34 #ifndef _BASEDLGS_HXX
35 #include <sfx2/basedlgs.hxx>
36 #endif
37 #ifndef DBAUI_ITEMSETHELPER_HXX
38 #include "IItemSetHelper.hxx"
39 #endif
40 #ifndef _COMPHELPER_UNO3_HXX_
41 #include <comphelper/uno3.hxx>
42 #endif
43 #ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
44 #include <com/sun/star/beans/PropertyValue.hpp>
45 #endif
47 #include <memory>
49 FORWARD_DECLARE_INTERFACE(beans,XPropertySet)
50 FORWARD_DECLARE_INTERFACE(sdbc,XConnection)
51 FORWARD_DECLARE_INTERFACE(lang,XMultiServiceFactory)
53 //.........................................................................
54 namespace dbaui
56 //.........................................................................
57 class ODbDataSourceAdministrationHelper;
58 //========================================================================
59 //= OTableSubscriptionDialog
60 //========================================================================
61 class OTableSubscriptionDialog : public SfxSingleTabDialog, public IItemSetHelper
63 ::std::auto_ptr<ODbDataSourceAdministrationHelper> m_pImpl;
64 sal_Bool m_bStopExecution; // set when the dialog should not be executed
66 DECL_LINK( OKClickHdl, OKButton* );
67 SfxItemSet* m_pOutSet;
68 public:
70 OTableSubscriptionDialog(Window* pParent
71 ,SfxItemSet* _pItems
72 ,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
73 ,const ::com::sun::star::uno::Any& _aDataSourceName
75 virtual ~OTableSubscriptionDialog();
77 // forwards from ODbDataSourceAdministrationHelper
78 void successfullyConnected();
79 sal_Bool getCurrentSettings(::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rDriverParams);
80 void clearPassword();
81 String getConnectionURL() const;
82 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getCurrentDataSource();
83 inline void endExecution() { m_bStopExecution = sal_True; }
85 virtual const SfxItemSet* getOutputSet() const;
86 virtual SfxItemSet* getWriteOutputSet();
88 virtual short Execute();
91 //.........................................................................
92 } // namespace dbaui
93 //.........................................................................
95 #endif // _DBAUI_TABLESSINGLEDLG_HXX_