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 _FRM_DATABASEFORM_HXX_
29*cdf0e10cSrcweir #define _FRM_DATABASEFORM_HXX_
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include "propertybaghelper.hxx"
32*cdf0e10cSrcweir #include <com/sun/star/sdbc/XDataSource.hpp>
33*cdf0e10cSrcweir #include <com/sun/star/sdb/XSQLErrorListener.hpp>
34*cdf0e10cSrcweir #include <com/sun/star/io/XPersistObject.hpp>
35*cdf0e10cSrcweir #include <com/sun/star/sdb/XSQLErrorBroadcaster.hpp>
36*cdf0e10cSrcweir #include <com/sun/star/form/FormSubmitMethod.hpp>
37*cdf0e10cSrcweir #include <com/sun/star/form/FormSubmitEncoding.hpp>
38*cdf0e10cSrcweir #include <com/sun/star/form/XSubmit.hpp>
39*cdf0e10cSrcweir #include <com/sun/star/form/XReset.hpp>
40*cdf0e10cSrcweir #include <com/sun/star/form/XDatabaseParameterBroadcaster2.hpp>
41*cdf0e10cSrcweir #include <com/sun/star/sdb/XCompletedExecution.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/sdbc/XRowSet.hpp>
43*cdf0e10cSrcweir #include <com/sun/star/sdbcx/XDeleteRows.hpp>
44*cdf0e10cSrcweir #include <com/sun/star/sdbc/XResultSetUpdate.hpp>
45*cdf0e10cSrcweir #include <com/sun/star/sdb/XRowSetApproveListener.hpp>
46*cdf0e10cSrcweir #include <com/sun/star/sdb/XRowSetApproveBroadcaster.hpp>
47*cdf0e10cSrcweir #include <com/sun/star/form/NavigationBarMode.hpp>
48*cdf0e10cSrcweir #include <com/sun/star/form/XLoadable.hpp>
49*cdf0e10cSrcweir #include <com/sun/star/form/XLoadListener.hpp>
50*cdf0e10cSrcweir #include <com/sun/star/form/XForm.hpp>
51*cdf0e10cSrcweir #include <com/sun/star/awt/XTabControllerModel.hpp>
52*cdf0e10cSrcweir #include <com/sun/star/script/XEventAttacherManager.hpp>
53*cdf0e10cSrcweir #include <com/sun/star/sdbc/XRowSetListener.hpp>
54*cdf0e10cSrcweir #include <com/sun/star/sdb/XResultSetAccess.hpp>
55*cdf0e10cSrcweir #include <com/sun/star/sdbc/XCloseable.hpp>
56*cdf0e10cSrcweir #include <com/sun/star/container/XNamed.hpp>
57*cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
58*cdf0e10cSrcweir #include <com/sun/star/sdbc/XParameters.hpp>
59*cdf0e10cSrcweir #include <com/sun/star/sdbc/XConnection.hpp>
60*cdf0e10cSrcweir #include <com/sun/star/task/XInteractionHandler.hpp>
61*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyContainer.hpp>
62*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyAccess.hpp>
63*cdf0e10cSrcweir #include <com/sun/star/sdbc/XWarningsSupplier.hpp>
64*cdf0e10cSrcweir 
65*cdf0e10cSrcweir 
66*cdf0e10cSrcweir #include <tools/link.hxx>
67*cdf0e10cSrcweir #include "InterfaceContainer.hxx"
68*cdf0e10cSrcweir 
69*cdf0e10cSrcweir #include <connectivity/parameters.hxx>
70*cdf0e10cSrcweir #include <connectivity/filtermanager.hxx>
71*cdf0e10cSrcweir #include <connectivity/warningscontainer.hxx>
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir #ifndef FORMS_SOURCE_MISC_LISTENERCONTAINERS_HXX
74*cdf0e10cSrcweir #include "listenercontainers.hxx"
75*cdf0e10cSrcweir #endif
76*cdf0e10cSrcweir #include "ids.hxx"
77*cdf0e10cSrcweir #include <comphelper/propmultiplex.hxx>
78*cdf0e10cSrcweir #include <comphelper/uno3.hxx>
79*cdf0e10cSrcweir #include <comphelper/proparrhlp.hxx>
80*cdf0e10cSrcweir #include <cppuhelper/implbase12.hxx>
81*cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx>
82*cdf0e10cSrcweir #include <cppuhelper/implbase7.hxx>
83*cdf0e10cSrcweir 
84*cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace sdbc {
85*cdf0e10cSrcweir 	class SQLException;
86*cdf0e10cSrcweir } } } }
87*cdf0e10cSrcweir 
88*cdf0e10cSrcweir class Timer;
89*cdf0e10cSrcweir class INetMIMEMessage;
90*cdf0e10cSrcweir 
91*cdf0e10cSrcweir //.........................................................................
92*cdf0e10cSrcweir namespace frm
93*cdf0e10cSrcweir {
94*cdf0e10cSrcweir //.........................................................................
95*cdf0e10cSrcweir 
96*cdf0e10cSrcweir //========================================================================
97*cdf0e10cSrcweir //= html tools
98*cdf0e10cSrcweir //========================================================================
99*cdf0e10cSrcweir 
100*cdf0e10cSrcweir const sal_uInt16 SUCCESSFUL_REPRESENT_TEXT			= 0x0001;
101*cdf0e10cSrcweir const sal_uInt16 SUCCESSFUL_REPRESENT_FILE			= 0x0002;
102*cdf0e10cSrcweir 
103*cdf0e10cSrcweir //------------------------------------------------------------------------------
104*cdf0e10cSrcweir class HtmlSuccessfulObj
105*cdf0e10cSrcweir {
106*cdf0e10cSrcweir public:
107*cdf0e10cSrcweir 	::rtl::OUString		aName;
108*cdf0e10cSrcweir 	::rtl::OUString		aValue;
109*cdf0e10cSrcweir 	sal_uInt16			nRepresentation;
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir 	HtmlSuccessfulObj( const ::rtl::OUString& _rName, const ::rtl::OUString& _rValue,
112*cdf0e10cSrcweir 		sal_uInt16 _nRepresent = SUCCESSFUL_REPRESENT_TEXT )
113*cdf0e10cSrcweir 		:aName( _rName )
114*cdf0e10cSrcweir 		,aValue( _rValue )
115*cdf0e10cSrcweir 		,nRepresentation( _nRepresent )
116*cdf0e10cSrcweir 	{
117*cdf0e10cSrcweir 	}
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir 	HtmlSuccessfulObj()
120*cdf0e10cSrcweir 	{
121*cdf0e10cSrcweir 	}
122*cdf0e10cSrcweir };
123*cdf0e10cSrcweir 
124*cdf0e10cSrcweir 
125*cdf0e10cSrcweir DECLARE_STL_VECTOR(HtmlSuccessfulObj, HtmlSuccessfulObjList);
126*cdf0e10cSrcweir 
127*cdf0e10cSrcweir //========================================================================
128*cdf0e10cSrcweir class OGroupManager;
129*cdf0e10cSrcweir class OFormSubmitResetThread;
130*cdf0e10cSrcweir typedef ::cppu::ImplHelper12    <   ::com::sun::star::form::XForm
131*cdf0e10cSrcweir 								,   ::com::sun::star::awt::XTabControllerModel
132*cdf0e10cSrcweir 								,   ::com::sun::star::form::XLoadListener
133*cdf0e10cSrcweir 								,   ::com::sun::star::sdbc::XRowSetListener
134*cdf0e10cSrcweir 								,   ::com::sun::star::sdb::XRowSetApproveListener
135*cdf0e10cSrcweir 								,   ::com::sun::star::form::XDatabaseParameterBroadcaster2
136*cdf0e10cSrcweir 								,   ::com::sun::star::sdb::XSQLErrorListener
137*cdf0e10cSrcweir 								,   ::com::sun::star::sdb::XSQLErrorBroadcaster
138*cdf0e10cSrcweir 								,   ::com::sun::star::form::XReset
139*cdf0e10cSrcweir 								,   ::com::sun::star::form::XSubmit
140*cdf0e10cSrcweir 								,   ::com::sun::star::form::XLoadable
141*cdf0e10cSrcweir                                 ,   ::com::sun::star::container::XNamed
142*cdf0e10cSrcweir                                 >   ODatabaseForm_BASE1;
143*cdf0e10cSrcweir 
144*cdf0e10cSrcweir 
145*cdf0e10cSrcweir typedef ::cppu::ImplHelper4 <   ::com::sun::star::lang::XServiceInfo
146*cdf0e10cSrcweir                             ,   ::com::sun::star::beans::XPropertyContainer
147*cdf0e10cSrcweir                             ,   ::com::sun::star::beans::XPropertyAccess
148*cdf0e10cSrcweir                             ,   ::com::sun::star::sdbc::XWarningsSupplier
149*cdf0e10cSrcweir                             >   ODatabaseForm_BASE2;
150*cdf0e10cSrcweir 
151*cdf0e10cSrcweir typedef ::cppu::ImplHelper7<	::com::sun::star::sdbc::XCloseable,
152*cdf0e10cSrcweir 								::com::sun::star::sdbc::XRowSet,
153*cdf0e10cSrcweir 								::com::sun::star::sdb::XCompletedExecution,
154*cdf0e10cSrcweir 								::com::sun::star::sdb::XRowSetApproveBroadcaster,
155*cdf0e10cSrcweir 								::com::sun::star::sdbc::XResultSetUpdate,
156*cdf0e10cSrcweir 								::com::sun::star::sdbcx::XDeleteRows,
157*cdf0e10cSrcweir 								::com::sun::star::sdbc::XParameters > ODatabaseForm_BASE3;
158*cdf0e10cSrcweir 
159*cdf0e10cSrcweir 
160*cdf0e10cSrcweir class ODatabaseForm	:public OFormComponents
161*cdf0e10cSrcweir 					,public OPropertySetAggregationHelper
162*cdf0e10cSrcweir 					,public OPropertyChangeListener
163*cdf0e10cSrcweir 					,public ODatabaseForm_BASE1
164*cdf0e10cSrcweir 					,public ODatabaseForm_BASE2
165*cdf0e10cSrcweir 					,public ODatabaseForm_BASE3
166*cdf0e10cSrcweir                     ,public IPropertyBagHelperContext
167*cdf0e10cSrcweir {
168*cdf0e10cSrcweir 	friend class OFormSubmitResetThread;
169*cdf0e10cSrcweir 
170*cdf0e10cSrcweir 	OImplementationIdsRef				m_aHoldIdHelper;
171*cdf0e10cSrcweir 
172*cdf0e10cSrcweir 		// listener administration
173*cdf0e10cSrcweir 	::cppu::OInterfaceContainerHelper	m_aLoadListeners;
174*cdf0e10cSrcweir 	::cppu::OInterfaceContainerHelper	m_aRowSetApproveListeners;
175*cdf0e10cSrcweir 	::cppu::OInterfaceContainerHelper	m_aRowSetListeners;
176*cdf0e10cSrcweir 	::cppu::OInterfaceContainerHelper	m_aSubmitListeners;
177*cdf0e10cSrcweir 	::cppu::OInterfaceContainerHelper	m_aErrorListeners;
178*cdf0e10cSrcweir     ResetListeners                      m_aResetListeners;
179*cdf0e10cSrcweir 	::osl::Mutex						m_aResetSafety;
180*cdf0e10cSrcweir 	::com::sun::star::uno::Any			m_aCycle;
181*cdf0e10cSrcweir 	::com::sun::star::uno::Any			m_aIgnoreResult; // set when we are a subform and our master form positioned on a new row
182*cdf0e10cSrcweir 	::com::sun::star::uno::Sequence< ::rtl::OUString >						m_aMasterFields;
183*cdf0e10cSrcweir 	::com::sun::star::uno::Sequence< ::rtl::OUString >						m_aDetailFields;
184*cdf0e10cSrcweir 
185*cdf0e10cSrcweir 	// the object doin' most of the work - an SDB-rowset
186*cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation> 		m_xAggregate;
187*cdf0e10cSrcweir 	// same object, interface as member because of performance reasons
188*cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet> 			m_xAggregateAsRowSet;
189*cdf0e10cSrcweir 
190*cdf0e10cSrcweir     PropertyBagHelper           m_aPropertyBagHelper;
191*cdf0e10cSrcweir     ::dbtools::WarningsContainer    m_aWarnings;
192*cdf0e10cSrcweir 	OPropertyChangeMultiplexer*	m_pAggregatePropertyMultiplexer;
193*cdf0e10cSrcweir 	// Verwaltung der ControlGruppen
194*cdf0e10cSrcweir 	OGroupManager*				m_pGroupManager;
195*cdf0e10cSrcweir     ::dbtools::ParameterManager m_aParameterManager;
196*cdf0e10cSrcweir     ::dbtools::FilterManager    m_aFilterManager;
197*cdf0e10cSrcweir 	Timer*						m_pLoadTimer;
198*cdf0e10cSrcweir 
199*cdf0e10cSrcweir 	OFormSubmitResetThread*		m_pThread;
200*cdf0e10cSrcweir 	::rtl::OUString				m_sCurrentErrorContext;
201*cdf0e10cSrcweir 				// will be used as additional context information
202*cdf0e10cSrcweir 				// when an exception is catched and forwarded to the listeners
203*cdf0e10cSrcweir 
204*cdf0e10cSrcweir 	sal_Int32						m_nResetsPending;
205*cdf0e10cSrcweir //	<overwritten_properties>
206*cdf0e10cSrcweir 	sal_Int32					m_nPrivileges;
207*cdf0e10cSrcweir     sal_Bool                    m_bInsertOnly;
208*cdf0e10cSrcweir //	</overwritten_properties>
209*cdf0e10cSrcweir 
210*cdf0e10cSrcweir //	<properties>
211*cdf0e10cSrcweir     ::com::sun::star::uno::Any  m_aControlBorderColorFocus;
212*cdf0e10cSrcweir     ::com::sun::star::uno::Any  m_aControlBorderColorMouse;
213*cdf0e10cSrcweir     ::com::sun::star::uno::Any  m_aControlBorderColorInvalid;
214*cdf0e10cSrcweir     ::com::sun::star::uno::Any  m_aDynamicControlBorder;
215*cdf0e10cSrcweir 	::rtl::OUString				m_sName;
216*cdf0e10cSrcweir 	::rtl::OUString				m_aTargetURL;
217*cdf0e10cSrcweir 	::rtl::OUString				m_aTargetFrame;
218*cdf0e10cSrcweir 	::com::sun::star::form::FormSubmitMethod	m_eSubmitMethod;
219*cdf0e10cSrcweir 	::com::sun::star::form::FormSubmitEncoding	m_eSubmitEncoding;
220*cdf0e10cSrcweir 	::com::sun::star::form::NavigationBarMode	m_eNavigation;
221*cdf0e10cSrcweir 	sal_Bool					m_bAllowInsert : 1;
222*cdf0e10cSrcweir 	sal_Bool					m_bAllowUpdate : 1;
223*cdf0e10cSrcweir 	sal_Bool					m_bAllowDelete : 1;
224*cdf0e10cSrcweir //	</properties>
225*cdf0e10cSrcweir 	sal_Bool					m_bLoaded : 1;
226*cdf0e10cSrcweir 	sal_Bool					m_bSubForm : 1;
227*cdf0e10cSrcweir 	sal_Bool					m_bForwardingConnection : 1;	// sal_True if we're setting the ActiveConnection on the aggregate
228*cdf0e10cSrcweir 	sal_Bool					m_bSharingConnection : 1;		// sal_True if the connection we're using is shared with out parent
229*cdf0e10cSrcweir 
230*cdf0e10cSrcweir public:
231*cdf0e10cSrcweir 	ODatabaseForm(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
232*cdf0e10cSrcweir 	ODatabaseForm( const ODatabaseForm& _cloneSource );
233*cdf0e10cSrcweir 	~ODatabaseForm();
234*cdf0e10cSrcweir 
235*cdf0e10cSrcweir 	// UNO binding
236*cdf0e10cSrcweir 	DECLARE_UNO3_AGG_DEFAULTS(ODatabaseForm, OFormComponents);
237*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation(const ::com::sun::star::uno::Type& _rType) throw(::com::sun::star::uno::RuntimeException);
238*cdf0e10cSrcweir 
239*cdf0e10cSrcweir 	// XTypeProvider
240*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
241*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
242*cdf0e10cSrcweir 
243*cdf0e10cSrcweir 	// ::com::sun::star::lang::XComponent
244*cdf0e10cSrcweir 	virtual void SAL_CALL disposing();
245*cdf0e10cSrcweir 
246*cdf0e10cSrcweir 	// property handling
247*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
248*cdf0e10cSrcweir 	virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
249*cdf0e10cSrcweir 	virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle ) const;
250*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL convertFastPropertyValue(::com::sun::star::uno::Any& rConvertedValue, ::com::sun::star::uno::Any& rOldValue, sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::lang::IllegalArgumentException);
251*cdf0e10cSrcweir 	virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue) throw ( ::com::sun::star::uno::Exception );
252*cdf0e10cSrcweir 
253*cdf0e10cSrcweir 	::com::sun::star::uno::Any	SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
254*cdf0e10cSrcweir 	   throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
255*cdf0e10cSrcweir 	void fire( sal_Int32 * pnHandles, const ::com::sun::star::uno::Any * pNewValues, const ::com::sun::star::uno::Any * pOldValues, sal_Int32 nCount, sal_Bool bVetoable );
256*cdf0e10cSrcweir 
257*cdf0e10cSrcweir     // IPropertyBagHelperContext
258*cdf0e10cSrcweir     virtual ::osl::Mutex&   getMutex();
259*cdf0e10cSrcweir     virtual void            describeFixedAndAggregateProperties(
260*cdf0e10cSrcweir         ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& _out_rFixedProperties,
261*cdf0e10cSrcweir         ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& _out_rAggregateProperties
262*cdf0e10cSrcweir     ) const;
263*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet >
264*cdf0e10cSrcweir                             getPropertiesInterface();
265*cdf0e10cSrcweir 
266*cdf0e10cSrcweir 	// com::sun::star::beans::XPropertyState
267*cdf0e10cSrcweir 	virtual	::com::sun::star::beans::PropertyState getPropertyStateByHandle(sal_Int32 nHandle);
268*cdf0e10cSrcweir 	virtual	void setPropertyToDefaultByHandle(sal_Int32 nHandle);
269*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle(sal_Int32 nHandle) const;
270*cdf0e10cSrcweir 
271*cdf0e10cSrcweir 	// com::sun::star::sdbc::XSQLErrorBroadcaster
272*cdf0e10cSrcweir     virtual void SAL_CALL addSQLErrorListener(const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSQLErrorListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
273*cdf0e10cSrcweir     virtual void SAL_CALL removeSQLErrorListener(const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSQLErrorListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
274*cdf0e10cSrcweir 
275*cdf0e10cSrcweir 	// com::sun::star::form::XForm
276*cdf0e10cSrcweir 	// nothing to implement
277*cdf0e10cSrcweir 
278*cdf0e10cSrcweir 	// com::sun::star::form::XReset
279*cdf0e10cSrcweir     virtual void SAL_CALL reset() throw(::com::sun::star::uno::RuntimeException);
280*cdf0e10cSrcweir     virtual void SAL_CALL addResetListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XResetListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
281*cdf0e10cSrcweir     virtual void SAL_CALL removeResetListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XResetListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
282*cdf0e10cSrcweir 
283*cdf0e10cSrcweir 	// com::sun::star::form::XSubmit
284*cdf0e10cSrcweir     virtual void SAL_CALL submit(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& aControl, const ::com::sun::star::awt::MouseEvent& aMouseEvt) throw(::com::sun::star::uno::RuntimeException);
285*cdf0e10cSrcweir     virtual void SAL_CALL addSubmitListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XSubmitListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
286*cdf0e10cSrcweir     virtual void SAL_CALL removeSubmitListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XSubmitListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
287*cdf0e10cSrcweir 
288*cdf0e10cSrcweir 	// com::sun::star::container::XChild
289*cdf0e10cSrcweir 	virtual InterfaceRef SAL_CALL getParent() throw ( ::com::sun::star::uno::RuntimeException) { return OFormComponents::getParent(); }
290*cdf0e10cSrcweir 	virtual void SAL_CALL setParent(const InterfaceRef& Parent) throw ( :: com::sun::star::lang::NoSupportException , ::com::sun::star::uno::RuntimeException);
291*cdf0e10cSrcweir 
292*cdf0e10cSrcweir 	// com::sun::star::container::XNamed
293*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
294*cdf0e10cSrcweir     virtual void SAL_CALL setName(const ::rtl::OUString& aName) throw(::com::sun::star::uno::RuntimeException);
295*cdf0e10cSrcweir 
296*cdf0e10cSrcweir 	// com::sun::star::awt::XTabControllerModel
297*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL getGroupControl() throw(::com::sun::star::uno::RuntimeException);
298*cdf0e10cSrcweir     virtual void SAL_CALL setGroupControl(sal_Bool /*_bGroupControl*/) throw(::com::sun::star::uno::RuntimeException) { }
299*cdf0e10cSrcweir     virtual void SAL_CALL setControlModels(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rControls) throw(::com::sun::star::uno::RuntimeException);
300*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > > SAL_CALL getControlModels() throw(::com::sun::star::uno::RuntimeException);
301*cdf0e10cSrcweir     virtual void SAL_CALL setGroup(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rGroup, const ::rtl::OUString& _rGroupName) throw(::com::sun::star::uno::RuntimeException);
302*cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getGroupCount() throw(::com::sun::star::uno::RuntimeException);
303*cdf0e10cSrcweir     virtual void SAL_CALL getGroup(sal_Int32 _nGroup, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rxGroup, ::rtl::OUString& _rName) throw(::com::sun::star::uno::RuntimeException);
304*cdf0e10cSrcweir     virtual void SAL_CALL getGroupByName(const ::rtl::OUString& _rName, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& _rxGroup) throw(::com::sun::star::uno::RuntimeException);
305*cdf0e10cSrcweir 
306*cdf0e10cSrcweir 	// com::sun::star::lang::XEventListener
307*cdf0e10cSrcweir 	virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& _rSource) throw(::com::sun::star::uno::RuntimeException);
308*cdf0e10cSrcweir 
309*cdf0e10cSrcweir 	// com::sun::star::form::XLoadListener
310*cdf0e10cSrcweir     virtual void SAL_CALL loaded(const ::com::sun::star::lang::EventObject& aEvent) throw(::com::sun::star::uno::RuntimeException);
311*cdf0e10cSrcweir     virtual void SAL_CALL unloading(const ::com::sun::star::lang::EventObject& aEvent) throw(::com::sun::star::uno::RuntimeException);
312*cdf0e10cSrcweir 	virtual void SAL_CALL unloaded(const ::com::sun::star::lang::EventObject& aEvent) throw(::com::sun::star::uno::RuntimeException);
313*cdf0e10cSrcweir     virtual void SAL_CALL reloading(const ::com::sun::star::lang::EventObject& aEvent) throw(::com::sun::star::uno::RuntimeException);
314*cdf0e10cSrcweir     virtual void SAL_CALL reloaded(const ::com::sun::star::lang::EventObject& aEvent) throw(::com::sun::star::uno::RuntimeException);
315*cdf0e10cSrcweir 
316*cdf0e10cSrcweir 	// com::sun::star::form::XLoadable
317*cdf0e10cSrcweir 	virtual void SAL_CALL load() throw(::com::sun::star::uno::RuntimeException);
318*cdf0e10cSrcweir 	virtual void SAL_CALL unload() throw(::com::sun::star::uno::RuntimeException);
319*cdf0e10cSrcweir     virtual void SAL_CALL reload() throw(::com::sun::star::uno::RuntimeException);
320*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL isLoaded() throw(::com::sun::star::uno::RuntimeException);
321*cdf0e10cSrcweir 	virtual void SAL_CALL addLoadListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XLoadListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
322*cdf0e10cSrcweir 	virtual void SAL_CALL removeLoadListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XLoadListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
323*cdf0e10cSrcweir 
324*cdf0e10cSrcweir 	// com::sun::star::sdbc::XCloseable
325*cdf0e10cSrcweir 	virtual void SAL_CALL close() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
326*cdf0e10cSrcweir 
327*cdf0e10cSrcweir 	// com::sun::star::sdbc::XRowSetListener
328*cdf0e10cSrcweir 	virtual void SAL_CALL cursorMoved(const ::com::sun::star::lang::EventObject& event) throw(::com::sun::star::uno::RuntimeException);
329*cdf0e10cSrcweir 	virtual void SAL_CALL rowChanged(const ::com::sun::star::lang::EventObject& event) throw(::com::sun::star::uno::RuntimeException);
330*cdf0e10cSrcweir 	virtual void SAL_CALL rowSetChanged(const ::com::sun::star::lang::EventObject& event) throw(::com::sun::star::uno::RuntimeException);
331*cdf0e10cSrcweir 
332*cdf0e10cSrcweir 	// com::sun::star::sdb::XRowSetApproveListener
333*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL approveCursorMove(const ::com::sun::star::lang::EventObject& event) throw(::com::sun::star::uno::RuntimeException);
334*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL approveRowChange(const ::com::sun::star::sdb::RowChangeEvent& event) throw(::com::sun::star::uno::RuntimeException);
335*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL approveRowSetChange(const ::com::sun::star::lang::EventObject& event) throw(::com::sun::star::uno::RuntimeException);
336*cdf0e10cSrcweir 
337*cdf0e10cSrcweir 	// com::sun::star::sdb::XRowSetApproveBroadcaster
338*cdf0e10cSrcweir     virtual void SAL_CALL addRowSetApproveListener(const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XRowSetApproveListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
339*cdf0e10cSrcweir     virtual void SAL_CALL removeRowSetApproveListener(const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XRowSetApproveListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
340*cdf0e10cSrcweir 
341*cdf0e10cSrcweir 	// com::sun:star::form::XDatabaseParameterBroadcaster2
342*cdf0e10cSrcweir 	virtual void SAL_CALL addDatabaseParameterListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XDatabaseParameterListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
343*cdf0e10cSrcweir 	virtual void SAL_CALL removeDatabaseParameterListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XDatabaseParameterListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
344*cdf0e10cSrcweir 
345*cdf0e10cSrcweir 	// com::sun:star::form::XDatabaseParameterBroadcaster
346*cdf0e10cSrcweir 	virtual void SAL_CALL addParameterListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XDatabaseParameterListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
347*cdf0e10cSrcweir 	virtual void SAL_CALL removeParameterListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XDatabaseParameterListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
348*cdf0e10cSrcweir 
349*cdf0e10cSrcweir 	// com::sun::star::sdbc::XRowSet
350*cdf0e10cSrcweir     virtual void SAL_CALL execute() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
351*cdf0e10cSrcweir     virtual void SAL_CALL addRowSetListener(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSetListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
352*cdf0e10cSrcweir     virtual void SAL_CALL removeRowSetListener(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSetListener>& _rxListener) throw(::com::sun::star::uno::RuntimeException);
353*cdf0e10cSrcweir 
354*cdf0e10cSrcweir 	// com::sun::star::sdb::XCompletedExecution
355*cdf0e10cSrcweir     virtual void SAL_CALL executeWithCompletion( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& handler ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
356*cdf0e10cSrcweir 
357*cdf0e10cSrcweir 	// com::sun::star::sdbc::XResultSet
358*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL next() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
359*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isBeforeFirst() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
360*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isAfterLast() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
361*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isFirst() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
362*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isLast() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
363*cdf0e10cSrcweir     virtual void SAL_CALL beforeFirst() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
364*cdf0e10cSrcweir     virtual void SAL_CALL afterLast() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
365*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL first() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
366*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL last() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
367*cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getRow() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
368*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL absolute(sal_Int32 row) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
369*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL relative(sal_Int32 rows) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
370*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL previous() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
371*cdf0e10cSrcweir     virtual void SAL_CALL refreshRow() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
372*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL rowUpdated() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
373*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL rowInserted() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
374*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL rowDeleted() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
375*cdf0e10cSrcweir     virtual InterfaceRef SAL_CALL getStatement() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
376*cdf0e10cSrcweir 
377*cdf0e10cSrcweir 	// com::sun::star::sdbc::XResultSetUpdate
378*cdf0e10cSrcweir     virtual void SAL_CALL insertRow() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
379*cdf0e10cSrcweir     virtual void SAL_CALL updateRow() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
380*cdf0e10cSrcweir     virtual void SAL_CALL deleteRow() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
381*cdf0e10cSrcweir     virtual void SAL_CALL cancelRowUpdates() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
382*cdf0e10cSrcweir     virtual void SAL_CALL moveToInsertRow() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
383*cdf0e10cSrcweir     virtual void SAL_CALL moveToCurrentRow() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
384*cdf0e10cSrcweir 
385*cdf0e10cSrcweir 	// com::sun::star::sdbcx::XDeleteRows
386*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL deleteRows(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any>& rows) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
387*cdf0e10cSrcweir 
388*cdf0e10cSrcweir 	// com::sun::star::lang::XServiceInfo
389*cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const ::rtl::OUString& ServiceName)  throw(::com::sun::star::uno::RuntimeException);
390*cdf0e10cSrcweir 	virtual ::rtl::OUString	SAL_CALL getImplementationName()  throw(::com::sun::star::uno::RuntimeException);
391*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()  throw(::com::sun::star::uno::RuntimeException);
392*cdf0e10cSrcweir 
393*cdf0e10cSrcweir 	// com::sun::star::lang::XServiceInfo - static version
394*cdf0e10cSrcweir 	static	::rtl::OUString	SAL_CALL getImplementationName_Static();
395*cdf0e10cSrcweir 	static	::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static();
396*cdf0e10cSrcweir 	static	::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCurrentServiceNames_Static();
397*cdf0e10cSrcweir 	static	::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCompatibleServiceNames_Static();
398*cdf0e10cSrcweir 	static	::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory );
399*cdf0e10cSrcweir 
400*cdf0e10cSrcweir 	// com::sun::star::io::XPersistObject
401*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
402*cdf0e10cSrcweir     virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
403*cdf0e10cSrcweir     virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
404*cdf0e10cSrcweir 
405*cdf0e10cSrcweir 	// com::sun::star::sdbc::XSQLErrorListener
406*cdf0e10cSrcweir     virtual void SAL_CALL errorOccured(const ::com::sun::star::sdb::SQLErrorEvent& aEvent) throw(::com::sun::star::uno::RuntimeException);
407*cdf0e10cSrcweir 
408*cdf0e10cSrcweir 	// com::sun::star::sdbc::XParameters
409*cdf0e10cSrcweir 	virtual void SAL_CALL setNull(sal_Int32 parameterIndex, sal_Int32 sqlType) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
410*cdf0e10cSrcweir     virtual void SAL_CALL setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const ::rtl::OUString& typeName) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
411*cdf0e10cSrcweir     virtual void SAL_CALL setBoolean(sal_Int32 parameterIndex, sal_Bool x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
412*cdf0e10cSrcweir     virtual void SAL_CALL setByte(sal_Int32 parameterIndex, sal_Int8 x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
413*cdf0e10cSrcweir     virtual void SAL_CALL setShort(sal_Int32 parameterIndex, sal_Int16 x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
414*cdf0e10cSrcweir     virtual void SAL_CALL setInt(sal_Int32 parameterIndex, sal_Int32 x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
415*cdf0e10cSrcweir     virtual void SAL_CALL setLong(sal_Int32 parameterIndex, sal_Int64 x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
416*cdf0e10cSrcweir     virtual void SAL_CALL setFloat(sal_Int32 parameterIndex, float x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
417*cdf0e10cSrcweir     virtual void SAL_CALL setDouble(sal_Int32 parameterIndex, double x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
418*cdf0e10cSrcweir     virtual void SAL_CALL setString(sal_Int32 parameterIndex, const ::rtl::OUString& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
419*cdf0e10cSrcweir     virtual void SAL_CALL setBytes(sal_Int32 parameterIndex, const ::com::sun::star::uno::Sequence< sal_Int8 >& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
420*cdf0e10cSrcweir     virtual void SAL_CALL setDate(sal_Int32 parameterIndex, const ::com::sun::star::util::Date& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
421*cdf0e10cSrcweir     virtual void SAL_CALL setTime(sal_Int32 parameterIndex, const ::com::sun::star::util::Time& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
422*cdf0e10cSrcweir     virtual void SAL_CALL setTimestamp(sal_Int32 parameterIndex, const ::com::sun::star::util::DateTime& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
423*cdf0e10cSrcweir     virtual void SAL_CALL setBinaryStream(sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream>& x, sal_Int32 length) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
424*cdf0e10cSrcweir 	virtual void SAL_CALL setCharacterStream(sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream>& x, sal_Int32 length) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
425*cdf0e10cSrcweir     virtual void SAL_CALL setObject(sal_Int32 parameterIndex, const ::com::sun::star::uno::Any& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
426*cdf0e10cSrcweir     virtual void SAL_CALL setObjectWithInfo(sal_Int32 parameterIndex, const ::com::sun::star::uno::Any& x, sal_Int32 targetSqlType, sal_Int32 scale) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
427*cdf0e10cSrcweir     virtual void SAL_CALL setRef(sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRef>& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
428*cdf0e10cSrcweir     virtual void SAL_CALL setBlob(sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XBlob>& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
429*cdf0e10cSrcweir     virtual void SAL_CALL setClob(sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XClob>& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
430*cdf0e10cSrcweir     virtual void SAL_CALL setArray(sal_Int32 parameterIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XArray>& x) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
431*cdf0e10cSrcweir 	virtual void SAL_CALL clearParameters() throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
432*cdf0e10cSrcweir 
433*cdf0e10cSrcweir     // XPropertyChangeListener
434*cdf0e10cSrcweir     virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (::com::sun::star::uno::RuntimeException);
435*cdf0e10cSrcweir 
436*cdf0e10cSrcweir     // XPropertyContainer
437*cdf0e10cSrcweir     virtual void SAL_CALL addProperty( const ::rtl::OUString& Name, ::sal_Int16 Attributes, const ::com::sun::star::uno::Any& DefaultValue ) throw (::com::sun::star::beans::PropertyExistException, ::com::sun::star::beans::IllegalTypeException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
438*cdf0e10cSrcweir     virtual void SAL_CALL removeProperty( const ::rtl::OUString& Name ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::NotRemoveableException, ::com::sun::star::uno::RuntimeException);
439*cdf0e10cSrcweir 
440*cdf0e10cSrcweir     // XPropertyAccess
441*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues(  ) throw (::com::sun::star::uno::RuntimeException);
442*cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
443*cdf0e10cSrcweir     using OPropertySetAggregationHelper::setPropertyValues;
444*cdf0e10cSrcweir 
445*cdf0e10cSrcweir     // XWarningsSupplier
446*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getWarnings(  ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
447*cdf0e10cSrcweir     virtual void SAL_CALL clearWarnings(  ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
448*cdf0e10cSrcweir 
449*cdf0e10cSrcweir     // XCloneable
450*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone(  ) throw (::com::sun::star::uno::RuntimeException);
451*cdf0e10cSrcweir 
452*cdf0e10cSrcweir     inline void submitNBC( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& Control, const ::com::sun::star::awt::MouseEvent& MouseEvt );
453*cdf0e10cSrcweir 
454*cdf0e10cSrcweir protected:
455*cdf0e10cSrcweir     // OPropertySetAggregationHelper overridables
456*cdf0e10cSrcweir     virtual void SAL_CALL forwardingPropertyValue( sal_Int32 _nHandle );
457*cdf0e10cSrcweir     virtual void SAL_CALL forwardedPropertyValue( sal_Int32 _nHandle, bool _bSuccess );
458*cdf0e10cSrcweir 
459*cdf0e10cSrcweir     // OInterfaceContainer overridables
460*cdf0e10cSrcweir     virtual void implInserted( const ElementDescription* _pElement );
461*cdf0e10cSrcweir 	virtual void implRemoved(const InterfaceRef& _rxObject);
462*cdf0e10cSrcweir 
463*cdf0e10cSrcweir 	// OPropertyChangeListener
464*cdf0e10cSrcweir 	virtual void _propertyChanged( const ::com::sun::star::beans::PropertyChangeEvent& ) throw(::com::sun::star::uno::RuntimeException);
465*cdf0e10cSrcweir 
466*cdf0e10cSrcweir private:
467*cdf0e10cSrcweir     sal_Bool executeRowSet(::osl::ResettableMutexGuard& _rClearForNotifies, sal_Bool bMoveToFirst = sal_True,
468*cdf0e10cSrcweir 					const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxCompletionHandler = ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >());
469*cdf0e10cSrcweir 	bool	fillParameters(::osl::ResettableMutexGuard& _rClearForNotifies,
470*cdf0e10cSrcweir 					const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxCompletionHandler = ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >());
471*cdf0e10cSrcweir 	void	updateParameterInfo();
472*cdf0e10cSrcweir 	bool	hasValidParent() const;
473*cdf0e10cSrcweir 
474*cdf0e10cSrcweir 	// impl methods
475*cdf0e10cSrcweir 	void	load_impl(sal_Bool bCausedByParentForm, sal_Bool bMoveToFirst = sal_True,
476*cdf0e10cSrcweir 		const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxCompletionHandler = ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >())
477*cdf0e10cSrcweir 		throw(::com::sun::star::uno::RuntimeException);
478*cdf0e10cSrcweir 	void	reload_impl(sal_Bool bMoveToFirst,
479*cdf0e10cSrcweir 		const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxCompletionHandler = ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >())
480*cdf0e10cSrcweir 		throw(::com::sun::star::uno::RuntimeException);
481*cdf0e10cSrcweir 	void	submit_impl(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& Control, const ::com::sun::star::awt::MouseEvent& MouseEvt, bool _bAproveByListeners);
482*cdf0e10cSrcweir 	void	reset_impl(bool _bAproveByListeners);
483*cdf0e10cSrcweir 
484*cdf0e10cSrcweir 	sal_Bool	implEnsureConnection();
485*cdf0e10cSrcweir 
486*cdf0e10cSrcweir 	// connection sharing
487*cdf0e10cSrcweir 
488*cdf0e10cSrcweir 	/// checks if we can re-use (aka share) the connection of the given parent
489*cdf0e10cSrcweir 	sal_Bool	canShareConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxParentProps );
490*cdf0e10cSrcweir 
491*cdf0e10cSrcweir 	/// starts sharing the connection with the parent
492*cdf0e10cSrcweir 	void		doShareConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxParentProps );
493*cdf0e10cSrcweir 
494*cdf0e10cSrcweir 	/// stops sharing the connection with the parent
495*cdf0e10cSrcweir 	void		stopSharingConnection( );
496*cdf0e10cSrcweir 
497*cdf0e10cSrcweir 	/// called when the connection which we share with our parent is beeing disposed
498*cdf0e10cSrcweir 	void		disposingSharedConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConn );
499*cdf0e10cSrcweir 
500*cdf0e10cSrcweir 	/// checks if we currently share our connection with our parent
501*cdf0e10cSrcweir 	sal_Bool	isSharingConnection( ) const { return m_bSharingConnection; }
502*cdf0e10cSrcweir 
503*cdf0e10cSrcweir     /** calls our row set approval listeners
504*cdf0e10cSrcweir 
505*cdf0e10cSrcweir         @param _rEvent
506*cdf0e10cSrcweir             the event to notify
507*cdf0e10cSrcweir         @param _bAllowSQLException
508*cdf0e10cSrcweir             <TRUE/> if SQLExceptions are allowed to leave the method
509*cdf0e10cSrcweir         @param _rGuard
510*cdf0e10cSrcweir             the guard to be cleared before actually calling into the listeners, but after making
511*cdf0e10cSrcweir             a copy of the listeners array to operate on.
512*cdf0e10cSrcweir         @return
513*cdf0e10cSrcweir             <TRUE/> if and only if the execution has been approved
514*cdf0e10cSrcweir     */
515*cdf0e10cSrcweir     bool    impl_approveRowChange_throw(
516*cdf0e10cSrcweir         const ::com::sun::star::lang::EventObject& _rEvent,
517*cdf0e10cSrcweir         const bool _bAllowSQLException,
518*cdf0e10cSrcweir         ::osl::ClearableMutexGuard& _rGuard
519*cdf0e10cSrcweir     );
520*cdf0e10cSrcweir 
521*cdf0e10cSrcweir 	/// invalidate all our parameter-related stuff
522*cdf0e10cSrcweir 	void		invlidateParameters();
523*cdf0e10cSrcweir 
524*cdf0e10cSrcweir 	void		saveInsertOnlyState( );
525*cdf0e10cSrcweir 	void		restoreInsertOnlyState( );
526*cdf0e10cSrcweir 
527*cdf0e10cSrcweir 	// error handling
528*cdf0e10cSrcweir 	void	onError(const ::com::sun::star::sdb::SQLErrorEvent& _rEvent);
529*cdf0e10cSrcweir 	void	onError(const ::com::sun::star::sdbc::SQLException&, const ::rtl::OUString& _rContextDescription);
530*cdf0e10cSrcweir 
531*cdf0e10cSrcweir 	// html tools
532*cdf0e10cSrcweir     ::rtl::OUString         GetDataEncoded(bool _bURLEncoded,const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
533*cdf0e10cSrcweir 	::rtl::OUString			GetDataURLEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
534*cdf0e10cSrcweir 	::rtl::OUString			GetDataTextEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
535*cdf0e10cSrcweir 	::com::sun::star::uno::Sequence<sal_Int8>	GetDataMultiPartEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt,
536*cdf0e10cSrcweir 											 ::rtl::OUString& rContentType);
537*cdf0e10cSrcweir 
538*cdf0e10cSrcweir 	void AppendComponent(HtmlSuccessfulObjList& rList, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& xComponentSet, const ::rtl::OUString& rNamePrefix,
539*cdf0e10cSrcweir 					 const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& rxSubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
540*cdf0e10cSrcweir 
541*cdf0e10cSrcweir 	void FillSuccessfulList(HtmlSuccessfulObjList& rList, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& rxSubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
542*cdf0e10cSrcweir 
543*cdf0e10cSrcweir 	void InsertTextPart(INetMIMEMessage& rParent, const ::rtl::OUString& rName, const ::rtl::OUString& rData);
544*cdf0e10cSrcweir 	sal_Bool InsertFilePart(INetMIMEMessage& rParent, const ::rtl::OUString& rName, const ::rtl::OUString& rFileName);
545*cdf0e10cSrcweir 	void Encode(::rtl::OUString& rString) const;
546*cdf0e10cSrcweir 
547*cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > getConnection();
548*cdf0e10cSrcweir 
549*cdf0e10cSrcweir     void    impl_createLoadTimer();
550*cdf0e10cSrcweir 
551*cdf0e10cSrcweir     void    impl_construct();
552*cdf0e10cSrcweir 
553*cdf0e10cSrcweir 	DECL_LINK( OnTimeout, void* );
554*cdf0e10cSrcweir protected:
555*cdf0e10cSrcweir     using OPropertySetHelper::getPropertyValues;
556*cdf0e10cSrcweir };
557*cdf0e10cSrcweir 
558*cdf0e10cSrcweir inline void ODatabaseForm::submitNBC(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& Control, const ::com::sun::star::awt::MouseEvent& MouseEvt)
559*cdf0e10cSrcweir {
560*cdf0e10cSrcweir 	submit_impl(Control, MouseEvt, sal_False);
561*cdf0e10cSrcweir }
562*cdf0e10cSrcweir 
563*cdf0e10cSrcweir //.........................................................................
564*cdf0e10cSrcweir }	// namespace frm
565*cdf0e10cSrcweir //.........................................................................
566*cdf0e10cSrcweir 
567*cdf0e10cSrcweir #endif // _FRM_DATABASEFORM_HXX_
568*cdf0e10cSrcweir 
569*cdf0e10cSrcweir 
570