diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-04-02 09:30:07 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-04-02 09:30:07 +0000 |
commit | e3975cb530d093f2fecdc3ef3d2a41d7f4f5d8cf (patch) | |
tree | 568e60642af9dae1550ce8ec12ce2e88e91dc91a /svx/source/inc | |
parent | 84baaaf489a6b94494c4904603d1b90246dd75e7 (diff) |
INTEGRATION: CWS frmvalidation (1.10.446); FILE MERGED
2004/03/12 13:38:49 fs 1.10.446.1: #i25106# when saving a record, also care for validity of form components (XValidatableFormComponent)
Diffstat (limited to 'svx/source/inc')
-rw-r--r-- | svx/source/inc/fmctrler.hxx | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/svx/source/inc/fmctrler.hxx b/svx/source/inc/fmctrler.hxx index 92d01eb62739..a5ac08c55352 100644 --- a/svx/source/inc/fmctrler.hxx +++ b/svx/source/inc/fmctrler.hxx @@ -2,9 +2,9 @@ * * $RCSfile: fmctrler.hxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: vg $ $Date: 2003-05-19 12:52:10 $ + * last change: $Author: rt $ $Date: 2004-04-02 10:30:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -609,6 +609,33 @@ protected: // if createInterceptor was called for the given object the according interceptor will be removed // from the objects interceptor chain and released + /** checks all form controls belonging to our form for validity + + If a form control supports the XValidatableFormComponent interface, this is used to determine + the validity of the control. If the interface is not supported, the control is supposed to be + valid. + + @param _rFirstInvalidityExplanation + if the method returns <FALSE/> (i.e. if there is an invalid control), this string contains + the explanation for the invalidity, as obtained from the validator. + + @param _rxFirstInvalidModel + if the method returns <FALSE/> (i.e. if there is an invalid control), this contains + the control model + + @return + <TRUE/> if and only if all controls belonging to our form are valid + */ + bool checkFormComponentValidity( + ::rtl::OUString& /* [out] */ _rFirstInvalidityExplanation, + ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& /* [out] */ _rxFirstInvalidModel + ) SAL_THROW(()); + + /** locates the control which belongs to a given model + */ + ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > + locateControl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& _rxModel ) SAL_THROW(()); + // in filter mode we do not listen for changes sal_Bool isListeningForChanges() const {return m_bDBConnection && !m_bFiltering && !isLocked();} void addChild(FmXFormController* pChild); |