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